You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Jenkins <ma...@adamjenkins.net> on 2005/03/01 07:37:42 UTC

Excluding global errors from

Hi Guys,

I'm trying to come to terms with <html:errors/>...it's working ok, I'm using 
the following for prefixes etc:

#error formatting information
errors.header=<font color="red"><center><p>Some errors occured validating the 
form.  Please correct the following errors and try again.</p></center><ul>
errors.footer=</ul></font>
errors.prefix=<li>
errors.suffix=</li>

Which is working great when there are form validation errors, however, to get 
to the page that has the form, I use a global exception redirect as such:

        <exception
            key="mysite.globalerrors.database_config"
            path="/private/install/ConfigDB.jsp"
            scope="request"
            type="com.mysite.utils.DBMissingConfigDataException"/>

And a tostring on org.apache.struts.action.ERROR = 
{mysite.globalerrors.database_config=[mysite.globalerrors.database_config[The 
site is not configured correctly: Required database configuration data was 
missing.]]}

Now this is all well and good, except my <html:errors/> tag now prints out the 
header, and footer with one prefix and suffix in between (and no error 
message) when the page first loads (from the error redirect).  When there is 
form validation errors everything works fine, however it's just that initial 
redirect where everything goes haywire. 

Does anyone know what's going on and/or how to fix?

Cheers
adam



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


Re: AW: Tooltips in Struts

Posted by Joe Germuska <Jo...@Germuska.com>.
>  > > is there a simple way to include tooltips in a web-application with
>  > > Struts?

This has nothing to do with Struts, but I have found the OverLib 
Javascript library to be a pretty good way to provide tooltip type 
effects: http://www.bosrup.com/web/overlib/

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"Narrow minds are weapons made for mass destruction"  -The Ex

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


AW: Tooltips in Struts

Posted by Günther Wieser <gw...@creative-it.com>.
you can use the title attribute of the span tag like this way:
<span class="reportTooltip" title="yout tooltip text">your text or your
elements</span>

and with using CSS you can set up the tooltip behaviour:

.reportTooltip {
  COLOR: gray;
  CURSOR: help;
  TEXT-DECORATION: none;
}

if you use "cursor: help" the cursor in the browser will change to a cursor
plus question mark when the user moves over any element that has a tooltip,
showing the user that a tooltip exists.

kr,
guenther

-----Ursprüngliche Nachricht-----
Von: Peter.Neu@gmx.net [mailto:Peter.Neu@gmx.net] 
Gesendet: Dienstag, 01. März 2005 13:14
An: Struts Users Mailing List
Betreff: Re: Tooltips in Struts

No what I have is an application which is no means intuitive and I need to
make some explanations in order to make the workflow more understandable. I
need the explenations to be part of elements like lists and buttons.

Regards,

Peter

> Yes, sort of.  If you simply want little yellow popups when your mouse 
> hovers over an image, use the "title" attribute for that image.  You 
> can do the same for just about anything else, but it may require being 
> creative with some div tags and such.
> 
> 
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> ----- Original Message -----
> From: <Pe...@gmx.net>
> To: <us...@struts.apache.org>
> Sent: Tuesday, March 01, 2005 3:09 AM
> Subject: Tooltips in Struts
> 
> 
> > Hello,
> >
> > is there a simple way to include tooltips in a web-application with 
> > Struts?
> >
> > Regards,
> >
> > Peter
> >
> > --
> > Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet 
> > bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

--
DSL Komplett von GMX +++ Superg?nstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

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




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


Re: Tooltips in Struts

Posted by Pe...@gmx.net.
No what I have is an application which is no means
intuitive and I need to make some explanations in order
to make the workflow more understandable. I need the explenations
to be part of elements like lists and buttons.

Regards,

Peter

> Yes, sort of.  If you simply want little yellow popups when your mouse 
> hovers over an image, use the "title" attribute for that image.  You can
> do 
> the same for just about anything else, but it may require being creative 
> with some div tags and such.
> 
> 
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> ----- Original Message ----- 
> From: <Pe...@gmx.net>
> To: <us...@struts.apache.org>
> Sent: Tuesday, March 01, 2005 3:09 AM
> Subject: Tooltips in Struts
> 
> 
> > Hello,
> >
> > is there a simple way to include tooltips in a web-application
> > with Struts?
> >
> > Regards,
> >
> > Peter
> >
> > -- 
> > Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
> > GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

-- 
DSL Komplett von GMX +++ Superg�nstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

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


Re: Tooltips in Struts

Posted by James Mitchell <jm...@apache.org>.
Yes, sort of.  If you simply want little yellow popups when your mouse 
hovers over an image, use the "title" attribute for that image.  You can do 
the same for just about anything else, but it may require being creative 
with some div tags and such.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message ----- 
From: <Pe...@gmx.net>
To: <us...@struts.apache.org>
Sent: Tuesday, March 01, 2005 3:09 AM
Subject: Tooltips in Struts


> Hello,
>
> is there a simple way to include tooltips in a web-application
> with Struts?
>
> Regards,
>
> Peter
>
> -- 
> Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
> GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 



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


Tooltips in Struts

Posted by Pe...@gmx.net.
Hello,

is there a simple way to include tooltips in a web-application 
with Struts?

Regards,

Peter

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

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