This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes can I use url rewriting with frames and jsps?c:url?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "can I use url rewriting with frames and jsps?c:url??" Watch "can I use url rewriting with frames and jsps?c:url??" New topic
Author

can I use url rewriting with frames and jsps?c:url??

jon casari
Greenhorn

Joined: Oct 06, 2006
Posts: 9
can I use url rewriting with jsps that have frames, using the <c:url> tag?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

How do frames introduce anything new? Just construct the URLs as you would for the main window. As far as JSP and servlets are concerned, frames are just windows like any other.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jon casari
Greenhorn

Joined: Oct 06, 2006
Posts: 9
<frameset cols="25%,75%">
<frame src="frame_a.jsp">
<frame src="frame_b.jsp">
</frameset>

In my main JSP I will have something like this , I just have to encode the urls inside the files frame a and frame b like always . And it will work?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Again, the fact that the request is coming from a frame is not known to the server. It just sees the request coming in as if from a "normal" window. So anything that'd work for a normal window will work for the frames.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can I use url rewriting with frames and jsps?c:url??