aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 613
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 !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass attributes
 
Similar Threads
Problem With response.sendRedirect
changes in included jsp does not get displyed.
Including Servlets to JSP page
Response SendRedirect
request.getattribute in servlet is null