using ajax and jsp (struts) to login and remain on same page.
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...
View Answers
February 20, 2012 at 5:43 PM
February 17, 2012 at 10:50 AM
Ads
Related Tutorials/Questions & Answers:
Redirect to same jsp page on successful login
Redirect to
same jsp page on successful login Hi,
I have an application where on successful
login, the redirect should happen to
same page... from the database. I am unable to create the session for the
same login page
Advertisements
login page using jsp servlrt with mysql database?
login page using jsp servlrt with mysql database? Description... table
login.
After successfully
login
user1 see only index
page,if user2
login then he see only visiter
page and so on.
please gine me any suggession.
Thanks
display results on same jsp page
display results on
same jsp page is there any method to display search results from database on the
same jsp page where i give the inputs
using struts 1.2
display results on same jsp page
display results on
same jsp page is there any method to display search results from database on the
same jsp page where i give the inputs
using struts 1.2
display results on same jsp page
display results on
same jsp page is there any method to display search results from database on the
same jsp page where i give the inputs
using struts 1.2
html login page with ajax
html
login page with ajax hi all... i want to create a
login page using html and
ajax for validation is must. please help me doing that with code... and password from the user and check whether the user is valid or not by
using ajax
jsp login page
jsp login page hi tell me how to create a
login page using jsp and servlet and not
using bean... please tell how to create a database in sql server... please tell with code
Ajax using jsp
Ajax using jsp <%@
page import="java.io.*" %>
<%@
page import="java.util.*" %>
<%@
page import="java.sql.*" %>
<%@
page import...);
}
%>
Is there Any error...........In first
Page I use
ajax for displaying
ajax using jsp
ajax using jsp <%@
page import="java.io.*" %>
<%@
page import="java.util.*" %>
<%@
page import="java.sql.*" %>
<%@
page import="java.util.StringTokenizer" %>
<%@
page import="java.lang.*" %>
<
JSP LOGIN Page
JSP LOGIN Page sir....i have two user types usercategory and user and both user have userid and password in two different table and now i am making
login page for which i have to retrieve usertype,userid and password from two
add same tables in jsp page
add
same tables in
jsp page hi
I have a table in my
jsp page with data, now I want to add
same copy of table without its default value in
same page whenever I click add more table, how do I do
JSP Login Page Question
JSP Login Page Question hey..i have a
login page where different users first registered and then after they can
login.
my question is how a user can see only his data after
login where different users data are stored
reading data using struts and jsp java
reading data
using struts and
jsp java how can i read data entered by user into a textbox (
jsp page) into
struts action class ex emp id,so that after reading emp_id it can be read into
struts action class for retrieving other
Show image and text on same jsp page
Show image and text on
same jsp page Hi all,
I have to display image and text on the
same jsp page.
The text and image are both retrived from mysql database.
The image is shown correctly on seperate
jsp page but when shown
How to change value of div using Ajax in struts.
How to change value of div
using Ajax in
struts.
In this example, we will introduce you to how to change value of div tag
using Ajax in
struts, without reloading
page.
1-index.
jsp
<%@
page
contentType="text/html
Get form value in same page - JSP-Servlet
Get form value in
same page Hello friends,
Can we get a form field value in the
same to be processed in java coding... friend,
For solving the problem visit to :
http://roseindia.net/
jsp/user
Struts2 ajax validation example.
Struts2
ajax validation example.
In this example, you will see how to validate
login through
Ajax in
struts2.
1-index.
jsp
<html>
<head>
<title>
Ajax_Validation_Example</title>
</head>
<
Popup Window using Ajax In JSP
Popup Window
using Ajax In
JSP
 ... Window application
using Ajax in
JSP. For this, we will create the following...;
jsp:forward
page="InsertData.jsp" />
<%
}
else