Ask STRUTS problems.

  Abstract: Ask STRUTS problems. 


  I need to check with registered user name is already in existence, submitted to the checkName.do later, the action in the return of the original pages of the text box can not retain the original value (emptied) I would like to ask how can retain, before the original value, I would like to thank the. 



  Will be scope = "session" can be a 



  In your FORM reset method, if not set in the corresponding content is empty, it should be preserved 



  I did not in the reset method, "scope =" session "can" This can be said of the elaborate Thank you 



  Scope = "session" is in line with your FORMBEAN used in the submission of pages if you use BEAN to submit data, then return to this page can be BEAN, before the data submitted. 



  Agree upstairs 



  Struts-config.xml configuration scope of corresponding action on the request = configuration formbean 
  <form-bean Name="checkNameForm" type="checkNameForm"/> 

  Also, your page must use Struts tags checkNameForm in writing and must be userName attribute such as username 




  Agree upstairs 




  This is the state of preservation of the screen, different ways to handle the different framework, I do so in the framework of the screen information is stored in session, the screen recovery, the session information given to the screen, different different framework, but not generalize 



Mark!


  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags:

Releated Java Articles

Comments

Leave a Reply