Anthony,

I'm still a newbie to struts myself, so take this email with a gain of
salt (or 2). I put in a suggestion down below that may make your life
easier if you have a lot of reports to deliver (or similiar items on
what you are displaying).

> -- Start JSP Code
> 
> <%
>     ProjectsBean projectsBean = new ProjectsBean();
>     projectsBean.populate();
> %>

My personal opinion is that using this code negates the functionality
of Struts (but I haven't seen any other part of your app or pretend to
be anything but a newbie to struts still). My guess is that this is
your problem, you might need to put inside the <% %> tags a
request.getSession().setAttribute(projectsBean, projectsBean); or
something to that effect. I could be wrong on this...

See below for a solution that is *possibly* more adaptable.

Suggestion:

 Anyhow, when I make reports for people to look at I give them 1 page
with a drop down box with all the report names on it. Have an 
Actionform collect the report name and any other information the
Struts Action then creates the object and puts it in the session and
then below the submit button I have

<logic:present name="reportInfo">
  <logic:iterate ..>
      Table Code goes here.
  </logic:iterate>
</logic:present>


This allows me to maintain a minimal set of code to display any and
all reports that the company ever wants. Add an item to the drop down
box, they hit the submit button, the action grabs the data they want
and I throw it into the session and redisplay the same page.

In some cases I have multiple sets of logic tags for  each report as
there may be a wide variation of fields which need to be displayed.
You could also use Tiles and design a jsp page for each individual
report and inside the logic:present tags just put <tiles:insert ..> as
well.

I'm sure there's a number of ways to do it. 

HtH

Andrew

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

Reply via email to