You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dan Allen <da...@mojavelinux.com> on 2003/03/07 08:47:16 UTC
mail settings
As it is typical to have a *.properties file for any general
settings for a server application, I was curious to know how
developers handle mail settings. An example file I had in mind
would be something like
mailer.transport.protocol=smtp
mailer.transport.host=localhost
mailer.transport.port=25
mailer.from.name=Webmaster
mailer.from.address=admin@example.com
If I were to use a file like this, where in the struts hierarchy
would I put it and how would I read it in to make it available to
my actions()?
Dan
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <da...@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"If you still don't like it, that's ok: that's why I'm boss. I
simply know better than you do."
-- Linus Torvalds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: How to compare two beans using logic tags
Posted by Nicolas De Loof <ni...@cgey.com>.
<bean:define id="prop1" name="bean1" property="someProperty" />
<logic:equals name="bean2" property="anotherProperty" value="<%= prop1
%>">
...
</logic:equals>
Nico.
> Does anyone knows how to compare two beans (or beans properties)
using
> logic:equal or logic:greaterThan tags ?In the docs it is said that
the
> "value" attribute should be a constant value ...
> Thanks
>
> ____________________________________
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
>
> e-mail: r.romano@set-network.com
> Tel.: 010 2712603
> _____________________________________
>
>
>
>
> --------------------------------------------------------------------
-
> 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
How to compare two beans using logic tags
Posted by Renato Romano <r....@set-network.com>.
Does anyone knows how to compare two beans (or beans properties) using
logic:equal or logic:greaterThan tags ?In the docs it is said that the
"value" attribute should be a constant value ...
Thanks
____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: r.romano@set-network.com
Tel.: 010 2712603
_____________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
How do you keep your session junk free?
Posted by julian green <ju...@jacobsrimell.com>.
How do you prevent the session from filling up with junk from previous
screens? Or to put it another way:
I have written some screens that have to store the form bean in the
session scope as each screen is interconnected and uses the same
instance of the form bean. If I change the scope to request a new form
bean is created for each screen (every time a jsp file is rendered). Is
there a way of implementing multiple screens with the same form bean
with a request scope?
Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: mail settings
Posted by James <Ja...@hotmail.com>.
as long as its in your class path you can write a propertyreader factory
class (singleton) and your actions can use that to access your mail
properties..
"Dan Allen" <da...@mojavelinux.com> wrote in message
news:20030307014716.A13158@mojavelinux.com...
> As it is typical to have a *.properties file for any general
> settings for a server application, I was curious to know how
> developers handle mail settings. An example file I had in mind
> would be something like
>
> mailer.transport.protocol=smtp
> mailer.transport.host=localhost
> mailer.transport.port=25
> mailer.from.name=Webmaster
> mailer.from.address=admin@example.com
>
> If I were to use a file like this, where in the struts hierarchy
> would I put it and how would I read it in to make it available to
> my actions()?
>
> Dan
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <da...@mojavelinux.com>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "If you still don't like it, that's ok: that's why I'm boss. I
> simply know better than you do."
> -- Linus Torvalds
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org