The Artima Developer Community
Sponsored Link

Java Answers Forum
Problem with redirect from JSP to servlet

4 replies on 1 page. Most recent reply: Aug 7, 2002 12:08 PM by Boe Darren

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
dumghe

Posts: 2
Nickname: dumghe
Registered: Jun, 2002

Problem with redirect from JSP to servlet Posted: Jun 27, 2002 12:06 AM
Reply to this message Reply
Advertisement
I have the following lines of code in my JSP file in order to register into an application through a servlet:
...
<form name="login" method="post" action="<%=response.encodeRedirectURL("../RegistrationServlet?cmd=login")%&g t;&lang=<%=request.getParameter("lang")%>">
...

The post itself is made through a JavaScript function with:
document.forms[0].submit();

When testing on a local server everything works fine. But installing on a production server, outside the organization, invoking this page and clicking the button which commands this action will cause the following error into the browser:
...
res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://host/application/Registratio...cmd=login&lang=
...

The application server is WebLogic 6.1, but we encountered the same problem on Apache - Tomcat.

Please, does anyone encountered this problem? I really need your help on this, as soon as possible.

Many thanks in advance!!!


Jay Kandy

Posts: 77
Nickname: jay
Registered: Mar, 2002

Re: Problem with redirect from JSP to servlet Posted: Jun 27, 2002 4:50 PM
Reply to this message Reply
did you try ...response.encodeRedirectURL(request.getContextPath() + "/RegistrationServlet?cmd=login...

dumghe

Posts: 2
Nickname: dumghe
Registered: Jun, 2002

Re: Problem with redirect from JSP to servlet Posted: Jun 27, 2002 11:09 PM
Reply to this message Reply
Not until now ...

Thanks a lot for the help!

Boe Darren

Posts: 6
Nickname: boe
Registered: Aug, 2002

Re: Problem with redirect from JSP to servlet Posted: Aug 7, 2002 12:08 PM
Reply to this message Reply
I am having a similar issue but I know absolutely squat about javascript or html programming. I use the following code within an flash swf file - getURL("javascript:document.bgColor='#FFFFFF'; void(0);");
I notice you have some... and I don't have any idea of the rest of the code I should put in or if it goes in the orignial html that calls up the swf or within the swf itself.

Sorry if this is obvious stuff to you but I've only been working in all the areas of web development for three months and I've been concentrating on flash so far.

Thanks for your help - I really appreciate it.

Boe Darren

Posts: 6
Nickname: boe
Registered: Aug, 2002

Re: Problem with redirect from JSP to servlet Posted: Aug 7, 2002 12:08 PM
Reply to this message Reply
I am having a similar issue but I know absolutely squat about javascript or html programming. I use the following code within an flash swf file - getURL("javascript:document.bgColor='#FFFFFF'; void(0);");
I notice you have some... and I don't have any idea of the rest of the code I should put in or if it goes in the orignial html that calls up the swf or within the swf itself.

Sorry if this is obvious stuff to you but I've only been working in all the areas of web development for three months and I've been concentrating on flash so far.

Thanks for your help - I really appreciate it.

Flat View: This topic has 4 replies on 1 page
Topic: duplicate column name Previous Topic   Next Topic Topic: Argument Passing

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use