tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivasu Gandu <SGa...@SoftwareSpecialists.com>
Subject RE: [OFF-Topic]getAttribute and setAttribute
Date Fri, 02 May 2003 19:21:06 GMT
I tried both ways.. it was working befer and not working now... such a
dumb..

RequestDispatcher dis =
getServletContext().getRequestDispatcher("/jsp/result.jsp");
dis.forward(request, response);

or 

response.sendRedirect("/jsp/result.jsp");

Am I missing something..
            

-----Original Message-----
From: graghupathy@aegonuk.co.uk [mailto:graghupathy@aegonuk.co.uk]
Sent: Friday, May 02, 2003 10:47 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: [OFF-Topic]getAttribute and setAttribute


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

---------------------------------------------------------------------
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