my dog learned polymorphism*
The moose likes JSP and the fly likes jsp:include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:include " Watch "jsp:include " New topic
Author

jsp:include

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73


Questions:

1. Does test.jsp and main.jsp share the same javascript "document" ?

2. test.jsp should be able to use any css and javascript imported in main.jsp, correct ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

What happens on the server is entirely moot. All that matters, when it comes to JavaScript and CSS, is what gets delivered to the browser. So do a View Source in the browser and see if you can answer your own question.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
By doing "vew source", I saw all the content from test.jsp pasted in the inclduing page. So I think the answers to my questios are YES. Right? If my thought is wrong please do warn me !

Thanks for the help !
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp:include
 
Similar Threads
How do you include a JSP onload?
jsp:include tag not processed in Tomcat 4.0.4 and Apache2 combination
Question regarding jsp:include
Error while building JSP in eclipse
Time interval for <jsp:include>..?