struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hns <>
Subject Re: sitemesh problem
Date Tue, 04 Mar 2008 10:24:47 GMT

now this is actual flow
index.jsp  redirected to welcome.jsp(

my welcome.jsp shows perfectly-----------
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri=""  prefix="pages"%>
 <%@ taglib uri=""
prefix="decorator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="" xml:lang="en" lang="en">

       <s:url action= ">
      <h1> <s:text name="Send Mail"/></h1> 
      <s:url action= ">
      <h1> <s:text name="jasper"/></h1>       



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"
            <interceptor-ref name="user"></interceptor-ref>
            <result name="input">/SendMail/SendMessage-input.jsp</result>

after invoking action it goes to as per you see /sendMessage-input.jsp 

<%@ taglib uri="/struts-tags" prefix="s"
<title>Send Us A Message</title>
<script language="JavaScript">
var taSelected = 0;

<style type="text/css">
button { 
	margin: 0; 
	font: bolder 12px Arial, Sans-serif; 
	border: 1px solid #CCC; 
	padding: 2px 3px; 
	background: #FFF;
	color: #88ac0b;
{font-size: x-small;}

<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;;}" />
<s:submit type="button"  cssClass="button"/>
<s:reset type="button" />
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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message