It's not a secret anymore!*
The moose likes JSP and the fly likes pass attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "pass attributes" Watch "pass attributes" New topic
Author

pass attributes

Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
I have an include:
<jsp:include page='somePage.jsp'/>
but I wanna pass some attributes to this include, and according to these attributes 'somePage.jsp' will respond differently, could someone help me???
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 631
Hi,
C if this helps u ,
<jsp:include page="Test1.jsp" >
<jsp aram name="ID" value="007" />
</jsp:include>
------------------------
<%="This is test1.jsp"%>
<%= request.getParameter("ID")%>
Cheers
Praful


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
 
wood burning stoves
 
subject: pass attributes