• 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

how can we sent the material value

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
StudentID StudentName Materials

12453333 Murali <a dropdown list with values> <Button with href>
14753353 Murali <a dropdown list with values> <Button with href>
12773300 Murali <a dropdown list with values> <Button with href>

this is what my jsp page looks like......(sorry i cant show graphically)
I am not using form tag but ..
WHEN I CLICK ANY BUTTON IN A ANY ROW..THE VALUES studentID and the value selected in dropdown list of materials should be submitted along with the href related to that particular button, for eg...
<a href="../../sample.do?StudId="+studentId+"&MatId="+material+"><input type="submit" name="submit" value="Submit" ></a>

My problem is how can we sent the material value(how can we know which value is selected in the dropdown list)
What we have to give at.. MatId="???"..

Please help me outt..
Thanks in advance....

Sandeep
[ May 04, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well... usually you use a form because it will manage all the submitting issues, otherwise you can use AJAX.... but do you really need so much complexity? from the URL you showed (sample.do) it seem that you use some kind of servlet.... can i ask you why you do not want to use any form?

ciao
 
Sandeep R Kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because those rows are displayed dynamically depending on requirement....it may be one row or may be 10 rows or more...
Can we use form tag in this also....???
 
Maurizio Nagni
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes sure..... which tag component do you use for the table?
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Sandeep,

Just like you generate more than 1 row, you can also generate more than 1 form
(with 1 row in each form).

Herman
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Sandeep R",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
reply
    Bookmark Topic Watch Topic
  • New Topic