This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Now here is my question . the property "reportType" for <html:select> is defined in the form Bean thats OK. but the collection reportType for the <html ption> is in the session. How does struts know where to find this variable.
[ July 08, 2008: Message edited by: Sajjad Dar ] [ July 08, 2008: Message edited by: Sajjad Dar ]
First of all, a correction. You told us this was a Struts 2 application, yet the JSP fragment you showed us is using Struts 1 tags. It's a Struts 1 application if it's using these tags. (version 1.2 is still Struts 1. Struts 2 is version 2.something).
Also, please use a meaningful subject line when posting. "Please help" means nothing to someone browsing the questions, and someone who knows the answer to your question may never read it because your subject line didn't adequately describe it. Also, these forums are searchable, and someone else having the same problem is more likely to find an answer with an accurate subject heading.
Regarding your question, the collection attribute of the htmlptions tag will look for a variable in any scope with that name. If the variable were in application or request scope, it also would have found it. [ July 08, 2008: Message edited by: Merrill Higginson ]