This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 640
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 !!!
Consider Paul's rocket mass heater.
subject: pass attributes