Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2008, 08:43 AM
rakesh_n_mehta's Avatar
Member
 
Join Date: Oct 2008
Posts: 62
Rep Power: 0
rakesh_n_mehta is on a distinguished road
Default How to use reset() method in struts
Dear Experts,

My application is based on struts.I am using jsp page as view.When i am submitting the jsp page to business logic and returning to the same submitted jsp page the values that are entered into the jsp page previously was retained. I want to clear the form with out any values.please advice
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-21-2008, 04:23 PM
Member
 
Join Date: Nov 2008
Posts: 3
Rep Power: 0
anilonwebs is on a distinguished road
Default
hi a am anil,
just use this tag in your jsp file-
<html:reset>reset<html:reset>
and use a reset method in your form bean class -
public void reset(ActionMapping mapping, HttpServletRequest request){
.....variables_name = null;
}
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
decorator.jsp problem building Struts Menu in JSP when Struts action is used dkirvan JavaServer Pages (JSP) and JSTL 2 07-10-2009 09:55 AM
Indentation Size Reset While Coding JavaFX JDCAce NetBeans 0 10-06-2008 10:28 PM
<html:reset> button in struts Satheeshhere Web Frameworks 1 07-15-2008 04:14 PM
in struts reset was problem sureshBabu Web Frameworks 1 05-07-2008 04:26 PM
reset query dd_verni Database 0 11-21-2007 04:52 AM


All times are GMT +2. The time now is 07:49 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org