You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aj2r <aj...@fidesol.org> on 2008/03/03 19:38:01 UTC
Re: sitemesh problem
hns wrote:
>
> hi
> i have one default namespace / and another /webmail
> css applied to decorator is worked in / but it can not work at /webmail
> what is problem?
>
Can you put here your decorators.xml?
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15810702.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
ooops
extremely thankful to you
its my mistake
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15826155.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
hns wrote:
>
> ...
> input.button {
> margin: 0;
> font: bolder 12px Arial, Sans-serif;
> border: 1px solid #CCC;
> padding: 2px 3px;
> background: #FFF;
> color: #88ac0b;
> }
> ....
>
Your fail is here. You write input.button, but this is wrong, replace
input.button with button.button and it works. If you see generated source,
the tag is a button tag not an input tag.
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15825641.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
thanks
my refresh.css
-----------------
/********************************************
HTML ELEMENTS
********************************************/
/* Top Elements */
* { margin: 0; padding: 0; }
body {
background: #CCCCCC;
font: 70%/1.5em Verdana, Tahoma, arial, sans-serif;
color: #333;
text-align: center;
height: 100%;
}
/* links */
a, a:visited {
text-decoration: none;
color: #4F82CB;
background: inherit;
}
a:hover {
color: #4EBF37;
background: inherit;
}
/* headers */
h1, h2, h3 {
font-family: Tahoma, Verdana, 'Trebuchet MS', Sans-serif;
font-weight: Bold;
}
h1 {
font-size: 120%;
}
h2 {
font-size: 110%;
text-transform: uppercase;
color: #88ac0b;
}
h3 {
font-size: 110%;
color: #666666;
}
/* images */
img {
border: 2px solid #CCC;
}
img.float-right {
margin: 5px 0px 10px 10px;
}
img.float-left {
margin: 5px 10px 10px 0px;
}
h1, h2, h3, p {
padding: 10px;
margin: 0;
}
ul, ol {
margin: 5px 20px;
padding: 0 20px;
color: #88ac0b;
}
ul span, ol span {
color: #666666;
}
code {
margin: 5px 0;
padding: 10px;
text-align: left;
display: block;
overflow: auto;
font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
/* white-space: pre; */
background: #FAFAFA;
border: 1px solid #f2f2f2;
}
acronym {
cursor: help;
border-bottom: 1px solid #777;
}
blockquote {
margin: 10px;
padding: 0 0 0 28px;
border: 1px solid #f2f2f2;
background: #FAFAFA url(quote.gif) no-repeat 5px 5px;
}
/* form elements */
form {
margin:10px; padding: 0 5px;
border: 1px solid #f2f2f2;
background-color: #FAFAFA;
}
label {
display:block;
font-weight:bold;
margin:5px 0;
}
input {
padding:2px;
border:1px solid #eee;
font: normal 1em Verdana, sans-serif;
color:#777;
}
textarea {
width:400px;
padding:2px;
font: normal 1em Verdana, sans-serif;
border:1px solid #eee;
height:100px;
display:block;
color:#777;
}
input.button {
margin: 0;
font: bolder 12px Arial, Sans-serif;
border: 1px solid #CCC;
padding: 2px 3px;
background: #FFF;
color: #88ac0b;
}
/* search */
form.search {
position: absolute;
top: 35px; right: 25px;
background: transparent;
border: none;
}
form.search input.textbox {
margin: 0; padding: 1px 2px;
width: 120px;
background: #FFF;
color: #333;
}
form.search input.button {
background: #CCC url(headerbg.gif) repeat-x;
color: #333;
border: none;
width: 70px; height: 21px;
}
/********************************************
LAYOUT
********************************************/
#wrap {
width: 820px;
background: #CCC url(content.jpg) repeat-y center top;
margin: 0 auto;
text-align: left;
}
#content-wrap {
clear: both;
width: 750px;
padding: 0;
margin: 0 auto;
}
#header {
width: 820px;
position: relative;
height: 106px;
background: #CCC url(header.jpg) no-repeat center top;
padding: 0;
font-size: 14px;
color: #FFF;
}
#header h1#logo-text {
position: absolute;
margin: 0; padding: 0;
font: bolder 3.3em 'Trebuchet MS', Arial, Sans-serif;
letter-spacing: -2px;
color: #FFF;
text-transform: none;
/* change the values of top and left to adjust the position of the logo*/
top: 28px; left: 50px;
}
#header h2#slogan {
position: absolute;
margin: 0; padding: 0;
font: normal .8em 'Trebuchet MS', Arial, Sans-serif;
text-transform: none;
color: #FFF;
/* change the values of top and left to adjust the position of the slogan*/
top: 74px; left: 58px;
}
#header h2#welcome {
position: absolute;
margin: 0; padding: 0;
font: normal .9em 'Trebuchet MS', Arial, Sans-serif;
text-transform: none;
color: #FFF;
/* change the values of top and left to adjust the position of the slogan*/
top: 84px; right: 58px;
}
#header h2#date1 {
position: absolute;
margin: 0; padding: 0;
font: normal .9em 'Trebuchet MS', Arial, Sans-serif;
text-transform: none;
color: #FFF;
background: url(clock.gif) no-repeat left;
padding-left: 20px; margin: 0 10px 0 5px;
/* change the values of top and left to adjust the position of the slogan*/
top: 29px; right: 55px;
}
/* Menu */
#menu {
clear: both;
margin: 0; padding: 0 40px 0 0;
background: url(menu.jpg) repeat-y center top;
font: bold 12px/26px Verdana, Arial, Tahoma, Sans-serif;
height: 26px;
}
#menu ul {
float: right;
list-style: none;
margin:0; padding: 0;
}
#menu ul li {
display: inline;
}
#menu ul li a {
display: block;
float: left;
padding: 0 8px;
color: #FFF;
text-decoration: none;
}
#menu ul li a:hover {
background-color: #ECECEC;
color: #333;
}
#menu ul li#current a {
background-color: #FFF;
color: #333;
}
/* Main Column */
#main {
float: right;
width: 70%;
padding: 0; margin: 0;
}
#main h1 {
margin-top: 10px;
font: Bold 125% Verdana, 'Trebuchet MS', Sans-serif;
color: #88ac0b;
padding: 5px 0 5px 25px;
border-bottom: 1px solid #EFF0F1;
background: #FFF url(square-green.png) no-repeat 3px 50%;
}
.post-footer {
background-color: #FAFAFA;
padding: 5px; margin: 20px 10px 0 10px;
border: 1px solid #f2f2f2;
font-size: 95%;
}
.post-footer .date {
background: url(clock.gif) no-repeat left center;
padding-left: 20px; margin: 0 10px 0 5px;
}
.post-footer .comments {
background: url(comment.gif) no-repeat left center;
padding-left: 20px; margin: 0 10px 0 5px;
}
.post-footer .readmore {
background: url(page.gif) no-repeat left center;
padding-left: 20px; margin: 0 10px 0 5px;
}
/* Sidebar */
#sidebar {
float: left;
width: 25%;
padding: 0; margin: 12px;
}
#sidebar h1 {
margin-top: 10px;
padding: 5px 0 5px 10px;
font: bold 1.1em Verdana, 'Trebuchet MS', Sans-serif;
color: #555;
background: #EEF0F1 url(headerbg.gif) repeat-x left bottom;
border: 1px solid #EFF0F1;
}
#sidebar .left-box {
border: 1px solid #EFF0F1;
margin: 0 0 5px 0;
}
#sidebar ul.sidemenu {
list-style: none;
text-align: left;
margin: 3px 0 8px 0; padding: 0;
text-decoration: none;
}
#sidebar ul.sidemenu li {
border-bottom: 1px solid #EFF0F1;
background: url(go.gif) no-repeat 5px 5px;
padding: 2px 0 2px 25px;
margin: 0 2px;
}
#sidebar ul.sidemenu a {
font-weight: bolder;
text-decoration: none;
background-image: none;
}
/* Footer */
#footer {
color: #666666;
background: #CCC url(footer.jpg) no-repeat center top;
clear: both;
width: 820px;
height: 55px;
text-align: center;
font-size: 92%;
}
#footer a { text-decoration: none; }
/* alignment classes */
.float-left { float: left; }
.float-right { float: right; }
.align-left { text-align: left; }
.align-right { text-align: right; }
/* display and additional classes */
.clear { clear: both; }
.gray { color: #CCC; }
-------------
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15825526.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
Its seems correct too. I only think that you must have a mistake in your
Refresh.css
hns wrote:
>
> my generated html file excluding class button from sendmessage.jsp ,it
> gives problem as i explained earlier
> ------------------------------------------------
>
>
>
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
>
>
>
> <script language="JavaScript">
> <!--
> var taSelected = 0;
> //-->
> </script>
>
>
> <style type="text/css">
>
> label
> {font-size: x-small;}
> </style>
>
> <title>Send Us A Message</title>
> <link href="/Portfolio/decorators/images/Refresh.css" rel="stylesheet"
> type="text/css">
>
> </head>
>
> <body>
>
>
> <div id="wrap">
> <div id="header">
> <!-- includes/header.jsp -->
>
>
>
>
> <h1 id="logo-text">Portfolio</h1>
> <h2 id="slogan">Management </h2>
> <h2 id="date1">
> 04 Mar 2008
> </h2>
> <h2 id="welcome">
> welcome, hardik
>
> [ /Portfolio/Logout.do Logout ]
> </h2>
>
>
>
>
>
> </div>
> <div id="menu">
> <ul>
> <li> /Portfolio/Welcome.do Home </li>
> <li> /Portfolio/Login_input.do Login </li>
> <li> /Portfolio/webmail/portfol_main.do PortFolio </li>
> <li> /Portfolio/Welcome.do Support </li>
> <li> /Portfolio/Welcome.do About </li>
> </ul>
>
> </div>
> <!-- content-wrap starts here -->
> <div id="content-wrap">
> <div id="sidebar">
>
>
> <html>
> <head>
>
> </head>
> <body>
> <h1>Technical</h1>
> <div class="left-box">
> <p>This is Test</p>
> </div>
>
> <h1>Tree</h1>
> <div class="left-box">
>
>
> </div>
>
>
>
> <div class="left-box">
> <ul class="sidemenu">
> <li> /Portfolio/Welcome.do Home </li>
> <li> # About </li>
> </ul>
> </div>
> </body>
> </html>
> </div>
> <div id="main">
>
>
> <script type="text/javascript"
> src="/Portfolio/struts/xhtml/validation.js"></script>
>
> <form namespace="/" id="SendMessage" name="SendMessage" onsubmit="return
> validateForm_SendMessage();" action="/Portfolio/SendMessage.do"
> method="post"><table class="wwFormTable">
> <tr>
> <td class="tdLabel"><label for="SendMessage_msgReplyTo"
> class="label">Your Email*:</label></td>
> <td
>><input type="text" name="msgReplyTo" value=""
id="SendMessage_msgReplyTo"/></td>
> </tr>
>
> <tr>
> <td class="tdLabel"><label for="SendMessage_subject"
> class="label">Subject:</label></td>
> <td
>><input type="text" name="subject" value="" id="SendMessage_subject"/></td>
> </tr>
>
> <tr>
> <td class="tdLabel"><label for="SendMessage_msgContents"
> class="label">Message*:</label></td>
> <td
>><textarea name="msgContents" cols="40" rows="15"
id="SendMessage_msgContents" onfocus="if (taSelected == 0){taSelected = 1;
this.select();}">Type your message here.</textarea></td>
> </tr>
>
> <tr>
> <td colspan="2"><div align="right"><button type="submit"
> id="SendMessage_0" value="Submit" class="button">Submit</button>
> </div></td>
> </tr>
>
> <tr>
> <td colspan="2"><div align="right"><button type="reset"
> value="Reset">Reset</button>
> </div></td>
> </tr>
>
> </table></form>
>
>
>
> <script type="text/javascript">
> function validateForm_SendMessage() {
> form = document.getElementById("SendMessage");
> clearErrorMessages(form);
> clearErrorLabels(form);
>
> var errors = false;
>
> return !errors;
> }
> </script>
>
>
>
> </div>
> <!-- content-wrap ends here -->
> </div>
> <!--footer starts here-->
> <div id="footer">
> <!-- includes/pagefooter.jsp -->
>
> <html>
> <body>
> <center>All Content © Copyright 2008 </center>
> </body>
> </html>
>
>
> </div>
> <!-- wrap ends here -->
> </div>
>
>
> </body>
> </html>
> -------------------------------------------------
>
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15825387.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
my generated html file excluding class button from sendmessage.jsp ,it gives
problem as i explained earlier
------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script language="JavaScript">
<!--
var taSelected = 0;
//-->
</script>
<style type="text/css">
label
{font-size: x-small;}
</style>
<title>Send Us A Message</title>
<link href="/Portfolio/decorators/images/Refresh.css" rel="stylesheet"
type="text/css">
</head>
<body>
<div id="wrap">
<div id="header">
<!-- includes/header.jsp -->
<h1 id="logo-text">Portfolio</h1>
<h2 id="slogan">Management </h2>
<h2 id="date1">
04 Mar 2008
</h2>
<h2 id="welcome">
welcome, hardik
[ /Portfolio/Logout.do Logout ]
</h2>
</div>
<div id="menu">
<ul>
<li> /Portfolio/Welcome.do Home </li>
<li> /Portfolio/Login_input.do Login </li>
<li> /Portfolio/webmail/portfol_main.do PortFolio </li>
<li> /Portfolio/Welcome.do Support </li>
<li> /Portfolio/Welcome.do About </li>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="sidebar">
<html>
<head>
</head>
<body>
<h1>Technical</h1>
<div class="left-box">
<p>This is Test</p>
</div>
<h1>Tree</h1>
<div class="left-box">
</div>
<div class="left-box">
<ul class="sidemenu">
<li> /Portfolio/Welcome.do Home </li>
<li> # About </li>
</ul>
</div>
</body>
</html>
</div>
<div id="main">
<script type="text/javascript"
src="/Portfolio/struts/xhtml/validation.js"></script>
<form namespace="/" id="SendMessage" name="SendMessage" onsubmit="return
validateForm_SendMessage();" action="/Portfolio/SendMessage.do"
method="post"><table class="wwFormTable">
<tr>
<td class="tdLabel"><label for="SendMessage_msgReplyTo"
class="label">Your Email*:</label></td>
<td
><input type="text" name="msgReplyTo" value=""
id="SendMessage_msgReplyTo"/></td>
</tr>
<tr>
<td class="tdLabel"><label for="SendMessage_subject"
class="label">Subject:</label></td>
<td
><input type="text" name="subject" value="" id="SendMessage_subject"/></td>
</tr>
<tr>
<td class="tdLabel"><label for="SendMessage_msgContents"
class="label">Message*:</label></td>
<td
><textarea name="msgContents" cols="40" rows="15"
id="SendMessage_msgContents" onfocus="if (taSelected == 0){taSelected = 1;
this.select();}">Type your message here.</textarea></td>
</tr>
<tr>
<td colspan="2"><div align="right"><button type="submit"
id="SendMessage_0" value="Submit" class="button">Submit</button>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="right"><button type="reset"
value="Reset">Reset</button>
</div></td>
</tr>
</table></form>
<script type="text/javascript">
function validateForm_SendMessage() {
form = document.getElementById("SendMessage");
clearErrorMessages(form);
clearErrorLabels(form);
var errors = false;
return !errors;
}
</script>
</div>
<!-- content-wrap ends here -->
</div>
<!--footer starts here-->
<div id="footer">
<!-- includes/pagefooter.jsp -->
<html>
<body>
<center>All Content © Copyright 2008 </center>
</body>
</html>
</div>
<!-- wrap ends here -->
</div>
</body>
</html>
-------------------------------------------------
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15824819.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
Can you put here generated source (html received by browser) of
sendMessage.jsp?
In other hand, in css file you should specify class names with an initial
dot, ie: .button not button
hns wrote:
>
> now this is actual flow
> index.jsp redirected to welcome.jsp(welcome.do)
>
> my welcome.jsp shows perfectly-----------
> welcome.jsp
> -----------------
> <%@ page contentType="text/html; charset=UTF-8" %>
> <%@ taglib uri="/struts-tags" prefix="s" %>
> <%@ taglib uri="http://www.opensymphony.com/sitemesh/page"
> prefix="pages"%>
> <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
> prefix="decorator" %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
> <s:head/>
> <title>welcome</title>
>
> </head>
>
> <body>
> <ul>
>
> <s:url action= ">
> <h1> <s:text name="Send Mail"/></h1>
> <s:url action= ">
> <h1> <s:text name="jasper"/></h1>
> </ul>
>
>
>
> </body>
> </html>
>
>
> ----------------
>
> now when i click on sendmail
>
> it goes to which is in struts.xml
>
> <package name="webmail" namespace="/webmail" extends="framework-default">
> <action name="SendMessage_*" class="webmail.SendMessageAction"
> method="{1}">
> <interceptor-ref name="user"></interceptor-ref>
> <result name="input">/SendMail/SendMessage-input.jsp</result>
> <result>/SendMail/SendMessage-success.jsp</result>
>
> </action>
> </package>
> --------------------------------------------
>
> after invoking action it goes to as per you see /sendMessage-input.jsp
>
> sendMessage.jsp
> -------------------
> <%@ taglib uri="/struts-tags" prefix="s"
> %><html>
> <head>
> <title>Send Us A Message</title>
> <script language="JavaScript">
> <!--
> var taSelected = 0;
> //-->
> </script>
>
>
> <style type="text/css">
> button {
> margin: 0;
> font: bolder 12px Arial, Sans-serif;
> border: 1px solid #CCC;
> padding: 2px 3px;
> background: #FFF;
> color: #88ac0b;
>
> }
> label
> {font-size: x-small;}
> </style>
> </head>
> <body>
>
> <s:form action="SendMessage" namespace="/" validate="true" >
> <s:textfield name="msgReplyTo" label="Your Email" required="true" />
> <s:textfield name="subject" label="Subject" />
> <s:textarea name="msgContents" rows="15" cols="40"
> required="true" label="Message" value="Type your message here."
> onfocus="if (taSelected == 0){taSelected = 1; this.select();}" />
> <s:submit type="button" cssClass="button"/>
> <s:reset type="button" />
> </s:form>
> </body>
> </html>
> ----------------------
> now i tell actual problem ,when sendmessage_input.jsp load it can not
> load button style remains in
> Refresh.css ,that's why i have to write here css class button,whether my
> sidebar,header,footer shows correctly
>
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15824552.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
now this is actual flow
index.jsp redirected to welcome.jsp(welcome.do)
my welcome.jsp shows perfectly-----------
welcome.jsp
-----------------
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="pages"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
prefix="decorator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<s:head/>
<title>welcome</title>
</head>
<body>
<ul>
<s:url action= ">
<h1> <s:text name="Send Mail"/></h1>
<s:url action= ">
<h1> <s:text name="jasper"/></h1>
</ul>
</body>
</html>
----------------
now when i click on sendmail
it goes to which is in struts.xml
<package name="webmail" namespace="/webmail" extends="framework-default">
<action name="SendMessage_*" class="webmail.SendMessageAction"
method="{1}">
<interceptor-ref name="user"></interceptor-ref>
<result name="input">/SendMail/SendMessage-input.jsp</result>
<result>/SendMail/SendMessage-success.jsp</result>
</action>
</package>
--------------------------------------------
after invoking action it goes to as per you see /sendMessage-input.jsp
sendMessage.jsp
-------------------
<%@ taglib uri="/struts-tags" prefix="s"
%><html>
<head>
<title>Send Us A Message</title>
<script language="JavaScript">
<!--
var taSelected = 0;
//-->
</script>
<style type="text/css">
button {
margin: 0;
font: bolder 12px Arial, Sans-serif;
border: 1px solid #CCC;
padding: 2px 3px;
background: #FFF;
color: #88ac0b;
}
label
{font-size: x-small;}
</style>
</head>
<body>
<s:form action="SendMessage" namespace="/" validate="true" >
<s:textfield name="msgReplyTo" label="Your Email" required="true" />
<s:textfield name="subject" label="Subject" />
<s:textarea name="msgContents" rows="15" cols="40"
required="true" label="Message" value="Type your message here."
onfocus="if (taSelected == 0){taSelected = 1; this.select();}" />
<s:submit type="button" cssClass="button"/>
<s:reset type="button" />
</s:form>
</body>
</html>
----------------------
now i tell actual problem ,when sendmessage_input.jsp load it can not load
button style remains in
Refresh.css ,that's why i have to write here css class button,whether my
sidebar,header,footer shows correctly
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15824345.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
It seems correct too :-/
Can tou put here (one more time :-P) the generated html of a page of the
/webmail namespace?
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15824174.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
thnaks for showing interest
main.jsp
--------
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
prefix="decorator" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="pages"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<decorator:head />
<title><decorator:title default="Portfolio Management" /></title>
<link href="<%= request.getContextPath()
%>/decorators/images/Refresh.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrap">
<div id="header">
<jsp:include page="header.jsp"></jsp:include>
</div>
<div id="menu">
<ul>
<li> <s:url action= ">Home </li>
<li> <s:url action= ">Login </li>
<li> <s:url action= ">PortFolio </li>
<li> <s:url action= ">Support </li>
<li> <s:url action= ">About </li>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="sidebar">
<jsp:include page="sidebar.jsp"></jsp:include>
</div>
<div id="main">
<decorator:body />
</div>
<!-- content-wrap ends here -->
</div>
<!--footer starts here-->
<div id="footer">
<jsp:include page="pagefooter.jsp"></jsp:include>
</div>
<!-- wrap ends here -->
</div>
</body>
</html>
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15824014.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
It seems correct. Can you put here main.jsp too?
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15823935.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
<decorators defaultdir="/decorators">
<excludes>
<pattern>/styles/*</pattern>
<pattern>/scripts/*</pattern>
<pattern>/images/*</pattern>
<pattern>/index.html</pattern>
<pattern>/Error.jsp</pattern>
<pattern>/CSS/*</pattern>
<pattern>/struts/* </pattern>
<pattern>/dojo/*</pattern>
<pattern>/struts/ajax/*</pattern>
<pattern>/js/yui/*</pattern>
</excludes>
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
<decorator name="header" page="header.jsp"/>
<decorator name="footer" page="pagefooter.jsp"/>
<decorator name="panel" page="panel.jsp" />
</decorators>
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15823223.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by aj2r <aj...@fidesol.org>.
hns wrote:
>
>
>
> aj2r wrote:
>>
>>
>> Can you put here your decorators.xml?
>>
> i have putted decoraters.xml at web-inf folder
>
Can you put HERE your decorators.xml?
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15823087.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: sitemesh problem
Posted by hns <ha...@yahoo.com>.
aj2r wrote:
>
>
> Can you put here your decorators.xml?
>
i have putted decoraters.xml at web-inf folder
--
View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15820667.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org