Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multisubmit

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
If I have more than one submit buttions,and every submit will transact different content.I want to run it on the pocket pc platform,if I abandon javascript,Can I get it?
[ June 16, 2003: Message edited by: qingwu wang ]
 
puma Linus
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
For each submit button can call different function and in those functions u can call the respective content.Its quite easy .
But i didn't got that "pocket pc platform" what it exactly means? :confused
 
srinivas madugula
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
handling every thing on the serverside. just use a single form and submit the entire data. take the required data elements in the servlet based on submit button and redirect to final page on server.(this is ineffecient). but no other possibility.
------------------------------
<form ... action="redirect.class">
<input type=submit name="a">
<input type=submit name="b">
every submit button has a name. use it in servlet to find which submit is called.
do the job of javascript in redirect servlet. and redirect to the required servlet or jsp.
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks your reply.
They should be different page(jsp||servlet)that I make mention of different contents,then one form should own multi-action events in order to go.
 
Philip Shanks
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
qingwu,
Are you talking about multiple forms, each with its own submit, or multiple submits within a single form?
In the latter, you will require some sort of client side logic to get different behavior out of the various submit buttons. If you don't use javascript, I'm not sure what options remain.
If you have multiple forms in the same page, I believe only the inputs of one form are sent to the server. Even if the form parameters have the same names and values, each form can have a different action, thus different behavior on the server side.
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Philip,I think my question is relations of the latter,but I think I have find a way to deal with it by using image which look like buttons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic