• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP Error

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I tried to get the run time output of radio button and text box using Jsp.I am using the method request.getParameter("").But i can able get the output of text box and am also get the wrong output of radio button.Please give me any solution to solve this problem.It is very helpful to do continue this process.

Sample.jsp


trans.jsp



output of my code is


V35010

Thanks.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Here you are setting the value for radio button?
 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your reply. I am putting
while(rs.next())
{
String callerid=rs.getString("callerid");
out.print("<input type='radio' name='callerid' value=' '> ");
out.print(callerid);
out.print("<br />");

}
and I am also check it value='cs' and then change my code trans.jsp
if(request.getParameter("cs")!=null)
{
String callerid=request.getParameter("cs");
out.print(callerid);
}
But i can't get any output.How to solve this problem.Please give me any solution to do solve this problem.

Thanks.
    Bookmark Topic Watch Topic
  • New Topic