> You mean something like <c:import url="/myApp/myform.do"/> ?

Yes, I want this action to be called from my JSP. From my limited knowledge of Struts (since I am a newbie to it), the form has to be submitted in order to get the action to do work.

I basically just want this action to retrieve data from the database and return a collection so I can iterate and go through the list.

If there is another way to make this import call this action and return the data, that would be great. I just want this data to be displayed when the user loads this page.

Thanks.

           Tom

Jim Barrows wrote:


-----Original Message-----
From: Tom Holmes Jr. [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:33 PM
To: Struts Users Mailing List
Subject: Imports and Form Submits


I have a webpage called 'default.jsp' and it has three <c:import> tags.
One does the header, footer, and body. The Header and Footer are fine, but the middle page is a 'jsp' page with nothing but a form in it ... I mean it starts out like <html:form ...>
It also has some taglibs designed, and a resource bundle.


What I want to happen is when this middle page is loaded, I want the form in the middle import <c:import url="myform.jsp"> to be automatically executed when the main default.jsp page loads. The Header and Footer work fine for importing HTML, but the form in the middle I want to be run immediatley when the main page gets called. Obviously, submitting the form would called the ActionBean and that is what I want to happen.

I've tried having the middle import call the 'myform.do' file directly, but then I get a JasperException Error.


You mean something like <c:import url="/myApp/myform.do"/> ?



Is there any way to do this? An easy way to do this? Do I need to do Javascript and an 'onload' function or,

Any help would be much appreciated.   Thanks.

          Tom


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




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




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



Reply via email to