Hi all,
The following is my jsp page where I want to pass values to another jsp
using <html:frame> tag.
This is my code snipplet,
<jsp:useBean id="test1" class="com.xx.XX.QuestionInfo" />
ArrayList al=(ArrayList)request.getAttribute("QuestionsDB");
request.getSession().getServletContext().setAttribute("QuestionsDB",al);
//HashMap hash=new HashMap();
//hash.put("QuestionsDB",al);
test1.setValue(al);
%>
<bean:define id="sample" name="test1" property="value" toScope="request"/>
<%
java.util.HashMap params = new java.util.HashMap();
params.put("QuestionsDB", sample);
pageContext.setAttribute("sample1", params);
%>
<frameset rows="44%,43%,13%" name="mainframe">
<html:frame page="/displayQuestion.jsp" frameName="first"
scrolling="auto" frameborder="0" paramId="sample1" paramName="sample1"
name="sample1" />
</frameset>
<br>
in displayQuestion.jsp page i am trying to retrive value "sample1" by using
request.getAttribute("sample1");
This is not giving any values for me
please help me ,and please correct code, if any thing is wrong
Its very very Urgent.
regards
Mohan.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]