aspose file tools*
The moose likes Struts and the fly likes Beginner Question: jsp can include non-struts tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Beginner Question: jsp can include non-struts tags?" Watch "Beginner Question: jsp can include non-struts tags?" New topic
Author

Beginner Question: jsp can include non-struts tags?

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
Can the jsp include non-struts tags, and still have those form fields automatically loaded into ActionForm? Or ActionForm contains only those where struts tags were used?

example: instead of html:text, i use a simple html text input element?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Jesus,
If you use non-struts tags, the values do populate on form submit into the ActionForm. However the values from the ActionForm do not populate the HTML forum when you load the page. In other words, if you are relying on Struts to initialize your form fields, including non-Struts tags will cause problems.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginner Question: jsp can include non-struts tags?
 
Similar Threads
restore form in struts
passing an object from Action to jsp
Struts and JSTL
Validate of Form data
Struts - Tiles