File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Create fake request coming in from jsp to ActionServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Create fake request coming in from jsp to ActionServlet" Watch "Create fake request coming in from jsp to ActionServlet" New topic
Author

Create fake request coming in from jsp to ActionServlet

Alex Lee
Greenhorn

Joined: May 05, 2004
Posts: 5
Hi guys,

Do you guys encounter this situation before?

I have 2 framework running in my web app.

One is struts , the other is normal servlet

the struts contain the login portion..

I don't have the code of struts portion,
I only know the following from struts -config.xml :
<action path="/logon" type="UserLogonAction" input="/logon.jsp" name="UserLogonForm" unknown="false">
<forward name="secure-logon-success" path="/redirect.jsp" />
<forward name="logon-success" path="/InboxAction.wdo?action=init" />
</action>

Now, I would like to call login from my normal servlet...how do i do it?
Any idea?






Anantha Sharma
Ranch Hand

Joined: Sep 01, 2010
Posts: 43

you cal submit to the login servlet..


once you click the button its takes you to logon page.

alternatively, you can use meta tags to get similar result

CONTEXT="1" - means that the refresh should happen every second
URL=logon.do - this is the URL to which it will go to once the second is up.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create fake request coming in from jsp to ActionServlet