You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Zeltser <Ma...@morganstanley.com> on 2003/03/17 20:52:12 UTC

modules, is it possible to share tiles template?

Hi,

Is it possible to share tiles template from submodule? I woudlike to set
common look and feel for all sub apps. However, when sub module accesses
common tile, all image, stylesheet, etc, referenceses are changed to
include sub module as part of the URI. How can I solve this?

I tried to use </html:base> tag with no success.

Env:
struts 1.1_b3
tomcat 4.1.8

Thanks,
Mark.

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



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


error bean properties

Posted by Michael Ruppin <mr...@yahoo.com>.
I'm interested in using logic tags to react
differently to different errors.  In an effort to
determine what properties of the error bean I could
use in my logic, I tried (Note this behaved as
expected, without the property attribute):

  <html:messages id="error">
  <bean:write name="error" property="key"/>
  </html:messages>

Which causes a stack trace claiming:

  javax.servlet.jsp.JspException: No getter method for
property key of bean error

I see that ActionError extends ActionMessage, and that
ActionMessage has a getKey() method.  Is the error
bean not an ActionError?  How do I determine what
properties are available for the error bean?

m

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


Re: modules, is it possible to share tiles template?

Posted by Cedric Dumoulin <ce...@apache.org>.
  A possible workaround:

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/onelook_ie.css" >

  Cedric

Mark Zeltser wrote:

>Example:
>
>Global Tile:
>  <link rel="stylesheet" type="text/css" href="<html:rewrite
>page='/css/onelook_ie.css'/>" >
>
>Regualar reference, html output:
><link rel="stylesheet" type="text/css" href="/sample/css/onelook_ie.css" >
>
>Reference from sub module, html output:
> <link rel="stylesheet" type="text/css"
>href="/sample/module/css/onelook_ie.css" >
>
>How to avoid having /module/ as part of URI when referenced from sub module?
>
>Thanks,
>Mark.
>
>Mark Zeltser wrote:
>
>  
>
>>Hi,
>>
>>Is it possible to share tiles template from submodule? I woudlike to set
>>common look and feel for all sub apps. However, when sub module accesses
>>common tile, all image, stylesheet, etc, referenceses are changed to
>>include sub module as part of the URI. How can I solve this?
>>
>>I tried to use </html:base> tag with no success.
>>
>>Env:
>>struts 1.1_b3
>>tomcat 4.1.8
>>
>>Thanks,
>>Mark.
>>
>>--
>>NOTICE: If received in error, please destroy and notify sender.  Sender
>>does not waive confidentiality or privilege, and use is prohibited.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>    
>>
>
>--
>NOTICE: If received in error, please destroy and notify sender.  Sender does
>not waive confidentiality or privilege, and use is prohibited.
>
>
>
>---------------------------------------------------------------------
>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: modules, is it possible to share tiles template?

Posted by Mark Zeltser <Ma...@morganstanley.com>.
Example:

Global Tile:
  <link rel="stylesheet" type="text/css" href="<html:rewrite
page='/css/onelook_ie.css'/>" >

Regualar reference, html output:
<link rel="stylesheet" type="text/css" href="/sample/css/onelook_ie.css" >

Reference from sub module, html output:
 <link rel="stylesheet" type="text/css"
href="/sample/module/css/onelook_ie.css" >

How to avoid having /module/ as part of URI when referenced from sub module?

Thanks,
Mark.

Mark Zeltser wrote:

> Hi,
>
> Is it possible to share tiles template from submodule? I woudlike to set
> common look and feel for all sub apps. However, when sub module accesses
> common tile, all image, stylesheet, etc, referenceses are changed to
> include sub module as part of the URI. How can I solve this?
>
> I tried to use </html:base> tag with no success.
>
> Env:
> struts 1.1_b3
> tomcat 4.1.8
>
> Thanks,
> Mark.
>
> --
> NOTICE: If received in error, please destroy and notify sender.  Sender
> does not waive confidentiality or privilege, and use is prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

--
NOTICE: If received in error, please destroy and notify sender.  Sender does
not waive confidentiality or privilege, and use is prohibited.



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