Author: dazarov
Date: 2008-01-11 12:51:27 -0500 (Fri, 11 Jan 2008)
New Revision: 5638
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/empty.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/equal.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterEqual.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterThan.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/iterate.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessEqual.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessThan.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/match.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEmpty.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEqual.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notMatch.jsp
Log:
http://jira.jboss.com/jira/browse/JBIDE-1565
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/empty.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/empty.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/empty.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("goodThingsAbouteTheYankees", "");
+ %>
+ <logic:empty name="goodThingsAbouteTheYankees">
+ You must be a Red Sox fan!
+ </logic:empty>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/equal.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/equal.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/equal.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:equal name="numberIntValue" value="90210"
scope="request">
+ equal
+ </logic:equal>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterEqual.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterEqual.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterEqual.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:greaterEqual name="numberIntValue" value="90211"
scope="request">
+ greaterEqual
+ </logic:greaterEqual>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterThan.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterThan.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/greaterThan.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:greaterThan name="numberIntValue" value="90211"
scope="request">
+ greaterThan
+ </logic:greaterThan>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/iterate.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/iterate.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/iterate.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,27 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
+<%@ page import="java.util.HashMap" %>
+<html:html>
+<head>
+ <title>Logic iterate sample code</title>
+</head>
+<body>
+ <%
+ HashMap<String, String[]> h = new HashMap<String, String[]>();
+ String jameses[] = {"Joyce", "Thurber", "Kirk",
"Cameron", "Monroe"};
+ String kevins[] = {"Spacey", "Bacon"};
+ String bruces[] = {"Willis", "The Shark",
"Cockburn"};
+ h.put("James", jameses);
+ h.put("Kevin", kevins);
+ h.put("Bruce", bruces);
+ request.setAttributes("givenNames", h);
+ %>
+ <logic:iterate id="gname" indexId="ind"
name="givenNames">
+ <bean:write name="ind" />. <bean:write name="gname"
property="key" /><BR>
+ <logic:iterate id="lname" name="gname"
property="value" length="4" offset="1">
+ <bean:write name="lname" /><br>
+ </logic:iterate>
+ </logic:iterate>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessEqual.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessEqual.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessEqual.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:lessEqual name="numberIntValue" value="90200"
scope="request">
+ lessEqual
+ </logic:lessEqual>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessThan.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessThan.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/lessThan.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:lessThan name="numberIntValue" value="90200"
scope="request">
+ lessThan
+ </logic:lessThan>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/match.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/match.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/match.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,19 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("authorName1", "James M. Turner");
+ request.setAttribute("authorName2", "Kevin Bedell");
+ %>
+ <logic:match name="authorName1" value="ames"
scope="request">
+ match
+ </logic:match>
+ <logic:match name="authorName2" value="ames"
scope="request">
+ match
+ </logic:match>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEmpty.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEmpty.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEmpty.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("goodThingsAbouteTheYankees",
"goodThings");
+ %>
+ <logic:notEmpty name="goodThingsAbouteTheYankees">
+ New Yorker, eh?
+ </logic:notEmpty>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEqual.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEqual.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notEqual.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,15 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("numberIntValue",new Integer(90210));
+ %>
+ <logic:notEqual name="numberIntValue" value="90211"
scope="request">
+ notEqual
+ </logic:notEqual>
+</body>
+</html:html>
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notMatch.jsp
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notMatch.jsp
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notMatch.jsp 2008-01-11
17:51:27 UTC (rev 5638)
@@ -0,0 +1,19 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <%
+ request.setAttribute("authorName1", "James M. Turner");
+ request.setAttribute("authorName2", "Kevin Bedell");
+ %>
+ <logic:notMatch name="authorName1" value="qwerty"
scope="request">
+ notMatch
+ </logic:notMatch>
+ <logic:notMatch name="authorName2" value="qwerty"
scope="request">
+ notMatch
+ </logic:notMatch>
+</body>
+</html:html>