You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Quaini Michele <mi...@fastweb.it> on 2000/07/13 10:21:48 UTC

action servlet

Hello

I would like my action servlet to "serve" mutiple actions of the same page

I think I should use a pattern called command

Could any kind soul send me an example on how to implement the command
pattern
on an Struts - Action servlet ?

many thanks

michele

Re: JSP tags written in JSP

Posted by Chris Heinemann <he...@horacemann.com>.
I +1 this idea.

Jamie Mcrindle wrote:

> hi all,
>
> i'm not too sure whether this has been discussed before but i'd really like
> to see a mechanism to write JSP tags in JSP. this hasn't been mentioned in
> any of the standard tag libraries that i've seen (JRUN, JSR-<something>,
> Jakarta etc.) but i think it would allow less sophisticated users to create
> their own tags far more easily.
>
> are there any plans to do this?
> can the tag libraries spec support jsp's written in jsp?
>
> regards,
> jamie mccrindle.


JSP tags written in JSP

Posted by Jamie Mcrindle <ja...@corp.zawya.com>.
hi all,

i'm not too sure whether this has been discussed before but i'd really like
to see a mechanism to write JSP tags in JSP. this hasn't been mentioned in
any of the standard tag libraries that i've seen (JRUN, JSR-<something>,
Jakarta etc.) but i think it would allow less sophisticated users to create
their own tags far more easily.

are there any plans to do this?
can the tag libraries spec support jsp's written in jsp?

regards,
jamie mccrindle.



Re: action servlet

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Quaini Michele wrote:

> Hello
>
> I would like my action servlet to "serve" mutiple actions of the same page
>
> I think I should use a pattern called command
>
> Could any kind soul send me an example on how to implement the command
> pattern
> on an Struts - Action servlet ?
>

(You might want to discuss this on the STRUTS-USER list because it is specific
to Struts).

I'm not quite clear on what kind of behavior you are asking for.

If you mean "I want to have more than one form on my page", that is easy to
do.  Simply use more than one <struts:form> tag (just like you would use more
than one <form> tag in straight HTML), each with its own action URI.    If you
use extension mapping as the Struts example application does (everything that
ends with ".do" goes to the controller servlet), then you get what you asked
for.

If you mean "I want more than one action to happen on a single form submit", I
would suggest that you make the initial action that is requested responsible
for calling all of the subordinate actions that need to occur.  In such a
case, the subordinate "actions" need not be implementations of the Action
interface -- they can just be beans that have public methods to do the things
you need.

>
> many thanks
>
> michele

Craig