File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes please help me to solve following spring issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "please help me to solve following spring issues " Watch "please help me to solve following spring issues " New topic
Author

please help me to solve following spring issues

Nuri Jain
Greenhorn

Joined: Jan 22, 2008
Posts: 10
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

"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.


[My Blog]
All roads lead to JavaRanch
Nuri Jain
Greenhorn

Joined: Jan 22, 2008
Posts: 10
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

Joined: Jan 22, 2008
Posts: 10
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Jan 22, 2008
Posts: 10
Its working now. Thanks.
Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
Hi Nuri,

Can you show some code where in you have coupled Spring and Struts. It will help me a lot.


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please help me to solve following spring issues