aspose file tools *
The moose likes Struts and the fly likes jsp refreshing the action class method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsp refreshing the action class method" Watch "jsp refreshing the action class method" New topic
Author

jsp refreshing the action class method

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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

Joined: Feb 05, 2003
Posts: 4727

Check the struts-config.xml

SomeAction is forwarding you to that page.


A good workman is known by his tools.
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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

Joined: Feb 05, 2003
Posts: 4727

url should be an absolute, not relative
Here's a trick:


[ September 08, 2004: Message edited by: Marc Peabody ]
trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp refreshing the action class method