Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML
 
 
Hot Web Programming Job

 

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials

Core Java
JSP
Servlet
JDBC
Hibernate
Struts 1
Struts 2
JSF
Spring
J2EE
J2ME
Web Services
Ajax
Dojo
MySQL
Latest Comments
Null pointer excep
swap program faile
hi.........
very good
navigaton mobile
  All Comments...
 

 

 
Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller
* Struts Action Class
* Struts ActionFrom Class
* Using Struts HTML Tags
*Struts Validator Framework    
*Client Side Address Validation    
*Struts Tiles
*tiles-defs.xml
*Struts DynaActionForm
*Struts File Upload
*Struts DataSource
*AGGREGATING ACTIONS
*Internationalization
Struts Resources
*Struts Books
*Struts Articles
*Struts Frameworks
*Struts IDE
*Struts Alternative
*Struts Links
*Struts Presentations
*Struts Projects
*Struts Software
*Struts Reference
*Struts Resources
*Other Struts Tutorial
Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Have tutorials?
Add your tutorial to our Java Resource and get tons of hits.

We offer free hosting for your tutorials. and exposure for thousands of readers. drop a mail
roseindia_net@yahoo.com
 
   

 
Join For Newsletter

Powered by groups.yahoo.com
Visit Group! Post Questions!

Struts Struts2 Struts2 Login

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

10 comments so far (post your own) View All Comments Latest 10 Comments:

Where does session.login came from?

Posted by SunriseKid on Monday, 09.15.08 @ 08:33am | #79487

hi to everybody,
in the article above the user needs to login and logout explicitally.
i need that the logout occours also when the user closes its browser and when the session expires.

someone can help me?
thank's

Posted by michele on Saturday, 08.2.08 @ 15:30pm | #70529

I'm a beginer of Struts Framework Programing.
i just started with this Login tiutorial but i got error at Runtime like this.
"The Struts dispatcher cannot be found. This is usually caused by using
Struts tags without the associated filter. Struts tags are only usable
when the request has passed through its servlet filter, which initializes
the Struts dispatcher needed for this tag. "

at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60) which is the
inbuit class file of strtus.jar file .

i'm using Oracle's Jdeveloper for development.

plz give me solution for this problem as soon as possible.


Thank you,
Rose India

Posted by Mayank Patel on Monday, 05.12.08 @ 14:24pm | #59449

<s:if test="#session.login != 'admin'">

where does login come from?

Posted by struts beginner on Saturday, 05.10.08 @ 02:53am | #59055

Thanks for giving these tutorials which will help all the beginners in struts.

I have some doubt in this tutorial(Login/Logout With Session). I am listing it below.

1) What's the need of

public String logout() throws Exception {

Map session = ActionContext.getContext().getSession();
session.remove("logged-in");
return SUCCESS;
}

in loginAction.java

2)what's the need of

<jsp:include page="/struts2tags/pages/uiTags/loginCheck.jsp" />


in Success.jsp
I got the results without these. So what for it is written?

Hope i will get help form yours.

Thanks in Advance
Struts

Posted by sarin on Tuesday, 03.18.08 @ 10:20am | #53142

Highly informative for struts2 beginners.
many thanks

Posted by dtrprasad on Wednesday, 03.12.08 @ 20:26pm | #52492

Hi, I'm currently learning the Struts2 through this tutorial, but at this page, I got some error. When I do exactly what this page said, I can't access the login.action, it says that there's some null pointer exception; then I delete the "type=redirect" in the struts.xml file, in the login action, it works. I don't know the reason:(
and my jdk is 1.5.0.13, tomcat version 6.0.16
can any one explain this? Thanks:)

Posted by stanley on Wednesday, 02.27.08 @ 08:30am | #50264

my question is the same of vijaykumar

Posted by Cynthiadave on Sunday, 12.16.07 @ 06:01am | #42566

The Success.jsp has this include - but I don't see where it is, and the struts2tutorial.zip is missing all kinds of files from here.

Posted by Sean on Saturday, 12.8.07 @ 02:25am | #41570

Hi
it is very usefull site for begginers like me. i have gone through this sessions. i am having query related to session.put("logged-in","true").my query here is where do we use those objects which are declared in
session.put().

i would like to know about this.can any one help me here...........

Posted by vijaykumar on Tuesday, 11.27.07 @ 13:02pm | #40676

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.