Reload my application

2003-04-03 Thread Binaghi Mauro
Hi!

Can I reload (How?) my properties and XML configuration files without restart the 
Application Server?

Thx
Mauro

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



RE: Reload my application

2003-04-03 Thread Binaghi Mauro
But I use JRun 3.0 (sigh) or Resin


-Original Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Sent: giovedì 3 aprile 2003 12.42
To: Struts Users Mailing List
Subject: Re: Reload my application


You can use the manager app included with tomcat.

Binaghi Mauro wrote:

Hi!

Can I reload (How?) my properties and XML configuration files without restart the 
Application Server?

Thx
Mauro

-
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]



A bean:define question

2003-04-01 Thread Binaghi Mauro
Hi
I have the user.name property in my ApplicationResource.properties file.
Can I take its value with the following instrucition in my JSP page?

bean:define id=varName
bean:message key=%= request.getParameter(httpParameter) %.name/
/bean:define

Of course, I call my JSP with this URI /myPage.jsp?httpParameter=user

Thx
Mauro

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



RE: Accessing bean in JSP but w/in java

2003-03-27 Thread Binaghi Mauro
Can you explain me which JSP instructions have you used for, please?
Thanks

Mauro

-Original Message-
From: Scott Seong [mailto:[EMAIL PROTECTED]
Sent: giovedì 13 marzo 2003 3.50
To: Struts Users Mailing List
Subject: Re: Accessing bean in JSP but w/in java


Great!!!  Thanks much :-)

Scott

- Original Message -
From: Dan Tran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 8:28 PM
Subject: Re: Accessing bean in JSP but w/in java


 your actionForm should be already placed in your session or request object
 based on yours strut config file.

 To access the a field in the field your can accessit using

 yourFormName.yourFieldName if you are using regular java bean

 or yourFormName.map.yourFieldName if you are using DynaForm type class

 See my last few post to see how I access it using JSTL which is really
cool
 and clean

 Good Luck

 -Dan

 - Original Message -
 From: Scott Seong [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 6:21 PM
 Subject: Accessing bean in JSP but w/in java


  Hello,
 
  I have a little problem that I need help from experienced users.
 
  I'm trying to access actionForm value in the JSP inside the java code.
Why
  would I use Java inside the JSP? I needed to derive options values based
 on
  the value I received from the ActionForm. For example,
 
  ActionForm contains a property, today which will contain a string
 value --
  say 20030312. From this value, I need to generate 5 additional
business
  days to be provided in the options pick list. In order to generate
  additional values, I need to assign a reference to a variable. So, how
do
 I
  gain access to the actionForm in the JSP?
 
  Thanks,
  Scott
 
 
 
 
 
  -
  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]


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



Problem with casting resources aquired with bean:define/ tag

2003-03-27 Thread Binaghi Mauro
Hi!
I've some problem with an int property value, read from my ApplicationResources 
file...

This is my TAG in JSP page:
bean:define id=readValue type=int
bean:message key=read.this.property.from.file/
/bean:define

but when I try to use the variable readValue, it seems to be a 'NULL' attribute...
So I've just tryied this one TAG:
bean:define id=readValue type=java.lang.Integer
bean:message key=read.this.property.from.file/
/bean:define

but when I use the method readValue.intValue() to convert this value to an int I 
receive the 
same error as before...

Anybody knows why?
Thx
Mauro

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



Question on bean:define

2003-03-25 Thread Binaghi Mauro
I've just upgraded my jdk to 1.4.1_02 version.

Now, where I use (in JSP pages) the instruction:
bean:define id=pathImages property=images.uri/

...I receive the following error:
 javax.servlet.jsp.JspException: Define tag can contain only one of name 
 attribute, value attribute, or body content 
   at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:257) 

