• Post Reply Bookmark Topic Watch Topic
  • New Topic

code help!  RSS feed

 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code of my doc.jsp
--------------------------------------------------
<%
session.setAttribute( "client" , request.getParameter("cly"));
session.setAttribute( "operate" , request.getParameter("oper"));
%>
<html>
<frame src = "Menu.jsp" >
<frame src = "List.jsp>
<html>
_____________________________________________________________
code of Menu.jsp
<h2> hi im empty frame
_____________________________________________________________
code of List.jsp
<% System.out.println(session.getAttribute("client"));%>
<% System.out.println(session.getAttribute("operate"));%>
</html>
------------------ the System.out(---) mentioned in List.jsp returns a null and does not return me the value what i specify on the browsers address bar for eg http wn/doc.jsp/client=10&operate=20
can anyone explain why im getting null and also a way to get the correct value !!!
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the request parameters ought to be "cly" and "oper" rather than "client" and "operate"?
- Peter
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see that this question has been xposted to the JSP forum and my answer was a waste of time. Please don't crosspost in the future. Thank you.
Tony, Mike, Matthew, the topic is both more active and more appropriate in JSP, can you close it here?
- Peter
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!