File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!