• 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

to display the value of the string in a jsp page

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers,
im a fresher and doing a project in struts...
my project specifications- struts1.1,tomcat5.5.23,eclipse3.2.
the situation-->
i have a form where i have a html <select> attribute in the <option> tag,inside the option tag is supposed to have the value of the string say s3..when i select the value from the select attribute and click submit the value of the string that is s3 should be removed from the database....


when i select the option and click submit then the particular record should get removed from the database.. my question is how do i assign the value of s3 in the <select> tag that is when i run my jsp page the value of the requisition code should be present instead of the string s3 which currently is getting displayed to me...
my CancelAction.java




in my jsp page-


here instead of +s3+ i want to display the value of s3....please help me in this regard....would love to hear from you guys...thanks in advance... i hope i have conveyed my problem .
regards, a_jos85
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Replace

<option value="" + s3 + "\"> <%=crf.getReq_Code() %> </option>

<option value='<%= s3 %>'> <%=crf.getReq_Code() %> </option>

assuming s3 contains the value that you want .
 
Abbie joseph
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by suj hande:
Replace

<option value="" + s3 + "\"> <%=crf.getReq_Code() %> </option>

<option value='<%= s3 %>'> <%=crf.getReq_Code() %> </option>

assuming s3 contains the value that you want .




hi, suj hande,
thannks for your reply...but i even tried that...but it didnt work...
your suggestion-->


error is-->


awaiting your reply
regards
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic