File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:param Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:param" Watch "jsp:param" New topic
Author

jsp:param

dolly shah
Ranch Hand

Joined: Jun 18, 2007
Posts: 383
From the book HFSJ, chapter:, page:415
"if the param name used in <jsp aram> already has a value as a request parameter, the new value will overwrite the previous one. Otherwise, a new request parameter is added to the request."

Isn't the <jsp aram> is for customize the page? Then why in above text they have mentioned about request parameter. I am not getting what they want to say from above paragraph. Can anyone please explain?.


SCJP-1.5<br />SCWCD-1.4
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
With the jsp:include you can use the jsp aram for customizing the included page. But the params will be added as a request-scoped attribute . So this param will be visble to all components which are part of the request. If already a attribute of the same name within the request exists. This one will be replaced.


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
The including file use <jsp:include> to include another file,we can use <jsp.param> in the bady of <jsp:include> to attach a parameter to request,then forward this request to that included file,included file use this parameter to customize itself.
hope my explaination is help.


SCJP 5.0<br />SCWCD1.4<br />SCBCD5
dolly shah
Ranch Hand

Joined: Jun 18, 2007
Posts: 383
From JSP we are making response so why we need to add them(param) as a request parameter? Can you explain little more?
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I think the parameters in request is a better way for including jsp file communicates with included file,only from this included file can customiz itself by parameters comes from including file
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Please do not duplicate threads. You are wasting people's time by doing this. I'm closing the other one.


[My Blog]
All roads lead to JavaRanch
dolly shah
Ranch Hand

Joined: Jun 18, 2007
Posts: 383
Hi Christophe. Thanks for advice. I will keep this in my mind.
But actually I was getting sending problem for my first post. So that I did second post.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:param