You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Jobe <ud...@yahoo.com> on 2003/02/16 17:25:41 UTC

Undergrad student seeking help with struts

I am a undergrad student and I am just getting started
developing using struts for a senior project. Here are
the questions that I have.

1. If I have an application where each user has
different menu options, how do I load each menu option
depending on the user?

2. I have the draft of my application in HTML form. I
have multiple forms on one page. How do I make this
using struts?

Thanks everyone!
Mike



__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Undergrad student seeking help with struts

Posted by Yaron Sela <ya...@bezeqint.net>.
Hi mike.

1. You can use cookies by saving on each user cookies which type of menu to
show or use the HTTPSession to save the type of the menu.
2. Use te templates. You can see the example of th portal in the examples.

Yaron.

----- Original Message -----
From: "Michael Jobe" <ud...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Sunday, February 16, 2003 6:25 PM
Subject: Undergrad student seeking help with struts


> I am a undergrad student and I am just getting started
> developing using struts for a senior project. Here are
> the questions that I have.
>
> 1. If I have an application where each user has
> different menu options, how do I load each menu option
> depending on the user?
>
> 2. I have the draft of my application in HTML form. I
> have multiple forms on one page. How do I make this
> using struts?
>
> Thanks everyone!
> Mike
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Undergrad student seeking help with struts

Posted by John Espey <je...@Tallan.com>.
> -----Original Message-----
> From: Michael Jobe [mailto:udjobe@yahoo.com]
> Sent: Sunday, February 16, 2003 10:26 AM
> To: struts-user@jakarta.apache.org
> Subject: Undergrad student seeking help with struts
>
>
> I am a undergrad student and I am just getting started
> developing using struts for a senior project. Here are
> the questions that I have.
>
> 1. If I have an application where each user has
> different menu options, how do I load each menu option
> depending on the user?

you can use logic:present and the role attribute if the menus are based on
security roles (admin, editor, manager, user, etc.)


>
> 2. I have the draft of my application in HTML form. I
> have multiple forms on one page. How do I make this
> using struts?
>
> Thanks everyone!
> Mike
>

I'm not sure exactly what your requirements are, but you can have multiple
forms on a single page as long as they don't overlap one another.
<html:form action="/action1">

</html:form>
<html:form action="/action2">

</html:form>
etc.


If you need the same form elements on a given page to be submitted to
different actions, the easiest way to achieve this is to use one of the
various actions in in the actions package (DispatchAction or ForwardAction)
or the scaffold RelayAction

Hope this helps.

>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org