Somebidy knows the problem? :-(

Thx
Mauro

-- 
° Mauro L. Binaghi - Matrix S.p.A. 
° Technology - Web Developer  Coordinator 
° e-mail: [EMAIL PROTECTED] 
° Phone: +39 0229047.656 
° FAX: +39 0229047.564 
° C.so Garibaldi, 99 
° 20121 Milano, ITALY 
° http://www.matrix.it/ 
° http://www.seat.it/ 
° http://www.virgilio.it/ 
-- 

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



RE: Accessing resource properties

2003-03-25 Thread Binaghi Mauro
Ok...
why, now, I have the following Exception?

javax.servlet.jsp.JspException: Define tag can contain only one of name
attribute, value attribute, or body content
at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:257)

Thanks
Mauro

-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: venerdì 21 marzo 2003 14.36
To: Struts Users Mailing List
Subject: Re: Accessing resource properties


Something like this?

bean:define id=myValue 
   bean:message key=whatever.from.your.message.resources/
/bean:define

Then use %= myValue % where you need to.


Susan Bradeen

On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:

 Hi
 
 Is there a way to store what is returned by
 
 bean:message key=%=x%/
 
 in a variable in the scope directly using bean:define or something else
 instead of writing the following scriptlet in my JSP ?
 
 MessageResources messages =
 MessageResources.getMessageResources(ApplicationResources);
 messages.getMessage( information );
 
 Thanks,
 Mohan
 
 -
 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]



RE: Question on bean:define

2003-03-25 Thread Binaghi Mauro
Perfect.
But I've tryied these also:

1) bean:define id=pathImages name=ApplicationResources property=images.uri/
2) bean:define id=pathImages property=images.uri value=/images/

...well, thw second one is right. But I want to read the attribute images.uri from 
my configuration file ApplicationResources.properties.
How can I do?


-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: martedì 25 marzo 2003 17.57
To: Struts Users Mailing List
Subject: RE: Question on bean:define


In your case, I think the message isn't quite accurate.  The message should say 
something like ... needs to contain EXACTLY one of   You aren't using any of 
name, value, or body content.  This has nothing to do with your JDK upgrade.

 -Original Message-
 From: Binaghi Mauro [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 25, 2003 6:51 AM
 To: [EMAIL PROTECTED]
 Subject: Question on bean:define
 
 I've just upgraded my jdk to 1.4.1_02 version.
 
 Now, where I use (in JSP pages) the instruction:
 bean:define id=pathImages property=images.uri/
 
 ...I receive the following error:
  javax.servlet.jsp.JspException: Define tag can contain only one of name
  attribute, value attribute, or body content
at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:257)
 
 Somebidy knows the problem? :-(
 
 Thx
 Mauro
 
 --
 ° Mauro L. Binaghi - Matrix S.p.A.
 ° Technology - Web Developer  Coordinator
 ° e-mail: [EMAIL PROTECTED]
 ° Phone: +39 0229047.656
 ° FAX: +39 0229047.564
 ° C.so Garibaldi, 99
 ° 20121 Milano, ITALY
 ° http://www.matrix.it/
 ° http://www.seat.it/
 ° http://www.virgilio.it/
 --
 
 -
 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]



RE: Accessing resource properties

2003-03-24 Thread Binaghi Mauro
Can you explain me better, please? In witch xml-file do I have to insert the 
/bean:define tag?
Thx
Mauro


-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: venerdì 21 marzo 2003 14.36
To: Struts Users Mailing List
Subject: Re: Accessing resource properties


Something like this?

bean:define id=myValue 
   bean:message key=whatever.from.your.message.resources/
/bean:define

Then use %= myValue % where you need to.


Susan Bradeen

On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:

 Hi
 
 Is there a way to store what is returned by
 
 bean:message key=%=x%/
 
 in a variable in the scope directly using bean:define or something else
 instead of writing the following scriptlet in my JSP ?
 
 MessageResources messages =
 MessageResources.getMessageResources(ApplicationResources);
 messages.getMessage( information );
 
 Thanks,
 Mohan
 
 -
 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]