If I understood your question correctly then it is in following way
You have one servlet called Login.java which have following lines
1 request.setAttribute("fullname",rs.getString(fullname));
2 RequestDispatcher rd=request.getRequestDispatcher("WelcomeWiz.jsp");
rd.forward(request,response);
And your WelcomeWiz.jsp has some thing like this
and you want to pass fullname from WelcomeWiz to either t1 or t2.html
now comes your question
Is there a way I can forward an attributed from an Jsp to a HTML page? There is no such way (as per my knowledg,plz update it if there is
).
You need to call jsp instead of your html (t1 or t2)as follows
And TEMP.jsp will have
<%=request.getParmeter("fullname")
%>
OR
you can also put full name in session in Login.java
and access it directly in Welcome.jsp
cheers
Praful
[ November 06, 2003: Message edited by: Praful Thakare ]