You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andy Richards <an...@esolution.co.uk> on 2003/06/25 15:13:42 UTC
html links
Can anyone shed some light on this for me. Being a newbie i tried to perform a
search on the list archive however it just says text searches are not
allowed.
Anyway my question is this, at present a multimedia designer will hand me a
HTML site requiring the addition of functionality. All links work etc. If i
want to use this interface around struts, i understand that i need to map the
requested path to an action. However what do i do with simple links such as
"home" or "go back" which just link to simple html pages? do i have to map
these through the controller servlet if so do i do this with some sort of
generic mapping?
thanks
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: html links
Posted by Andy Richards <an...@esolution.co.uk>.
Anyone else have any opinions on the best method to do this.....?
cheers
Andy
> >
> > But do i have to do this for every link in the config file, or can i
> > configure
> > the struts config file so as that any links not mapped go through a
> > particular action.
> > If i have to map all links in the designers menu system, i will
> > be here till
> > next month !! : )
> >
>
> I'm not sure whether you can use an url-pattern here too. Sorry
>
> Filip
>
> > regards
> >
> > Andy
> >
> > > > Can anyone shed some light on this for me. Being a newbie i tried
> > > > to perform a
> > > > search on the list archive however it just says text searches are
not
> > > > allowed.
> > > >
> > > > Anyway my question is this, at present a multimedia designer will
> > > > hand me a
> > > > HTML site requiring the addition of functionality. All links work
> > > > etc. If i
> > > > want to use this interface around struts, i understand that i
> > > > need to map the
> > > > requested path to an action. However what do i do with simple
> > > > links such as
> > > > "home" or "go back" which just link to simple html pages? do i
> > > > have to map
> > > > these through the controller servlet if so do i do this with some
sort
> > of
> > > > generic mapping?
> > >
> > > at first: yes you should use struts mappings for those simple pages
too
> > > (IMHO).
> > > To do this u could use org.apache.struts.actions.ForwardAction
> > >
> > > Greetz, Filip
> > > >
> > > > thanks
> > > >
> > > > Andy
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> >
>
>
> ---------------------------------------------------------------------
> 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
RE: html links
Posted by Filip Polsakiewicz <Fi...@innoface.de>.
> -----Original Message-----
> From: Andy Richards [mailto:andy@esolution.co.uk]
> Sent: Wednesday, June 25, 2003 3:53 PM
> To: Struts Users Mailing List
> Subject: Re: html links
>
>
> Thanks filip
>
> But do i have to do this for every link in the config file, or can i
> configure
> the struts config file so as that any links not mapped go through a
> particular action.
> If i have to map all links in the designers menu system, i will
> be here till
> next month !! : )
>
I'm not sure whether you can use an url-pattern here too. Sorry
Filip
> regards
>
> Andy
>
> > > Can anyone shed some light on this for me. Being a newbie i tried
> > > to perform a
> > > search on the list archive however it just says text searches are not
> > > allowed.
> > >
> > > Anyway my question is this, at present a multimedia designer will
> > > hand me a
> > > HTML site requiring the addition of functionality. All links work
> > > etc. If i
> > > want to use this interface around struts, i understand that i
> > > need to map the
> > > requested path to an action. However what do i do with simple
> > > links such as
> > > "home" or "go back" which just link to simple html pages? do i
> > > have to map
> > > these through the controller servlet if so do i do this with some sort
> of
> > > generic mapping?
> >
> > at first: yes you should use struts mappings for those simple pages too
> > (IMHO).
> > To do this u could use org.apache.struts.actions.ForwardAction
> >
> > Greetz, Filip
> > >
> > > thanks
> > >
> > > Andy
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: html links
Posted by Andy Richards <an...@esolution.co.uk>.
Thanks filip
But do i have to do this for every link in the config file, or can i
configure
the struts config file so as that any links not mapped go through a
particular action.
If i have to map all links in the designers menu system, i will be here till
next month !! : )
regards
Andy
> > Can anyone shed some light on this for me. Being a newbie i tried
> > to perform a
> > search on the list archive however it just says text searches are not
> > allowed.
> >
> > Anyway my question is this, at present a multimedia designer will
> > hand me a
> > HTML site requiring the addition of functionality. All links work
> > etc. If i
> > want to use this interface around struts, i understand that i
> > need to map the
> > requested path to an action. However what do i do with simple
> > links such as
> > "home" or "go back" which just link to simple html pages? do i
> > have to map
> > these through the controller servlet if so do i do this with some sort
of
> > generic mapping?
>
> at first: yes you should use struts mappings for those simple pages too
> (IMHO).
> To do this u could use org.apache.struts.actions.ForwardAction
>
> Greetz, Filip
> >
> > thanks
> >
> > Andy
> >
> > ---------------------------------------------------------------------
> > 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
RE: html links
Posted by Filip Polsakiewicz <Fi...@innoface.de>.
> -----Original Message-----
> From: Andy Richards [mailto:andy@esolution.co.uk]
> Sent: Wednesday, June 25, 2003 3:14 PM
> To: struts-user@jakarta.apache.org
> Subject: html links
>
>
> Can anyone shed some light on this for me. Being a newbie i tried
> to perform a
> search on the list archive however it just says text searches are not
> allowed.
>
> Anyway my question is this, at present a multimedia designer will
> hand me a
> HTML site requiring the addition of functionality. All links work
> etc. If i
> want to use this interface around struts, i understand that i
> need to map the
> requested path to an action. However what do i do with simple
> links such as
> "home" or "go back" which just link to simple html pages? do i
> have to map
> these through the controller servlet if so do i do this with some sort of
> generic mapping?
at first: yes you should use struts mappings for those simple pages too
(IMHO).
To do this u could use org.apache.struts.actions.ForwardAction
Greetz, Filip
>
> thanks
>
> Andy
>
> ---------------------------------------------------------------------
> 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