Is the URL for the page the same in both cases? One way I can see this happening is that you enter the page with a URL like http://myhost/myapp/foo/bar.jsp but when you have gone through validation you have a URL like http://myhost/myapp/someaction.do
If that is the case then look at usibg <html:rewrite> to get the correct path the the CSS. Paul > -----Original Message----- > From: VENKATESH GANGAL [mailto:[EMAIL PROTECTED] > Sent: 28 November 2003 09:07 > To: [EMAIL PROTECTED] > Subject: Problem with CSS after validation > > > Hi , > > I am working on a web application based on struts which uses > CSS to render various JSP pages. > > I have a typical problem when I try to validate a form and it > will be directed to the same JSP along with the errors.but > the view(JSP) after the validation is not rendered by the CSS links. > > Here is the code where I am trying to define the CSS links. > > <html > > <html:html locale="true"> > <[EMAIL PROTECTED] import="java.util.*,java.lang.*" %> > > <HEAD> > <TITLE><bean:message key="something.title"/></TITLE> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; > charset=iso-8859-1"> > > <link rel="stylesheet" href="../css/xxx.css"> > <link rel="stylesheet" href="../css/yyy.css"> > <link rel="stylesheet" href="../css/zzz.css"> > </HEAD> > <BODY leftmargin="0" topmargin="0" marginwidth="0" > marginheight="0" onLoad=""> > <html:errors/> > <html:form action="/logon"> > </html:form> > </body> > </html:html> > <html> > > > Can anyone let me know how to refer to the stylesheets after > the validation is done as it is not picking up the stylesheets. > > Thanks in advance... > > Cheers... > Venkatesh > > > > > > > > ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]