• Post Reply Bookmark Topic Watch Topic
  • New Topic

Static/Dynamic resources

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could someone please explain what exactly constitutes a dynamic resource.ie. can I regard JSP's containing HTML only as static documents,and HTML documents containing any client-side/server-side code as dynamic?

And in the case of a servlet forwarding to a JSP that contains HTML only(and whatever attributes were set??)
 
belakumari das
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set attributes in request object. In servlet
request.setAttribute("key",yourobject);

After forwarding servlet to JSP , You can get the object from request and display .
In JSP
request.getAttribute("key");

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I know that,I was asking about how to tell if a resouce is dynamic or static...??
 
Milton Ochoa
Ranch Hand
Posts: 336
Firefox Browser Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know if you are talking about this.

see the URL

http://www.coderanch.com/t/439689/Web-Component-Certification-SCWCD/certification/solution-query-JSP
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!