RE: Newbie Question about tiles definitions. I am lost :(

2003-02-14 Thread Jarrod M. Lugo
I changed the action mapping, but I don't think I have an action servlet.
How do I map *.do to the action servlet?

Thanks,
Jarrod Lugo


-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:56 PM
To: Struts Users Mailing List
Subject: RE: Newbie Question about tiles definitions. I am lost :(


If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) /home.do or /products.do.  You'll
need to switch the action mapping like so:
 action path=/home forward=tiles.home

Or else configure the mapping such that an action that automatically
forwards to success (I think ForwardAction does the trick) is specified.
I haven't tried using the . as the first character in the tile name, but
it may work.  I changed it in the above snippet just in case.

 -Original Message-
 From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:14 PM
 To: Struts-User@Jakarta. Apache. Org
 Subject: Newbie Question about tiles definitions. I am lost :(


 Hello,

 I am trying to get tiles to work with definitions, and I am
 having a little
 trouble.  How do I get either the home page or products page to show up in
 my browser?

 struts-config.xml:

 action path=/home
   forward name=success path=.home /
 /action
 action path=/products
   forward name=success path=.products /
 /action


 tiles-def.xml:

 definition name=.home path=/basicLayout.jsp
   put name=title value=Home /
 /definition

 definition name=.products path=/basicLayout.jsp
   put name=title value=Products /
 /definition


 basicLayout.jsp:

 html
 body
 tiles:getAsString name=title /
 /body
 /html


 TIA,
 Jarrod Lugo


 -
 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]




RE: Newbie Question about tiles definitions. I am lost :(

2003-02-14 Thread Pani, Gourav
in the web.xml file

   
  servlet servlet-name='action'
servlet-class='org.apache.struts.action.ActionServlet'
init-param config='/WEB-INF/struts-config.xml'/
init-param application='ApplicationResources'/
init-param debug='0'/
init-param detail='0'/
init-param validate='true'/
load-on-startup2/load-on-startup
  /servlet

  servlet-mapping servlet-name='action' url-pattern='/*.do'/

-Original Message-
From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 9:06 AM
To: Struts Users Mailing List
Subject: RE: Newbie Question about tiles definitions. I am lost :(


I changed the action mapping, but I don't think I have an action servlet.
How do I map *.do to the action servlet?

Thanks,
Jarrod Lugo


-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:56 PM
To: Struts Users Mailing List
Subject: RE: Newbie Question about tiles definitions. I am lost :(


If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) /home.do or /products.do.  You'll
need to switch the action mapping like so:
 action path=/home forward=tiles.home

Or else configure the mapping such that an action that automatically
forwards to success (I think ForwardAction does the trick) is specified.
I haven't tried using the . as the first character in the tile name, but
it may work.  I changed it in the above snippet just in case.

 -Original Message-
 From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:14 PM
 To: Struts-User@Jakarta. Apache. Org
 Subject: Newbie Question about tiles definitions. I am lost :(


 Hello,

 I am trying to get tiles to work with definitions, and I am
 having a little
 trouble.  How do I get either the home page or products page to show up in
 my browser?

 struts-config.xml:

 action path=/home
   forward name=success path=.home /
 /action
 action path=/products
   forward name=success path=.products /
 /action


 tiles-def.xml:

 definition name=.home path=/basicLayout.jsp
   put name=title value=Home /
 /definition

 definition name=.products path=/basicLayout.jsp
   put name=title value=Products /
 /definition


 basicLayout.jsp:

 html
 body
 tiles:getAsString name=title /
 /body
 /html


 TIA,
 Jarrod Lugo


 -
 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]




Newbie Question about tiles definitions. I am lost :(

2003-02-13 Thread Jarrod M. Lugo
Hello,

I am trying to get tiles to work with definitions, and I am having a little
trouble.  How do I get either the home page or products page to show up in
my browser?

struts-config.xml:

action path=/home
forward name=success path=.home /
/action
action path=/products
forward name=success path=.products /
/action


tiles-def.xml:

definition name=.home path=/basicLayout.jsp
put name=title value=Home /
/definition

definition name=.products path=/basicLayout.jsp
put name=title value=Products /
/definition


basicLayout.jsp:

html
body
tiles:getAsString name=title /
/body
/html


TIA,
Jarrod Lugo


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




RE: Newbie Question about tiles definitions. I am lost :(

2003-02-13 Thread John Espey
If you have *.do mapped to the action servlet, then you will need to request
(relative to the webapp of course) /home.do or /products.do.  You'll
need to switch the action mapping like so:
 action path=/home forward=tiles.home

Or else configure the mapping such that an action that automatically
forwards to success (I think ForwardAction does the trick) is specified.
I haven't tried using the . as the first character in the tile name, but
it may work.  I changed it in the above snippet just in case.

 -Original Message-
 From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:14 PM
 To: Struts-User@Jakarta. Apache. Org
 Subject: Newbie Question about tiles definitions. I am lost :(


 Hello,

 I am trying to get tiles to work with definitions, and I am
 having a little
 trouble.  How do I get either the home page or products page to show up in
 my browser?

 struts-config.xml:

 action path=/home
   forward name=success path=.home /
 /action
 action path=/products
   forward name=success path=.products /
 /action


 tiles-def.xml:

 definition name=.home path=/basicLayout.jsp
   put name=title value=Home /
 /definition

 definition name=.products path=/basicLayout.jsp
   put name=title value=Products /
 /definition


 basicLayout.jsp:

 html
 body
 tiles:getAsString name=title /
 /body
 /html


 TIA,
 Jarrod Lugo


 -
 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]