JSP

<input type="text" name="roleuser" value="<%= request.getParameter("role") %>">

<%

String roleuser1= request.getParameter("roleuser");

session.setAttribute("Role",roleuser1);

%>

how to pass this role to the next page called second.page

value="<%= session.getAttribute("Role");

i used this coding, but i cannot get the value

please solve this problem

help with sample code

[453 byte] By [dilipsrma] at [2007-11-27 1:44:56]
# 1
<%String value = (String) session.getAttribute("Role");System.out.println(value);%>
skp71a at 2007-7-12 1:04:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

<%

String value = (String)

session.getAttribute("Role");

System.out.println(value);

%>

thankx for reply

<input type="text" name="RoleUser" value="<%= value %>">

I have done the coding like this ,but the value is not displaying its showing is NULL

please help with sample code

dilipsrma at 2007-7-12 1:04:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
please don't just entitle your thread "JSP". this is the JSP forum, of course it's about JSP
georgemca at 2007-7-12 1:04:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...