On Tue, 9 Jul 2002, rainer jünger wrote:

> Date: Tue, 9 Jul 2002 19:56:53 +0200
> From: rainer jünger <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: ActionServlet question
>
> Hi,
>
> I have a general problem in understanding a Action servlet.
> Is the servelt always involved when I access the belonging URL?
>
> e.g.:
>  <action      path="/trinkwasserform"
>      type="trinkwasser.TrinkwasserInputAction"
>      name="trinkwasserInputForm"
>      scope="session"
>      input="/application/datensteckbriefe/forms/form_trinkwasser.jsp">
>   <forward name="success" path="/app/trinkwasserform?todo=speichern"/>
>   <forward name="preview"         
>path="/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp"/>
>  </action>
>
> I access the *something*/trinkwasserform action. In that action I am
> logging a text to the serverlog. I am realy supprised that the logged
> text showes up only once within the log! Isn't the Action Class always
> processed when I call the URL (e.g. /trinkwasserform ?)
>

It depends on how you set up your <servlet-mapping>.

The usual practice for Struts is to use a URL pattern like "*.do", which
means that any URL ending with ".do" will be sent to the controller
servlet.  Other URLs (like one ending in "foo.jsp") will bypass the
controller, and go to whatever servlet is mapped for that URL instead.

> thanks, Rainer
>

Craig



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

Reply via email to