wood burning stoves 2.0*
The moose likes Struts and the fly likes Getting Data from Struts ActionForm to a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 5139
    
  12

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://aspose.com/file-tools
 
subject: Getting Data from Struts ActionForm to a JSP
 
Similar Threads
Cannot find bean in any scope
html:iterate or html:multibox problem
Action not getting called
Error: No getter method for property
javax.servlet.ServletException:javax.servlet.jsp.JspException: Cannot find bean: "riga" in any scope