wood burning stoves 2.0*
The moose likes Struts and the fly likes How to use Reset in Struts JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use Reset in Struts JSP?" Watch "How to use Reset in Struts JSP?" New topic
Author

How to use Reset in Struts JSP?

Bob Watson
Greenhorn

Joined: Dec 04, 2003
Posts: 4
Hello everyone,
If I use a form bean and <html:text property="someName" />, then Struts will put whatever the form bean's "someName" is into <html type="text" value="blah">, where blah is the value of form bean variable "someName". A Reset button won't be able to clear up the default value attribute. How can we write the JSP custom tag to have Reset clear?
Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

Welcome to the Ranch Javaman!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Also, moving this to the Struts forum.
Thanks!
bear
JSP Forum Bartender
[ December 18, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: How to use Reset in Struts JSP?
 
Similar Threads
Liferay 6.0.6 + Struts 2.2.3
colored text in dropdown
Checking Checkbox values in indexed form
Struts html:radio Question
Will the setters be called