RE: Quartz Scheduler with Struts

2005-05-08 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
i added quartz to my struts app lately, used a servlet context listener to
start quartz. 

kr,
guenther
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 08, 2005 1:47 AM
To: user@struts.apache.org
Subject: Quartz Scheduler with Struts

I need to set up a bunch of jobs that monitor various pieces of my struts
app.  I decided to use Quartz but am wondering if anyone has experience with
setting up quartz to run in struts.  I'm guessing this would be achieved
with by either writing a plugin class to be started from struts-config.xml,
or by setting up a Quartz servlet.  Can anyone get me started in the right
direction and lemme know of things to watch out for?

thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Validation Problem with depends=URL

2005-05-04 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi,

as franck is in my team, i can answer this question on behalf of franck.

i think there went something wrong with the formatting of his email, of
course he types in http://www.myurl.com; (yes, without the quotes), but
whatever we enter, we get a validation error that this is not a valid url.
as far as i've seen it, it doesn't matter which scheme we use, e.g. an ftp
url also fails. tested on two different machines, which are almost 1000km
away from each other, so no chance that the bad spirit of one machine
reaches the other one ;-)

kr,
guenther


--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 04, 2005 4:35 PM
To: Struts Users Mailing List
Subject: Re: Validation Problem with depends=URL

Franck Wiegner wrote:

invalid url I also get an error-msg, still okay. but when I enter a 
valid url (example:  http://www.myurl.com/ http://www.myurl.com) I 
also get the message that this is an invalid url, which is not okay, 
cause as long as I am not able to enter valid urls my form bean will never
parse.
  

What happens if you just enter http://www.myurl.com; (without the quotes,
of course)?

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with checkbox values and map backed properties

2005-05-03 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi,

thanks, already solved, problem is that the map is (of course) fille up
dynamically, and putting the code to reload it into the reset function is
not possible, as the list depends on one of the other properties of the
form.

now i just say if there's no property in the map, it's unset.

kr,
guenther


--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-Original Message-
From: Cliff Lam [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 03, 2005 4:20 AM
To: Struts Users Mailing List
Subject: Re: problem with checkbox values and map backed properties

You can try to set a unlicked value in the reset function in the form.

When the click-box is clicked the unlicked value will be covered.

Hope this is useful for you. =)

Cliff

- Original Message -
From: Günther Wieser [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Sent: Saturday, April 30, 2005 1:28 AM
Subject: problem with checkbox values and map backed properties


 hi,

 i have the following problem with map backed properties:

 i created a form bean with a map called inCampaignMap, and the getter and
 setters being boolean getInCampaign(String key) and
setInCampaign(String
 key, boolean value). internally, of course, the map value entries are of
 type Boolean.

 in my JSP i have the following code:
 html:checkbox property=inCampaign(${campaign.id}) /
 where ${campaign.id} indicates the key for the map.

 this works fine if the checkbox is checked. in this case i can see that
the
 setInCampaign() method is being called and that i get true for the
value.

 if the checkbox is unchecked, the value is NOT set.

 strange enough, i also can see from the html code that's generate that
 value=on is always set, no matter if the checkbox is checked or not.

 any ideas?

 thanks in advance, kr,
 guenther




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] how to test user role in jsp

2005-05-03 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi,

sorry for posting something that's very likely not really related to struts
(but maybe it is, who knows), but coudn't find anything on the net.

i would like to display a link depending if a user is in a certain role. is
there a test i could use in c:if test=${...} or anything else i could use
as a tag to do this? do i need to implement this on my own?

kr,
guenther

--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com




RE: [OT] how to test user role in jsp

2005-05-03 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
it's amazing, how could i've missed that functionality of the logic: present
tag??!?!

thanks, guys, sometime the obvious is too near to see it!

kr,
guenther


--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 03, 2005 6:00 PM
To: Günther Wieser; 'Struts Users Mailing List'
Subject: Re: [OT] how to test user role in jsp

You can use logic:present (and
logic:notPresent) to conditionally evaluate the user's role:
http://struts.apache.org/userGuide/struts-logic.html#present

Joe


At 4:44 PM +0200 5/3/05, Günther Wieser wrote:
hi,

sorry for posting something that's very likely not really related to 
struts (but maybe it is, who knows), but coudn't find anything on the net.

i would like to display a link depending if a user is in a certain 
role. is there a test i could use in c:if test=${...} or anything 
else i could use as a tag to do this? do i need to implement this on my
own?

kr,
guenther

--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
Narrow minds are weapons made for mass destruction  -The Ex

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with PHP

2005-05-02 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
you can get parameters and headers (as they are part of http and included in
the http request), but no chance to get attributes, they only exist in the
virtual machine.


-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 02, 2005 6:30 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Struts with PHP

I presume one can get at the parameters, attributes and headers of the
request object in a PHP script, no?  As long as you can do that, then you
should be able to replace JSP pages with PHP pages, sans the taglibs of
course, which, as some people seem to forget, are an OPTIONAL element of
Struts :) because you can get at anything Struts sends to a JSP.

Now, as for the *why* you'd want to use PHP instead of JSP, I think that's a
fair question :)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, May 2, 2005 12:22 pm, Leon Rosenberg said:

 Well, I'm not saying this is possible either... But after all, people 
 manage to do Struts + XML/XSLT without JSP. So why not with PHP ?


 Yes, by generating XML out of the action or jsp, and adding an XSLT 
 transformer. How do you want to share any variables with a php script?

 And, after all, why should you want it at all?

 Leon.

 P.S. I think we should forget this thread asap :-)



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with checkbox values and map backed properties

2005-04-29 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
hi,

i have the following problem with map backed properties:

i created a form bean with a map called inCampaignMap, and the getter and
setters being boolean getInCampaign(String key) and setInCampaign(String
key, boolean value). internally, of course, the map value entries are of
type Boolean.

in my JSP i have the following code:
html:checkbox property=inCampaign(${campaign.id}) /
where ${campaign.id} indicates the key for the map.

this works fine if the checkbox is checked. in this case i can see that the
setInCampaign() method is being called and that i get true for the value.

if the checkbox is unchecked, the value is NOT set.

strange enough, i also can see from the html code that's generate that
value=on is always set, no matter if the checkbox is checked or not.

any ideas?

thanks in advance, kr,
guenther



RE: gui html

2005-04-26 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
looks very interesting, has anyone experience in using it? is it stable?

would save a lo of time for if so...

kr,
guenther
-Original Message-
From: Lucas Bern [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 5:46 PM
To: Struts Users Mailing List
Subject: gui html


has anybody seen http://struts.application-servers.com

 

waiting for coments...

Lucas


-
 250MB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo  Abrí tu cuenta aquí



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]