Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

kavita mehra

Greenhorn
+ Follow
since Mar 14, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kavita mehra

i got it.. it can be done.. but yes its messy.. thanks for putting me right..
9 years ago
JSP
ok.. so you are saying that the hyperlink is executed in the server before it reaches the client browser.. i got that.. thanks..

but is it possible if i place the request.getParameter() in a condition such that it is called only after a hyperlink is pressed.. Then can i retreive the value passed by hyperlink through request.getparameter()...?? please explain
9 years ago
JSP
please explain what exactly you want me to do..? i am not familiar with location.href...
9 years ago
JSP
i want to display an image on the same page using an hyperlink..


i m using the value retreived by the hyperlink to be send to a function defined in the bean.java..



the function in the bean..



then i m using getRs1() method to retrive path of the image through database..



and then using expression to display the image..



but i m unable to retreive the value using request.getParameter(). it is showin null value in the Tomcat console.. please help.. i m confused..
9 years ago
JSP
yes sir it is showing a null pointer exception.......how do i retrieve the value....sent by the hyperlink on the same jsp.i.e the jsp in which im using the hyperlink is the one which is being called.
9 years ago
JSP
int flightid=Integer.parseInt(request.getParameter("flightid").toString());

will this statement give a value if called on the same jsp....or will we have to retreive it from another jsp...
9 years ago
JSP
i mean the parameters......which we pass from the url.....
<a href="/airways1/bank.jsp?flightid=<%=f1%>"> <%=x %></a>
now i would like the value of flightid to be retrieved again on this jsp...n i have used request.getparameter().it should work according to me.but its not getting any value when i click the hyperlink.....when i display it on the console window it is showing a null value.that means it is not passing the value.or have i made a mistake.please help and suggest.
9 years ago
JSP
how to get the values passed by url rewritting from the same jsp?
9 years ago
JSP