tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From graghupa...@aegonuk.co.uk
Subject RE: [OFF-Topic]getAttribute and setAttribute
Date Fri, 02 May 2003 14:46:44 GMT
humm 

how are you transfering from control from the servlet to JSP ???

Guru

my shaar is best ;)



-----Original Message-----
From: Srinivasu Gandu [mailto:SGandu@SoftwareSpecialists.com]
Sent: 01 May 2003 23:27
To: 'Tomcat Users List'
Subject: [OFF-Topic]getAttribute and setAttribute


I am not getting the values to the jsp page from the servlet when I use
request.setAttribute("messageVector",messageVector) in the servlet.

In the jsp page I am using the getAttribute to get that vector and show them
in a table row.. I am just getting empty jsp with images but not the values
from the while loop.. 
what could be the wrong???
<%				
		Vector messageVector =
(Vector)request.getAttribute("messageVector");
%>
<%
		String str= "";
                        Enumeration message = messageVector.elements();
                        while(message .hasMoreElements()){
                            str = (String)message.nextElement();
%>
			// I am generating some table rows
<%
		}
%>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message