
I am a fresher... I can forward my login page to success page using struts, but I want to remain on same login page and just want to display loggers name ... I don't know how to use struts to remain on same page.
What about config file:-
<form-beans>
<form-bean name="LoginForm" type="com.ajit.form.LoginForm"/>
</form-beans>
<action-mappings>
<action path="/getLogin" type="com.ajit.action.LoginAction" name="LoginForm" scope="session">
<forward name="success" path="/BirthdayParty.html" />
<forward name="error" path="/Register.jsp" />
</action>
</action-mappings>
<form-beans>
<form-bean name="msgForm" type="com.ajit.LoginForm"/>
</form-beans>
help will be appreciated...

thank you :)..

Have a look at the following link:
http://www.roseindia.net/struts/struts2/struts2ajax/ajax-login-form.shtml