aspose file tools*
The moose likes JSP and the fly likes How do you include one expression inside of another expression? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How do you include one expression inside of another expression?" Watch "How do you include one expression inside of another expression?" New topic
Author

How do you include one expression inside of another expression?

harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
I am wondering what the proper syntax would be for this. Essentially, I need the language portion of a forms action uri to be dynamic (determined in the template). Say for example I determine the locale to be en-US thus the language being 'en'. The code would look something like this:
String language = "en";
aForm.action = "<%=tc.makeCURL("/<%=language%>/residential/ocs/public/fu/type_email")%>";
resulting in:
aForm.action = "<%=tc.makeCURL("/en/residential/ocs/public/fu/type_email")%>";
resulting in:
aForm.action = "/en/residential/ocs/public/fu/type_email/0,,,00.html";
btw.... we are developing JSP in vignette environment
[ November 08, 2002: Message edited by: harold neiper ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65


or better yet, factor the logic of building the language-sensitive URL out of the JSP and into the Java code:

hth,
bear
[ November 08, 2002: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
thanks! the first worked and the second option i like even more but the code is Vignettes and not sure if we can change (but we are questioning them)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you include one expression inside of another expression?
 
Similar Threads
EL question about setting bean property
Scripting Invalid
Not rendering EL in my custom tag
Run javascript method only once?
Need help with Validation.xml