Seting a JSp variable to session scope in JSp page itself
843838Dec 21 2005 — edited Dec 21 2005Hi,
I have code like this
<HTML>
<HEAD>
<TITLE>Change Password</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet/vclinical.css" TITLE="Style">
</HEAD>
<BODY>
<form name="form">
<select name="ss" onChange="this.form.qq.value=options[selectedIndex].value;getit()">
<option value=1>ss1</option>
<option value=2>ss2</option>
</select>
<input type="text" name="qq" value="">
<%
String asd=request.getParameter("qq");
session.setAttribute("Stored", asd);
System.out.println("value is"+asd);
%>
</form>
</BODY>
</HTML>
here i want to set value of a JSP variable qq to session scope and here i am not invoking any servlet i want value of qq in next JSP page i am not submitting the page so how i can handle this. this code does not work so please tell me how to do this i am using struts frame work