• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include directive

 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
can anybody give me an example to explain difference between <%@ include %> and <jsp:include/> directives?
the first one is used when we want to have insertion of the code while compiling jsp page into servlet and the second one is for run time insertion.
but, i want to have an example that clarifies both of the usages.
regards
maulin.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maulin:
You can understand this also with the same example as your useBean post. Refer to that example code which can solve this doubt also.
Try playing with that code by changing the include directive to include action.
Your understanding is correct. But I storngly suggest, if I could, that you try the code.
regds.
- satya
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey!
thanks satya. i got it. i'm actually in little trouble as i dont have access to servlet environment where i can test codes
i 'm trying to get some resource where i can upload my servlets or JSP and can test the stuff i want so that i will be less troubles to u guys out here
regards
maulin.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i 'm trying to get some resource where i can upload my servlets or JSP and can test the stuff

Try www.webcaberet.com. Or you can search in the Servlet/JSP forum. I know people have posted some free web-sites where you can upload your JSPs and Servlets and try them. I fogot exactly what its called....
i want so that i will be less troubles to u guys out here
No trouble at all. Its a learning experience to all of us.
Good luck.
- satya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic