Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP! JSP doesn't SAVE VALUES to BEAN

 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing in Websphere Studio Advanced Edition version 3.5 and VAJ Enterprise Edition version 3.5.3. I have developed jsp's in the past but under this configuration I cannot get the jsp to save the values to the bean. This site displays data dynamically; however, there are no input fields for the user. The site uses frames: there is a navigation bar on the left and on the top of the screen. I need to track which element in the vector that the user has selected so I can continue to display information related to this element in the different screens. To do so, I have decided to use hidden fields for these values which are then saved to the bean. I discovered the flaw in my design: since there are no update fields, I do not have any submit buttons and it would not be appropriate to add such a button to the result frame.
Here is my question: How do I save values to the bean if I do not have a submit button? Your help is greatly appreciated!!
jsp:

User (the bean):
 
janaki samaraweera
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you can use this method. if you can call this javascript function in somewhere(page onload.unload) then you can save without putting a button
function beforeQuit(){
document.myform.action="List.jsp";
document.myform.submit();
}

Originally posted by verduka fox:
I am developing in Websphere Studio Advanced Edition version 3.5 and VAJ Enterprise Edition version 3.5.3. I have developed jsp's in the past but under this configuration I cannot get the jsp to save the values to the bean. This site displays data dynamically; however, there are no input fields for the user. The site uses frames: there is a navigation bar on the left and on the top of the screen. I need to track which element in the vector that the user has selected so I can continue to display information related to this element in the different screens. To do so, I have decided to use hidden fields for these values which are then saved to the bean. I discovered the flaw in my design: since there are no update fields, I do not have any submit buttons and it would not be appropriate to add such a button to the result frame.
Here is my question: [b]How do I save values to the bean if I do not have a submit button?
Your help is greatly appreciated!!
jsp:

User (the bean):
[/B]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic