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

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


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Struts Hibernate Spring Login Action

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

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

get me the project

Posted by John wu on Saturday, 09.12.09 @ 14:54pm | #90852

Online Examination In Java With Coding , Struts Hibernate Spring Login Action

Posted by John wu on Saturday, 09.12.09 @ 14:30pm | #90849

i can not find online exam code in java easily.

Posted by shishir on Friday, 08.28.09 @ 07:14am | #90377

here i cann't find the code easily

Posted by shishir on Friday, 08.28.09 @ 07:12am | #90376

very good sites,&helpful For carrear.

Posted by Vismay on Monday, 08.24.09 @ 15:37pm | #90261

how can generate the report in jsp and ejb project

Posted by kuldeep on Saturday, 03.14.09 @ 09:19am | #85836

thanks

Posted by chayan on Monday, 12.1.08 @ 14:23pm | #82251

thankyou

Posted by chayan on Monday, 12.1.08 @ 14:16pm | #82250

I'm new in struts and am using struts 1.2,for the help in creation in a login page with client and server side validation how can i do these validation with simple steps which i had followed described in this site but i got several dought so pls send the correct code for the same

<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<html:html locale="true">

<head>

<title>login</title>

<html:base/>

<script type="text/javascript">
function valid()
{
if(document.forms[0].name.value=="")

{
alert("enter the name");
document.forms[0].name.focus();
document.forms[0].name.value="";

return false;
}
else if(document.forms[0].pwd.value=="")
{
alert("enter the password");

document.forms[0].pwd.focus();
document.forms[0].pwd.value="";

return false;
}

else{
return true;
}
}
</script>

</head>

<body bgcolor="white">


<html:form action="login.do?action=login" onsubmit="return valid();" method="post">
<!-- <input type="hidden" name="action" value="login">-->
<html:errors/>
<table>
<tr>

<td align="center" colspan="4">
<font size="4">Please Enter the Following Details</font>
</tr>
<tr>
<td align="right">
Name
</td>
<td align="left">
<html:text property="name" size="30" maxlength="30" />
</td>
</tr>
<tr>
<td align="right">
password
</td>
<td align="left">
<html:password property="pwd" size="30" maxlength="30"/>
</td>
</tr>


<tr>

<td align="right">
<html:submit></html:submit>
</td>
<td align="left">
<html:reset value="rest" property="reset"></html:reset>
<br></td>
</tr>



</table>
<br>

</html:form>
</body>
</html:html>
this the front page

Posted by salish on Thursday, 08.21.08 @ 10:56am | #74139

sir is it possible we send information from Struts action class to jsp page for example hashmap or arraylist etc.

if not then we write the class access code in the jsp page ,

i think it break the MVC Architecture.

or what else solution ?

please help!

Posted by HAroon on Thursday, 07.24.08 @ 14:03pm | #68750

Dear sir,i am great fan of your website.Its simply superb.i gained lot of knowledge from this website.Please provide the code for login action,forgot password modules.Please update as soon as possible.
Thanks&Regards
prabhu

Posted by prabhu on Friday, 02.15.08 @ 12:50pm | #48372

Dear sir,i am great fan of your website.Its simply superb.i gained lot of knowledge from this website.Please provide the code for login action,forgot password modules.Please update as soon as possible.
Thanks&Regards
Anil

Posted by AnilKumar on Wednesday, 08.15.07 @ 16:27pm | #23450

this is done already in previous page of tutorial

Posted by cuneyt on Thursday, 03.15.07 @ 02:12am | #11736

I like to go through the code of the application

Posted by Narsing on Monday, 11.27.06 @ 15:34pm | #140

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
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.