• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp refreshing the action class method

 
trupti nigam
Ranch Hand
Posts: 626
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I have a jsp page which refreshes after every 2 seconds like below.

<meta http-equiv="refresh" content="2;url="SomeAction.do">

Whenever the jsp is refreshed it should call the SomeAction's processAction method.

But right now, after every 2 seconds instead of refreshing the same JSP,
it takes me to the previous one.

what is wrong? Can some one please let me know as I am stuck with this for more that 2/3 days.

Thanks,
trupti
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the struts-config.xml

SomeAction is forwarding you to that page.
 
trupti nigam
Ranch Hand
Posts: 626
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I gave the wrong information..

<%@ page import= "com.web.action.*" %>
<meta http-equiv="refresh" content="2;url=SomeAction.do">

now after 2 seconds,
it displayes the below message:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the localhost:7001 home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.


HTTP 400 - Bad Request
Internet Explorer


Please help me..

thanks,
Trupti
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
url should be an absolute, not relative
Here's a trick:


[ September 08, 2004: Message edited by: Marc Peabody ]
 
trupti nigam
Ranch Hand
Posts: 626
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc,

It worked..
Thanks a lot.
The mistake was I was not including the absolute path and in the action name there was small spelling mistake..

thanks,
Trupti
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic