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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 2036
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: 26184
    
  66

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Beginner Question: jsp can include non-struts tags?
 
Similar Threads
Struts and JSTL
restore form in struts
passing an object from Action to jsp
Validate of Form data
Struts - Tiles