Struts newbie question

2003-10-22 Thread Nathan Maves
I have a form that has two select boxes.  One need to be pre-populated 
on load.  The second will be populated when a use selects one of the 
elements in the first list.

Can this be accomplished and if so how?

I would really like to use DynaActionForms if possible.

Nathan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts newbie question

2002-10-16 Thread Bhamani, Nizar A TL56E

I had a question about deploying an application that consisted of multiple
struts based components. i.e. there will be a main application directory
set (which is struts based) under webapps and underneath which there will be
multiple sub-application directories which are also struts based. My guess
is
this should work but I just wanted to confirm this from this group.

Thanks,

Nizar Bhamani 


CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts Newbie Question

2000-12-19 Thread James Howe

I've just started looking at Struts and I would like to try and use it to 
build a simple web site.  I've managed to get the environment installed and 
working (I've installed the 12/15 build) and I've looked at the 
example.  However, I'm somewhat stumped as to how to proceed with my real 
world application.

For my simple application, I want to create a page which displays a table 
of information.  The contents of the table will vary depending on the value 
of an input parameter.  As an example of the sort of thing I'm doing, 
imagine an online brokerage firm which lets a user display his/her 
portfolio.  A user could have multiple portfolios and the user can display 
one at a time.  The user would select a particular portfolio name, and the 
next page would be a display of their portfolio, with items such as 
investment name, investment type, amount, purchase date, etc.

Looking at struts, it would seem that I would want to have some action page 
which gets invoked when the user selects a portfolio.  The URL might be 
something like this:

http://foo.bar.com/testapp/viewPortfolio.do?name="my portfolio"

I would define a subclass of action, whose "perform" method would get the 
portfolio name, do some processing and then forward things on to a display 
page with a line like this:

 ...
return (mapping.findForward("success"));

The forward would be the "view" page for my results.  Is this the proper 
approach to take?  If so, I'm a little fuzzy on how to make the results of 
my perform method available to my view page.  Would I instantiate a new 
bean object and stuff it in the request object?  Would I then have a 
"useBean" line in my view page?  What I think I want to be able to do in my 
view, is to use the iterate tag to loop over the contents of my generated 
portfolio table.  I'm just a little unclear on all the mechanics involved 
in doing something like this.

Any help or examples that people could shed on this subject would be 
greatly appreciated.

Thanks.




Re: Struts Newbie Question

2000-12-19 Thread Ted Husted

This actually sounds a lot like the Struts-Example application to me,
except that you would have portfolios where the Example has email
subscriptions. 

To get a quick start, you could just revise the SubscriptionForm class,
subscription.jsp, and User.java to meet your data requirements. The
rest of the Example framework may be generic enough that it may work
for you unchanged (at least at first). 

Utlimately, tou would probably then want to add a link to another
action to the subscription.jsp so that people could manage things
within the portfolio. 

The Example's DatabaseServlet nests a hashtable of Subscription objects
as part of the User object. You could probably take that a step further
and nest a hashtable of Holding objects within the Portfolio (aka
Subscription) object. 

There's a quick introduction to the Example application at <
http://husted.com/about/support/struts/ > if you're interested in
taking this route.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Implement menu into Struts ( Newbie question )

2001-09-14 Thread Claudio Parnenzini

Hi all,

I would like to know how is the best way to implement a standard menu 
wrote in Javascript with Struts. My web application have a top frame that 
contains my menu, when you click on to an item, I would like to call a 
jsp page ( Targeted into the body frame ) that display data from a DB.

Is the best way to do it by calling an Action class that take data from 
the DB and after call the JSP page ? 
Or is there an other way to do it???

Any link or example are really appreciate.

Regards

Claudio Parnenzini



AW: Implement menu into Struts ( Newbie question )

2001-09-14 Thread juraj Lenharcik

hi claudio,

i think it is of course the best way to do it with your ActionBean. it
exists a struts based taglib collection named struts light
http://struts.application-servers.com/ . theres a menu implemented in struts
and jsp. i think it is exactly tat, what you need. i tried the menu some
time ago, but i had problems to run it, when you have a hierarchical
structure with a deep more than two. but for a simple use it should suffice.


juraj

 

-Ursprüngliche Nachricht-
Von: Claudio Parnenzini [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 14. September 2001 13:52
An: [EMAIL PROTECTED]
Betreff: Implement menu into Struts ( Newbie question )


Hi all,

I would like to know how is the best way to implement a standard menu 
wrote in Javascript with Struts. My web application have a top frame that 
contains my menu, when you click on to an item, I would like to call a 
jsp page ( Targeted into the body frame ) that display data from a DB.

Is the best way to do it by calling an Action class that take data from 
the DB and after call the JSP page ? 
Or is there an other way to do it???

Any link or example are really appreciate.

Regards

Claudio Parnenzini



Re: AW: Implement menu into Struts ( Newbie question )

2001-09-14 Thread Claudio Parnenzini

Thanks, I will have a look.

Regards

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 9/14/01, 1:59:14 PM, juraj Lenharcik <[EMAIL PROTECTED]> 
wrote regarding AW: Implement menu into Struts ( Newbie question ):


> hi claudio,

> i think it is of course the best way to do it with your ActionBean. it
> exists a struts based taglib collection named struts light
> http://struts.application-servers.com/ . theres a menu implemented in 
struts
> and jsp. i think it is exactly tat, what you need. i tried the menu some
> time ago, but i had problems to run it, when you have a hierarchical
> structure with a deep more than two. but for a simple use it should 
suffice.


> juraj



> -Ursprüngliche Nachricht-
> Von: Claudio Parnenzini [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 14. September 2001 13:52
> An: [EMAIL PROTECTED]
> Betreff: Implement menu into Struts ( Newbie question )


> Hi all,

> I would like to know how is the best way to implement a standard menu
> wrote in Javascript with Struts. My web application have a top frame that
> contains my menu, when you click on to an item, I would like to call a
> jsp page ( Targeted into the body frame ) that display data from a DB.

> Is the best way to do it by calling an Action class that take data from
> the DB and after call the JSP page ?
> Or is there an other way to do it???

> Any link or example are really appreciate.

> Regards

> Claudio Parnenzini