• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Create fake request coming in from jsp to ActionServlet

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?






 
Ranch Hand
Posts: 43
Android Hibernate jQuery
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.



 
All of the following truths are shameless lies. But what about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic