Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I transmit a session's parameter to another session

Status
Not open for further replies.

HoMyGod

Programmer
Jul 17, 2000
59
CH
Hi,

I would like to transmit a bean's parameter to another bean.

For exemple, I have in a .jsp page :
<%@ page language = &quot;java&quot; import = ... contentType=&quot;text/html;charset=WINDOWS-1252&quot; %>
<jsp:useBean class=&quot;sthing.sthing&quot; id=&quot;aBean1&quot; scope=&quot;session&quot; />
<%
String name = request.getParameter(&quot;name&quot;);
%>

and I have, in another page

<%@ page language = &quot;java&quot; import = ... contentType=&quot;text/html;charset=WINDOWS-1252&quot; %>
<jsp:useBean class=&quot;sthing2.sthing2&quot; id=&quot;aBean2&quot; scope=&quot;session&quot; />
<%
aBean2.setName(name);
%>


the field &quot;name&quot; I want to transmit to setName() must be the name of the first bean...

What can I do?

Tank you in advance
Gary


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top