Hi,
I would like to transmit a bean's parameter to another bean.
For exemple, I have in a .jsp page :
<%@ page language = "java" import = ... contentType="text/html;charset=WINDOWS-1252" %>
<jsp:useBean class="sthing.sthing" id="aBean1" scope="session" />
<%
String name = request.getParameter("name"
%>
and I have, in another page
<%@ page language = "java" import = ... contentType="text/html;charset=WINDOWS-1252" %>
<jsp:useBean class="sthing2.sthing2" id="aBean2" scope="session" />
<%
aBean2.setName(name);
%>
the field "name" I want to transmit to setName() must be the name of the first bean...
What can I do?
Tank you in advance
Gary
I would like to transmit a bean's parameter to another bean.
For exemple, I have in a .jsp page :
<%@ page language = "java" import = ... contentType="text/html;charset=WINDOWS-1252" %>
<jsp:useBean class="sthing.sthing" id="aBean1" scope="session" />
<%
String name = request.getParameter("name"
%>
and I have, in another page
<%@ page language = "java" import = ... contentType="text/html;charset=WINDOWS-1252" %>
<jsp:useBean class="sthing2.sthing2" id="aBean2" scope="session" />
<%
aBean2.setName(name);
%>
the field "name" I want to transmit to setName() must be the name of the first bean...
What can I do?
Tank you in advance
Gary