This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes html-el:link - problem with context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html-el:link - problem with context" Watch "html-el:link - problem with context" New topic

html-el:link - problem with context

Deyan Sultov
Ranch Hand

Joined: Jul 01, 2002
Posts: 32
Hi All,

I am running web application under Tomcat, using Struts. I have disabled my browser's cookies, so that I want to test the proper encoding of my url links. So far so good. The problem is that I can not figure out why this piece of code,

<html-el:link href="/">

whithin the JSP's is giving different output:

- when I start Tomcat under root context, it works and encodes the link I have passed to it (appends ;jsessionid= to the url):
<Context path=""

- when I start Tomcat with some context it does not work and does not encode the link I have paases to it
<Context path="/ctx"

Any hints?

Thanks in advance
[ October 19, 2004: Message edited by: Deyan Sultov ]
I agree. Here's the link:
subject: html-el:link - problem with context
Similar Threads
Changing Tomcat Context in server.xml
Help! adding a webapplication to tomcat 4
Root Context - mywebapps has no effect
Tomcat 5.0.12 context setting
How to do Communication between two web applications