Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Struts-Config
vaannila
follow
0
6-30-2009 6:10 PM
44 views
tags:
struts-config
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Incredible Aerial Photography
Caress me if you can ... (38 pics)
Carrie Prejean - XXX Fraud
Time gets better with age
Animals' eating habits
What Americans owe to those who serve
Mind Control With Sound and Light
Photo's from Neda's Life
3 American hikers that strayed into Iran charged with espionage, punishable by death
6 Most Annoying Coworker Types
visit the
Top Clips page
View the Top Clips from
June 30, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/53910782-d4f8-4bc4-8ad5-827f9b75e037/368156ED-3827-407D-A8A4-B42F3B89F541/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html" href="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html" style="font-size: 11px;">www.vaannila.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html"><DIV class="index"><A rel="nofollow" href="http://www.vaannila.com/struts/struts-example/../struts-tutorial/struts-tutorial.html">Struts 1</A></DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html"><H1>Login Application Using Action Form</H1></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html"><H2>struts-config.xml</H2></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html"><P> The validate method in the LoginForm class is called when the Form is submitted. If any errors are found then the control is returned back to the input page where the errors are displayed to the user. The input page is configured in the action tag of strut-config file. <html:errors /> tag is used to display the errors in the jsp page. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts/struts-example/struts-login-page-example-2.html"><DIV class="line alt1"><SPAN class="content"><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">struts-config</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">02.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">form-beans</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">03.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">form-bean</CODE> <CODE class="color1">name</CODE><CODE class="plain">=</CODE><CODE class="string">"LoginForm"</CODE> <CODE class="color1">type</CODE><CODE class="plain">=</CODE><CODE class="string">"com.vaannila.LoginForm"</CODE><CODE class="plain">/></CODE></SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">04.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"></</CODE><CODE class="keyword">form-beans</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">05.</CODE><SPAN class="content"><SPAN class="block"> </SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">06.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">action-mappings</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">07.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">action</CODE> <CODE class="color1">input</CODE><CODE class="plain">=</CODE><CODE class="string">"/login.jsp"</CODE> <CODE class="color1">name</CODE><CODE class="plain">=</CODE><CODE class="string">"LoginForm"</CODE> <CODE class="color1">path</CODE><CODE class="plain">=</CODE><CODE class="string">"/Login"</CODE> <CODE class="color1">scope</CODE><CODE class="plain">=</CODE><CODE class="string">"session"</CODE></SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">08.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="color1">type</CODE><CODE class="plain">=</CODE><CODE class="string">"com.vaannila.LoginAction"</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">09.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">forward</CODE> <CODE class="color1">name</CODE><CODE class="plain">=</CODE><CODE class="string">"success"</CODE> <CODE class="color1">path</CODE><CODE class="plain">=</CODE><CODE class="string">"/success.jsp"</CODE> <CODE class="plain">/></CODE></SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">10.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">forward</CODE> <CODE class="color1">name</CODE><CODE class="plain">=</CODE><CODE class="string">"failure"</CODE> <CODE class="color1">path</CODE><CODE class="plain">=</CODE><CODE class="string">"/failure.jsp"</CODE> <CODE class="plain">/></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">11.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"></</CODE><CODE class="keyword">action</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt2"><CODE class="number">12.</CODE><SPAN class="content"><CODE class="spaces"> </CODE><SPAN class="block"><CODE class="plain"></</CODE><CODE class="keyword">action-mappings</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV><DIV class="line alt1"><CODE class="number">13.</CODE><SPAN class="content"><SPAN class="block"><CODE class="plain"></</CODE><CODE class="keyword">struts-config</CODE><CODE class="plain">></CODE></SPAN></SPAN></DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/368156ED-3827-407D-A8A4-B42F3B89F541/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK