Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Error

 
R Sugan
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.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic