Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Session can not be resolved

800603Aug 11 2008 — edited Aug 11 2008
Hi,

I'm having a servlet which passes the string array to the jsp page. But when I try to run the jsp page i get error as
session can not be resolved. The code for jsp is,
<%@ page session="true"%>

<body onload=http://localhost:8080/OLT/GeQuest?CMD=geQ>  //to call servlet automatically when page loads

<%!String[] srt=session.getAttribute("op5");%>
	
		

		<form name=Test method = get  >
		

		<input type=submit value="Submit">

		</form>
</body>
On the servlet I'm using session.setAttribute("op5",op5) and it has compiled without any problem.


Please let me know if u have any solution or if u figure out where im going wrong . Thank you.

Edited by: harsh884 on Aug 11, 2008 5:55 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2008
Added on Aug 11 2008
4 comments
358 views