aspose file tools*
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
Author

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="/editRegistration.do?action=Create">

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=""
docBase="E:\Work\Eclipse\struts_app\web"
debug="0"
reloadable="true"
crossContext="true">
</Context>


- 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"
docBase="E:\Work\Eclipse\struts_app\web"
debug="0"
reloadable="true"
crossContext="true">
</Context>

Any hints?

Thanks in advance
[ October 19, 2004: Message edited by: Deyan Sultov ]
 
wood burning stoves
 
subject: html-el:link - problem with context