File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Error" Watch "JSP Error" New topic
Author

JSP Error

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
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

Joined: Jan 28, 2008
Posts: 5575



Here you are setting the value for radio button?
R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Error
 
Similar Threads
Error comes whilke compiling the jsp page
Getting error
How to getParameter value
How can i get selected radio button value using jsp
Doubts in jsp