This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Getting Data from Struts ActionForm to a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Getting Data from Struts ActionForm to a JSP" Watch "Getting Data from Struts ActionForm to a JSP" New topic
Author

Getting Data from Struts ActionForm to a JSP

Brian Egger
Greenhorn

Joined: Aug 04, 2004
Posts: 11
I have a JSP that calls an ActionForm with a Collection, which gets it's data from a UseCase. But when I do a <logic resent for the ActionForm it does not proceed with the <logic:iterate of the Collection. I looked at the UseCase and the data is there. But I am guess that don't have it config'ed correctly. So some outside opinions would help. Thanks

code



any help would be great. Thanks in advance!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Brian!

I'm moving this to the Web Application Frameworks forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4389

brian,

if you add following line under the tag </logic:present>


is then the text "NOT PRESENT" shown in your jsp-file ? If so, try changing



into



or change



into



SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Brian Egger
Greenhorn

Joined: Aug 04, 2004
Posts: 11
I tried it, but unfortunately it did not work. I know the class in notPresent now. So I am guessing that my ActionClass might be to blame.


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Getting Data from Struts ActionForm to a JSP
 
Similar Threads
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope
Cannot find bean in any scope
Action not getting called
html:iterate or html:multibox problem
Error: No getter method for property