Hi,

Thanks a lot!!
Yes, I guess I did the same steps that you described :)

My goal was to get name1+name2 ONLY

If it is OK to have name like that: MoriaMoriaMoriaMoria ... and so on
It means that I am done with the assignment.

Thanks,
Moria.

-----Original Message-----
From: marcos gomez [mailto:gomezmarcos...@gmail.com] 
Sent: Thursday, October 22, 2009 12:06 PM
To: Moria Shebsovich
Cc: ingsopor...@gmail.com;
java-ee-j2ee-programming-with-passion@googlegroups.com
Subject: Re: [java ee programming] Re: LAB 4004

Hi, i have just done this homework.

I did the following:
- add the link as you did.
- change NameHandler.setName() as suggested, so i can append names
(more than 2! ).
- save mybean in Session scope

1.The first time we go to response.jsp we create mybean in session
scope, setting all parameters. (note our new setName() ). ""+name1.
2.The second time we do the same but now we call mybean from session
scope and then we set again all parameters. But setName() appends now!
doing name1+name2.

If we keep mybean scope in request we will always loose the first name
we set.

I hope I made myself clear.

Regards,



On 10/22/09, Moria Shebsovich <mshebsov...@xifin.com> wrote:
> Hi Fernando,
>
> I am working on this assignment too.
>
>
>
> I modified scope of mybean to session and changed setName() as
> suggested.
>
>
>
> I added link in response.jsp
>
>
>
> <a hef ="index.jsp"></a>
>
>
>
> After
>
>
>
> <jsp:useBean id="mybean" scope="request"
> class="org.me.hello.NameHandler" />
>
>         <jsp:setProperty name="mybean" property="*"  />
>
>
>
> This return logic back to index.jsp. At this point I don't have any
idea
> how to modify form that it will add exactly two parts of name and
> display it - for me it going to loop and I may add new names
endlessly.
>
>
>
> I am pretty much stuck with this...
>
>
>
> Regards,
>
> Moria.
>
> ________________________________
>
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On
> Behalf Of fernando pardo
> Sent: Thursday, October 22, 2009 9:36 AM
> To: java-ee-j2ee-programming-with-passion@googlegroups.com
> Subject: [java ee programming] LAB 4004
>
>
>
> Hello guys:
>
> i have a problem; i dont know in where file i have to add instructions
> ,and if is in response.jsp how and where i must enter the
instructions.I
> remember you these must to put a box or a link that carry me to
> index.jsp.
>
> thanks a lot
>
> anyone help thanks
>
>
>
>
> >
>


-- 
/*
 *  Gomez Marcos
 *  Java Developer.-
 *
 */

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to