*
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
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: 2049
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: 30116
    
150

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
 
Don't get me started about those stupid light bulbs.
 
subject: Beginner Question: jsp can include non-struts tags?
 
Similar Threads
Validate of Form data
Struts and JSTL
Struts - Tiles
restore form in struts
passing an object from Action to jsp