RE: [OS-webwork] Help needed with parametric action

2003-02-07 Thread Jason Carreira
Did you ever get this resolved?

 -Original Message-
 From: Sebastiano Pilla [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 06, 2003 11:04 AM
 To: [EMAIL PROTECTED]
 Subject: [OS-webwork] Help needed with parametric action
 
 
 Greetings,
 
 I'm having some troubles when trying to pass parameters to one of my 
 actions and I'm stumped: I believe I must be missing something 
 embarassingly simple, but it appears I'm too dumb to figure 
 it out for 
 myself...
 
 The problem: I have a class that extends ActionSupport and 
 implements both 
 ApplicationAware and ParameterAware, but the setParameters 
 method always 
 receives an empty map...
 
 I call this action in a JSP page in this way:
 
 %@ taglib uri=WebWorkTags prefix=webwork % 
 webwork:action name='content.BlogPostAction'
webwork:param name='lowerBoundDay' value=3 /
webwork:param name='upperBoundDay' value=-1 / 
 /webwork:action
 
 I've placed some logging calls in doExecute() and 
 setParameters(), and 
 they're both called as I expect:
 
 [2003-02-06 16:51:44,822] DEBUG 
 com.datafaber.action.content.BlogPostAction  - setParameters 
 - pParameters = {} [2003-02-06 16:51:44,952] DEBUG 
 com.datafaber.action.content.BlogPostAction 
 content.BlogPostAction - Action executing..
 [2003-02-06 16:51:44,962] DEBUG 
 com.datafaber.action.content.BlogPostAction 
 content.BlogPostAction - doExecute - mParameters = {}
 
 However, the Map object passed to setParameters is empty!
 
 What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am I 
 totally off-base here and should be doing this in an entirely 
 different way?
 
 Thanks for any help.
 
 Sebastiano Pilla
 E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
 phone +39.0422.3107  fax   +39.0422.310888
 http://www.e-tree.com  http://www.webanana.com
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 
 2 See! http://www.vasoftware.com 
 ___
 Opensymphony-webwork mailing list 
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



RE: [OS-webwork] Help needed with parametric action

2003-02-07 Thread Sebastiano Pilla
At 15.09 07/02/2003, Jason Carreira wrote:

Did you ever get this resolved?


No, unfortunately I haven't... Problem is, I can't seem to be able to 
pinpoint the exact problem, not even after a good night's sleep. I'm 
reasonably sure it's my fault, but I haven't got a clue.

 However, the Map object passed to setParameters is empty!


Sebastiano Pilla
E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107  fax   +39.0422.310888
http://www.e-tree.com  http://www.webanana.com



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



RE: [OS-webwork] Help needed with parametric action

2003-02-07 Thread Jason Carreira
Please post any details you have, and a sample app that shows the
problem, if possible.

 -Original Message-
 From: Sebastiano Pilla [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, February 07, 2003 9:22 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [OS-webwork] Help needed with parametric action
 
 
 At 15.09 07/02/2003, Jason Carreira wrote:
 Did you ever get this resolved?
 
 No, unfortunately I haven't... Problem is, I can't seem to be able to 
 pinpoint the exact problem, not even after a good night's sleep. I'm 
 reasonably sure it's my fault, but I haven't got a clue.
 
   However, the Map object passed to setParameters is empty!
 
 Sebastiano Pilla
 E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
 phone +39.0422.3107  fax   +39.0422.310888
 http://www.e-tree.com  http://www.webanana.com
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 
 2 See! http://www.vasoftware.com 
 ___
 Opensymphony-webwork mailing list 
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
 


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



RE: [OS-webwork] Help needed with parametric action

2003-02-07 Thread Sebastiano Pilla
At 15.21 07/02/2003, Jason Carreira wrote:

Please post any details you have, and a sample app that shows the
problem, if possible.


Well, I have made some progress... Without changing the Java code (a class 
that extends ActionSupport and implements ApplicationAware and 
ParameterAware) I tried a different JSP approach.

I now have testblog.jsp and testblog2.jsp: the former includes the latter as

htmlheadtitle/title/headbody
jsp:include page=testblog2.jsp
  jsp:param name=lowerBoundDay value=3 /
  jsp:param name=upperBoundDay value=-1 /
/jsp:include
/body/html

and testblog2.jsp is:

%@ taglib uri=WebWorkTags prefix=webwork %
webwork:action name='content.BlogPostAction'
/webwork:action

With this arrangement, my BlogPostAction class can now see the parameters: 
the setParameters method gets called, and in the log I see:

[2003-02-07 16:38:44,457] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - Action executing..
[2003-02-07 16:38:44,457] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - doExecute - mParameters = 
{lowerBoundDay=[Ljava.lang.String;@50d45b, 
upperBoundDay=[Ljava.lang.String;@49105b}
[2003-02-07 16:38:44,467] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - v = [3]
[2003-02-07 16:38:44,467] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - v = [-1]
[2003-02-07 16:38:44,807] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - doExecute - result = []
[2003-02-07 16:38:44,807] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - Action execution done
[2003-02-07 16:38:44,807] DEBUG com.datafaber.action.content.BlogPostAction 
content.BlogPostAction - Action executed in 350 ms

The mParameters variable is set in the setParameters() method of 
BlogPostAction, of course.

So, in the end I'm happy that I got it to work, but I still feel I do not 
understand WebWork as much as I'd like. I thought that I could pass 
parameters to actions via the param tag, and obviously it appears that I 
was wrong. Could someone enlighten me as to why the following syntax does 
not work as I originally thought?

%@ taglib uri=WebWorkTags prefix=webwork %
webwork:action name='content.BlogPostAction'
  webwork:param name='lowerBoundDay' value=3 /
  webwork:param name='upperBoundDay' value=-1 /
/webwork:action

Dunno if it matters, the setup I'm currently running is WebWork 1.2.1 and 
Tomcat 4.1.12.

Regards

Sebastiano Pilla
E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107  fax   +39.0422.310888
http://www.e-tree.com  http://www.webanana.com



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


Re: [OS-webwork] Help needed with parametric action

2003-02-06 Thread Tim Dwelle
Did you verify that your form is actually SUBMITTING a multipart 
request?

Your form needs to specify the encoding type as 'multipart/form-data'.

Just a thought...



Quoting Sebastiano Pilla [EMAIL PROTECTED]:

 Greetings,
 
 I'm having some troubles when trying to pass parameters to one of my
 
 actions and I'm stumped: I believe I must be missing something 
 embarassingly simple, but it appears I'm too dumb to figure it out
 for 
 myself...
 
 The problem: I have a class that extends ActionSupport and implements
 both 
 ApplicationAware and ParameterAware, but the setParameters method
 always 
 receives an empty map...
 
 I call this action in a JSP page in this way:
 
 %@ taglib uri=WebWorkTags prefix=webwork %
 webwork:action name='content.BlogPostAction'
webwork:param name='lowerBoundDay' value=3 /
webwork:param name='upperBoundDay' value=-1 /
 /webwork:action
 
 I've placed some logging calls in doExecute() and setParameters(),
 and 
 they're both called as I expect:
 
 [2003-02-06 16:51:44,822] DEBUG 
 com.datafaber.action.content.BlogPostAction  - setParameters -
 pParameters = {}
 [2003-02-06 16:51:44,952] DEBUG
 com.datafaber.action.content.BlogPostAction 
 content.BlogPostAction - Action executing..
 [2003-02-06 16:51:44,962] DEBUG
 com.datafaber.action.content.BlogPostAction 
 content.BlogPostAction - doExecute - mParameters = {}
 
 However, the Map object passed to setParameters is empty!
 
 What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am I
 
 totally off-base here and should be doing this in an entirely
 different way?
 
 Thanks for any help.
 
 Sebastiano Pilla
 E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
 phone +39.0422.3107  fax   +39.0422.310888
 http://www.e-tree.com  http://www.webanana.com
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 Opensymphony-webwork mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
 





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



Re: [OS-webwork] Help needed with parametric action

2003-02-06 Thread Tim Dwelle
Oops... I obviously replied to the wrong message.  Apologies.


Quoting Tim Dwelle [EMAIL PROTECTED]:

 Did you verify that your form is actually SUBMITTING a multipart 
 request?
 
 Your form needs to specify the encoding type as
 'multipart/form-data'.
 
 Just a thought...
 
 
 
 Quoting Sebastiano Pilla [EMAIL PROTECTED]:
 
  Greetings,
  
  I'm having some troubles when trying to pass parameters to one of
 my
  
  actions and I'm stumped: I believe I must be missing something 
  embarassingly simple, but it appears I'm too dumb to figure it out
  for 
  myself...
  
  The problem: I have a class that extends ActionSupport and
 implements
  both 
  ApplicationAware and ParameterAware, but the setParameters method
  always 
  receives an empty map...
  
  I call this action in a JSP page in this way:
  
  %@ taglib uri=WebWorkTags prefix=webwork %
  webwork:action name='content.BlogPostAction'
 webwork:param name='lowerBoundDay' value=3 /
 webwork:param name='upperBoundDay' value=-1 /
  /webwork:action
  
  I've placed some logging calls in doExecute() and setParameters(),
  and 
  they're both called as I expect:
  
  [2003-02-06 16:51:44,822] DEBUG 
  com.datafaber.action.content.BlogPostAction  - setParameters -
  pParameters = {}
  [2003-02-06 16:51:44,952] DEBUG
  com.datafaber.action.content.BlogPostAction 
  content.BlogPostAction - Action executing..
  [2003-02-06 16:51:44,962] DEBUG
  com.datafaber.action.content.BlogPostAction 
  content.BlogPostAction - doExecute - mParameters = {}
  
  However, the Map object passed to setParameters is empty!
  
  What I'm doing wrong? Am I using an incorrect syntax in my JSP? Am
 I
  
  totally off-base here and should be doing this in an entirely
  different way?
  
  Thanks for any help.
  
  Sebastiano Pilla
  E-TREE S.p.a.  Via Fonderia 43 - 31100 Treviso (Italy)
  phone +39.0422.3107  fax   +39.0422.310888
  http://www.e-tree.com  http://www.webanana.com
  
  
  
  ---
  This SF.NET email is sponsored by:
  SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2
 See!
  http://www.vasoftware.com
  ___
  Opensymphony-webwork mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
  
 
 
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 Opensymphony-webwork mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
 





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork