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
JavaRanch » Java Forums » Java » JSP
Bookmark "pass attributes" Watch "pass attributes" New topic

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: 642
C if this helps u ,
<jsp:include page="Test1.jsp" >
<jsp aram name="ID" value="007" />
<%="This is test1.jsp"%>
<%= request.getParameter("ID")%>

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
I agree. Here's the link:
subject: pass attributes
It's not a secret anymore!