You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Swati <sw...@cisco.com> on 2003/07/28 12:08:37 UTC

Multi-box: JasperException

I am getting a parsing exception when I use a multibox in my JSP. The
JSP doesn't compiled.
I am getting the exception at "<bean:write name="item"
property="name"/>" in line 5 below. Am I missing something?
If I remove the multi-box tags, line 8 (which is same as line 5) works. 

Here is my code:
1.          <logic:iterate name="createDeviceForm" id="item"
property="items" type="myPackage.item.Item">
2.          <tr align="center" width=100%><% i++ ; %>
3.          <td> 
4.	          <html:multibox name="createDeviceForm"
property="selectedItems">
5.      	    	<bean:write name="item" property="name"/> 
6.	          </html:multibox>
7.          </td>
8.          <td > <bean:write name="item" property="name"/> </td>

Exception:
org.apache.jasper.JasperException:
/WEB-INF/screens/createDevice3Pix.jsp(67,62) equal symbol expected
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:428)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:126)
	at
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
	at
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
	at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:723)
	at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
	at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
	at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
	at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
	at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
	at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
	at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
	at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)

--Swati.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Multi-box: JasperException

Posted by "Nagaraj G.K" <na...@yahoo.com>.
if your code for multibox is a getter method in the FormBean and is returning a class instance, then the class that is being returned should contain  a getter method for the property that you are trying to access..
I also saw two bean write statements with same name.. I dont think that would be allowed because you are trying to create two variables of the same name which would cause problems.
 
Nagaraj

Swati <sw...@cisco.com> wrote:

I am getting a parsing exception when I use a multibox in my JSP. The
JSP doesn't compiled.
I am getting the exception at "property="name"/>" in line 5 below. Am I missing something?
If I remove the multi-box tags, line 8 (which is same as line 5) works. 

Here is my code:
1. property="items" type="myPackage.item.Item">
2. 
3. 
4. property="selectedItems">
5. 
6. 
7. 
8. 

Exception:
org.apache.jasper.JasperException:
/WEB-INF/screens/createDevice3Pix.jsp(67,62) equal symbol expected
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:428)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:126)
at
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
at
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:723)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)
at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:758)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:809)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:837)

--Swati.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software