aspose file tools
The moose likes JSP and the fly likes include and file path Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "include and file path" Watch "include and file path" New topic
Author

include and file path

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I would like to do a static include in my jsp, but the file path is obtained from server side. Is this possible ?
Below is the code

I tried it did not work

Can i include can have an expression ?

Even this does not seem to work

Please help

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Static includes are evaluated at translation time, so execution-time expressions cannot be used.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Bear,

Thanks for the response. But this is what i am trying to do. The path for the file is generated on the server side.


I will get this info on jsp

.
How can i use the filePath in the include directive or jsp:include. If this is not possible what can be other alternatives ?

Please Help.

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

You'll be able to use an expression in an include action, but not a directive.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: include and file path
 
Similar Threads
Appliation Server - HTML Include
Accessing resources out of context
getting junk characters inside the excel sheet created from servlet
Serving Content from Outside the context
include directive doubt