Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help me to solve following spring issues

 
Nuri Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am entering userid and pwd through login page,i am able to generate success page with userid and pwd.this is working fine for me.

1)MY question is if i want to see the same login page with user id and pwd instead of new success page how can i get it ? If i am using same name for formView and successView its throwing error for bean cause i am using <form> for binding.
Actually on the same login form if userid and pwd is correct i want to show some more text field to fill by user.

2)If i want to submit my jsp page for different-2 action how can i do it in spring2.0.(As i worked in struts we can change action name using javascript and submit will consider current form action )

3)As in struts we can use <action name="" and path =""> to generate simple jsp page without form bean or action class ,can we do the same in spring?
can we call jsp page without using any controller MV.if yes then how ?

Please help me i have to urgent solve those issue for my project development.

Thanks in advance.

nuri[/I][/I]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"nuri nuri",
Hi, welcome to the ranch. You may not be aware of the ranch's Naming Policy. Please take some time to read it and change your name accordingly. Thank you.
 
Nuri Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for mistake ,

I changed my display name accroding to your policy.
Please help me to resolve my issues.
Thanks in advance.

-Nuri
 
Nuri Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

please let me know what is use of form action in spring ,cause without using this attribute i am able to submit form data into controller which i defined in servlet.xml file.

I have 2 button on my jsp I want to call 2 differentdiffernt controller on that button ,how can i do this ?
whenever i submit my page using submit in javascript it always calls predefined controller (which is defined in .xml file) but i want to call different controller .

please help me

Thanks
Nuri Jain
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have 2 button on my jsp I want to call 2 differentdiffernt controller on that button ,how can i do this ?

Using Javascript, like you were doing in Struts, doesn't work ? If you set the form's action according to which button was pressed, it should be ok. Are you using Spring's form tags, or plain HTML form tags ?
[ March 27, 2008: Message edited by: Christophe Verre ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another thing. If you are not willing to follow Spring's MVC pattern, maybe you should consider using something else. You'll spend too much time trying to figure out simple things.
 
Nuri Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its working now. Thanks.
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nuri,

Can you show some code where in you have coupled Spring and Struts. It will help me a lot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic