Include JSP related question

Hello,  I am including a jsp named one.jsp  in another jsp called second.jsp  that's works fine,what i need was

in the one.jsp i am getting values from db like name and i am using it in one.jsp

what i would like to do was can i use the value that i already got in one .jsp(name ) in the second.jsp,if so how?

Thanks
ssilpaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
rrzConnect With a Mentor Commented:
Did you try to use the include directive ?  
<%@ file="one.jsp" %>
0
 
runa_paathakConnect With a Mentor Commented:
Do a jsp:include to include one.jsp in second.jsp. Once you get the value in one.jsp, you can add it as an attribute into request. You can then take it out of the request object in your second.jsp
0
All Courses

From novice to tech pro — start learning today.