You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Torsten Terp <tt...@stofanet.dk> on 2001/06/05 12:51:40 UTC

Newie question

Hi,

Im I have just started using Struts and the idea
of the framework seems great!! I could however
use some help getting started the right way!! 

I want to do as folows:

A jsp page with an input fields takes as input 
a string used to perform a seach in a database.
E.g., a substring of the name of some customer.

Control is forwarded to another jsp that displays
the results, e.g., the customernames containing the
substring provided in the input field above. These
customernames should be displayed in a html:select

Selecting one of the customers will result in another
search which retrieves all data for that particular 
customer and displays it in another frame.

Im thinkind this is a pretty generic setup, so my
question is if anybody has example code of this.

Im using the jBoss application server as the model, 
so its not the database pooling from struts im after,
its the control flow and populating the jsp's....

It would be greatly apreciated. Thanks in advance...

^torsten

RE: Newie question

Posted by Torsten Terp <tt...@stofanet.dk>.
Hi,

Thanks a lot!
I will take a look at the link!

^torsten

> -----Original Message-----
> From: Ted Husted [mailto:husted@apache.org]
> Sent: Tuesday, June 05, 2001 2:11 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: Newie question
> 
> 
> You could take a look at Part 2 of Strut by Strut, under Coming Soon at
> < http://www.husted.com/about/struts/ >
> 
> I'm working on some generic Access, Search, and Result actions there.
> 
> Though, the usual approach would be that control goes to an action that
> manages the data retrieval and forwards the result to another JSP for
> display. 
> 
> [JSP] -> [ACTION] -> [JSP] ...
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
> 
> Torsten Terp wrote:
> > 
> > Hi,
> > 
> > Im I have just started using Struts and the idea
> > of the framework seems great!! I could however
> > use some help getting started the right way!!
> > 
> > I want to do as folows:
> > 
> > A jsp page with an input fields takes as input
> > a string used to perform a seach in a database.
> > E.g., a substring of the name of some customer.
> > 
> > Control is forwarded to another jsp that displays
> > the results, e.g., the customernames containing the
> > substring provided in the input field above. These
> > customernames should be displayed in a html:select
> > 
> > Selecting one of the customers will result in another
> > search which retrieves all data for that particular
> > customer and displays it in another frame.
> > 
> > Im thinkind this is a pretty generic setup, so my
> > question is if anybody has example code of this.
> > 
> > Im using the jBoss application server as the model,
> > so its not the database pooling from struts im after,
> > its the control flow and populating the jsp's....
> > 
> > It would be greatly apreciated. Thanks in advance...
> > 
> > ^torsten
> 
> 

Re: Newie question

Posted by Ted Husted <hu...@apache.org>.
You could take a look at Part 2 of Strut by Strut, under Coming Soon at
< http://www.husted.com/about/struts/ >

I'm working on some generic Access, Search, and Result actions there.

Though, the usual approach would be that control goes to an action that
manages the data retrieval and forwards the result to another JSP for
display. 

[JSP] -> [ACTION] -> [JSP] ...

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Torsten Terp wrote:
> 
> Hi,
> 
> Im I have just started using Struts and the idea
> of the framework seems great!! I could however
> use some help getting started the right way!!
> 
> I want to do as folows:
> 
> A jsp page with an input fields takes as input
> a string used to perform a seach in a database.
> E.g., a substring of the name of some customer.
> 
> Control is forwarded to another jsp that displays
> the results, e.g., the customernames containing the
> substring provided in the input field above. These
> customernames should be displayed in a html:select
> 
> Selecting one of the customers will result in another
> search which retrieves all data for that particular
> customer and displays it in another frame.
> 
> Im thinkind this is a pretty generic setup, so my
> question is if anybody has example code of this.
> 
> Im using the jBoss application server as the model,
> so its not the database pooling from struts im after,
> its the control flow and populating the jsp's....
> 
> It would be greatly apreciated. Thanks in advance...
> 
> ^torsten