RE: [java ee programming] LAB-4205

2009-12-14 Thread Moria Shebsovich
Hello Stepan,

Try to set names in forward exactly how they are defined in
attributes:

action-mappings
action path=/Welcome forward=/welcomeStruts.jsp/
action path=/submit
  type=submit.HelloAction
  name=helloForm
  input=/index.jsp
  scope=request
  validate=true
 forward name=passionname path=/indexpassionname.jsp/
 forward name=nopassionname
path=/indexnopassionname.jsp/
/action-mappings

Regards,
Moria.

-Original Message-
From: java-ee-j2ee-programming-with-passion@googlegroups.com
[mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On
Behalf Of Stepan S
Sent: Sunday, December 13, 2009 2:09 PM
To: Java EE (J2EE) Programming with Passion!
Subject: [java ee programming] LAB-4205

Hello, guys!
Can any one give me some advice with that problem:

struts-config.cml file:
..
form-beans
form-bean  name=helloForm
type=submit.HelloForm/
/form-beans
...

global-forwards
forward name=welcome  path=/Welcome.do/
/global-forwards

action-mappings
action path=/Welcome forward=/welcomeStruts.jsp/
action path=/submit
  type=submit.HelloAction
  name=helloForm
  input=/index.jsp
  scope=request
  validate=true
 forward name=success path=/indexpassionname.jsp/
 forward name=failure path=/indexnopassionname.jsp/
/action-mappings
...

index.jsp:



  h2Hello, my name is Duke. What's yours?/h2

  html:errors/

  html:form action=submit.do
  Name: html:text property=name/br

  html:submit/
/html:form


In submit package I have HelloAction.java and HelloForm.java (with
setters / getter + validation). And HelloAcion.java with
request.setAttribute(name, passionname);  those.
In properties of my hello1 project I set /index.jsp
But when I run this project I got this
404 error
descriptionThe requested resource () is not available.

Thanks in advance =)

/Stepan

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=
en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Java EE (J2EE) Programming with Passion! group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] LAB-4205

2009-04-06 Thread lisandrodc

Hi all! I have a  doubt in this homework: If i NOT entered an username
or it not have more than  3 characters:
Return nopassionname???
link this homework: 
http://www.javapassion.com/handsonlabs/strutsbasics/#Homework_Exercise
Thanks!
Lisandro

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Java 
EE (J2EE) Programming with Passion! group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~--~~~~--~~--~--~---