Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Beginner Question: jsp can include non-struts tags?  RSS feed

 
Jesus Angeles
Ranch Hand
Posts: 2070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!