Forums Register Login

code help!

+Pie Number of slices to send: Send
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 !!!
+Pie Number of slices to send: Send
Because the request parameters ought to be "cly" and "oper" rather than "client" and "operate"?
- Peter
+Pie Number of slices to send: Send
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
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 589 times.
Similar Threads
simple code help urgent
Online Shopping
reInstantce
stupid Microsoft -- IE 6.0 on XP trouble . . .
problems with request.getParameter();
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:38:19.