You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marco Rossi <me...@katamail.com> on 2003/10/16 09:46:15 UTC

struts include

Hi, 
I want to create a single jsp page with more "dynamic" include inside. Something like 
<html>
... 
.....
<jsp:include page="myAction1.do"/>
.. 
... 
<jsp:include page="myAction2.do"/>
</html>

but with jsp tsg it doesn't work.
How can i do?

Thanks



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


Re: struts include

Posted by Dirk Markert <di...@dr-markert.de>.
Hello Marco,

  have a look at tiles.

***************************************************************

MR> Hi, 
MR> I want to create a single jsp page with more "dynamic" include inside. Something like 
MR> <html>
MR> ... 
MR> .....
MR> <jsp:include page="myAction1.do"/>
MR> .. 
MR> ... 
MR> <jsp:include page="myAction2.do"/>
MR> </html>

MR> but with jsp tsg it doesn't work.
MR> How can i do?

MR> Thanks



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



Regards,
Dirk

+------- Quality leads ---------------------------------------+
| Dirk Markert                     dirk.markert@dr-markert.de |
| Dr. Markert Softwaretechnik AG                              |
| Joseph-von-Fraunhofer-Str. 20                               |
| 44227 Dortmund                                              |
+---------------------------------->>>>>>> to success! <<<<<<-+ 


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


Problem with getting value to ActionForm from page generated with tag and index attribute to true

Posted by Benz Lim <be...@bizwave.net>.
Hi,

	Apology if this has been asked, I search through the archive but
can't seem to find any solution.

	Can anyone help to enlighten me ?
After reading the mailing archive and some examples on the net

I have manage to generate using the <logic:iterate> tag to produce
individual rows of fields each row consisting of a  set of radio button
(3 of them) and a textarea

    blah blah 	|oPass	|    o N.A    |o Fail | [       ]comments


a fully render content look something like
q1	|oPass	|    o N.A    |o Fail | [       ]comments
q2	|oPass	|    o N.A    |o Fail | [       ]comments
q3	|oPass	|    o N.A    |o Fail | [       ]comments
.
.
.

The radio button are to be mutually exclusive with I manage to get
it through the Indexed="true" attribute of the <logic:iterate> tag
the html rendering result this:

     <input type="radio" name="resultProfile[0].result" value="pass">
     <input type="radio" name="resultProfile[0].result" value="na">
     <input type="radio" name="resultProfile[0].result" value="fail">
     <textarea name="comments" cols="50" rows="5"></textarea>

I have an actionform which houses two string atribute and
a collection data model object (type arraylist) in this data model object
houses the attribute "result" (type string) and other fields...

once the page is submitted, my processResultAction take over.

how do I retrieve the value of the radio button to the actionform object
since
now the field name has been change by the index?

     resultProfile[0].result instead of result?

how do I retrieve this value from my action and what are the things
I need to change in my actionform to be able to get and set this values?

Can anyone help me I have stuck at this for 3 days...
Brain juice is almost dried....

Thanks a million
Best Regards,
Benz







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


Re: struts include

Posted by Firat TIRYAKI <fi...@pleksus.com.tr>.
Try to make it with your actions rather than in jsp, Seperate the business
logic and view, that's what struts is mainly for. Well it depends on what
your actions do but it seems that you want to make two different actions in
a jsp page, connect your actions with an alternate action.

F.

----- Original Message ----- 
From: "Marco Rossi" <me...@katamail.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, October 16, 2003 10:46 AM
Subject: struts include


> Hi,
> I want to create a single jsp page with more "dynamic" include inside.
Something like
> <html>
> ...
> .....
> <jsp:include page="myAction1.do"/>
> ..
> ...
> <jsp:include page="myAction2.do"/>
> </html>
>
> but with jsp tsg it doesn't work.
> How can i do?
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> 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