• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multisubmit

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic