On Thursday, May 29, 2003, at 12:24 PM, philippe bertramo wrote:

> What is the easiest way to pass a local data from the parent to the
> included page ?

I recommend using the jsp:param tag.  Here is an example:

<jsp:include page="scripts/login.jsp">
  � � � � <jsp:param name="username" value="jsmith" />
  � � � � <jsp:param name="password" value="yoyo" />
  </jsp:include>

The jsp:param tag basically appends name/value pairs as query string 
parameters, but the tag nicely encapsulates the process (automatically 
URL encoding your data).  You can then access the parameters in the 
request scope in the included page.

Hope this helps.

Christian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=8

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                        

Reply via email to