• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

// (double slash) problem in redirect forward with weblogic

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have to port a struts application from tomcat to weblogic. The application works great on tomcat but in weblogic we have a big problem. slashes (/) after the contextPath are duplicated.
Example :
contextPath = cp
<forward path="/myAction.do" redirect="true"/>
The redirect to http://server.com/cp/myAction.do in tomcat is transformed to http://server.com/cp//myAction.do in weblogic. And it gives us a problem with a thirdparty caching tool.

Does anybody know how to fix this ?

thanks
[ August 09, 2005: Message edited by: pascal gehl ]
 
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
forward path="/myAction.do"
Why not take the / out?

Originally posted by pascal gehl:
Hi,

I have to port a struts application from tomcat to weblogic. The application works great on tomcat but in weblogic we have a big problem. slashes (/) after the contextPath are duplicated.
Example :
contextPath = cp
<forward path="/myAction.do" redirect="true"/>
The redirect to http://server.com/cp/myAction.do in tomcat is transformed to http://server.com/cp//myAction.do in weblogic. And it gives us a problem with a thirdparty caching tool.

Does anybody know how to fix this ?

thanks

[ August 09, 2005: Message edited by: pascal gehl ]

 
pascal gehl
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried that and it doesn't work because if I take the / out struts won't add the context path in front of the action and I'll get http://server.com/myAction.do.
 
You don't like waffles? Well, do you like this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic