A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Problem with bean:write tag
Joined: Jan 24, 2005
Sep 27, 2006 01:47:00
I'm new to Struts.
I am writing a simple application wherein I am fetching data from database based on a parameter and displaying it to
For the display purpose I am <bean:write> tag but it is not working.
The code is as follows :
<tr><td><bean:write name="ContractForm" property = "contractNumber" scope="session"></td></tr>
where ContractForm is my form bean.I have given it's definition in struts-config.xml
The property contractNumber is defined as get and set methods in the Form bean.
However when I use the JSP expression <%=contractForm.getContractNumber()%> it works fine.
What am I missing.
Joined: Feb 15, 2005
Sep 27, 2006 09:33:00
I suspect this may be a simple spelling error. Make sure the Action-form definition in your struts-config.xml file exactly matches the name attribute of your <bean:write> tag. Struts is case-sensitive.
I agree. Here's the link:
subject: Problem with bean:write tag
validation of indexed properties
bean:write tag - query
Struts Logic Tag problem
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014