• 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

Automatic submit !!!!!!

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I use struts 1.1 and Weblogic 8.1 on windows 2000.

I have a login.jsp which has hyperlink to join.jsp. When you click on hyperlink , you are supposed to get to join.jsp.

I have all necessary formbeans and Actions for that. The problem is "When I click on hyperlink to go to join.jsp , it doesn't go there but submits the join.jsp ,executes joinAction.class ...."

i.e it doesn't show the join.jsp but automatically submits the join.jsp !!!

Here is my action from struts-config.xml:
<action-mappings>
<actionpath="/login"
type="dummies.struts.LoginAction"
name="loginForm" scope="request"
input="/login.jsp"
validate="true">
<forward name="failure" path="/login.jsp"/>
<forward name="success" path="/loggedin.jsp"/>
</action>
<actionpath="/join"
type="dummies.struts.JoinAction"
name="joinForm"
scope="request"
input="/join.jsp"
validate="true"> <forward name="success" path="/joined.jsp"/> <forward name="failure" path="/login.jsp"/>
</action>
</action-mappings>


If you need more info...let me know......

Thanks for help.

-Anand.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your hyperlink probably points to join.do? This is why you are executing the class. Your hyperlink must point to join.jsp if you don't have any logic you need to execute prior to displaying join.jsp. Join.jsp then invokes join.do.
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ohhh great.....Thanks .. now it works fine ..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic