Re: [OS-webwork] Quickstart guide ? is it missisng something - changes

2003-12-10 Thread Leonidas Papadakis
The below should be a simple working example. Please check it yourselves, but i think it should be ok. I hope the quickstart guide will be updated. changes at Quickstart guide add a components.xml file to the WEB-INF\Classes directory (should go under src directory in eclipse to be copied ever

RE: [OS-webwork] pointing action calling pages

2003-12-10 Thread Patrick Lightbody
There are a few options (Drew and Jason are both correct). Another option is to use the so-called "HTTP 204 trick": Using the HttpHeaderResult (included in WebWork, but not yet in webwork-default.xml), you can respond with a 204 code which tells the browser to submit the form but then not change t

RE: [OS-webwork] Problems with Applet.

2003-12-10 Thread Patrick Lightbody
That’s very strange. Are you at all using the tag in your JSP as well?   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of remigijus Sent: Wednesday, December 10, 2003 2:17 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] Problems with Applet.  

RE: [OS-webwork] Empty string property now "" instead of null?

2003-12-10 Thread Patrick Lightbody
Title: RE: [OS-webwork] Empty string property now "" instead of null? Well, other objects (like int, Long, etc) will get null, but in the case of “” it is actually a valid conversion. Is the request to (in WebWork, not XWork) treat “” as essentially _null_? Anyone have any thoughts on this

RE: [OS-webwork] JSP tags in velocity

2003-12-10 Thread Patrick Lightbody
Unfortunately, this is one of the problems with the "use-JSP-tags-in-velocity" deal: in order to _really_ get it to work, you essentially have to write half a JSP container. Since supporting any arbitrary tag isn't the goal of WebWork (it's a nice side effect, but it's not a high priority at all),

Re: [OS-webwork] jasperreport image html display

2003-12-10 Thread Cameron Braid
I managed to get this going by putting a one pixel transparent gif image in /images/px : note that "px" is the filename, no extension.. strange, but this is what the URL's link to. Cameron Manyuan Jin wrote: Hi,   Can anybody tell me how to use JasperReportViewServlet with HTM

[OS-webwork] jasperreport image html display

2003-12-10 Thread Manyuan Jin
Hi,   Can anybody tell me how to use JasperReportViewServlet with HTML file. There is no problem with the px image since I put it in my images folder. I cannot get the generated images (e.g. $V{ChartImage}) displayed in HTML file. But it works for PDF file.   Thanks.

RE: [OS-webwork] pointing action calling pages

2003-12-10 Thread Jason Carreira
You can use an expression there, like this: ${currentPage} Which will evaluate currentPage against the value stack > -Original Message- > From: Jan-Peter Hagenmüller [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 6:19 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] po

RE: [OS-webwork] Empty string property now "" instead of null?

2003-12-10 Thread Jason Carreira
If it's a String property type, why would it think to convert [""] to null? > -Original Message- > From: BOGAERT Mathias [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 7:16 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Empty string property now "" instead of null? >

RE: [OS-webwork] Setting session value in jsp ( webwork1 )

2003-12-10 Thread Jason Carreira
In WW2 you can use the ww:set tag > -Original Message- > From: Dick Zetterberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 5:59 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Setting session value in jsp ( webwork1 ) > > > > - Original Message - > Fro

RE: [OS-webwork] Can I concatenate text in the name attribute?

2003-12-10 Thread Jason Carreira
> -Original Message- > From: Dick Zetterberg [mailto:[EMAIL PROTECTED] > > > I am planning to add concatenation support for WW1.4.1. Then > you would be able to write: > name="'prefix1[' + @status + '].someName'" which is what you want I > believe. > Which works in WW2 Jason

RE: [OS-webwork] pointing action calling pages

2003-12-10 Thread Drew McAuliffe
I've had success with that using a "Referrer" result, adopted from ww1.x. It looks something like this. The key is to get the previous location from the "referer" attribute of the request (REFERER_KEY = "referer"), which contains the previous result. My version does a little extra, making sure that

Re: [OS-webwork] Can I concatenate text in the name attribute?

2003-12-10 Thread Dick Zetterberg
- Original Message - From: "Eric Mckenna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2003 9:53 PM Subject: [OS-webwork] Can I concatenate text in the name attribute? > I have a form that creates some child objects, so the form has repeated form > values. I'm

[OS-webwork] pointing action calling pages

2003-12-10 Thread Jan-Peter Hagenmüller
Hi, any form at any page can call any actions - but how can i point the calling page with a result desciption like below? "current page" with no http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-331) thanks for hints! jp

Re: [OS-webwork] Can I concatenate text in the name attribute?

2003-12-10 Thread Eric Mckenna
That would work, but then I could not use webwork's validation. - Original Message - From: "Cuong Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: December 10, 2003 3:49 PM Subject: Re: [OS-webwork] Can I concatenate text in the name attribute? > > You can try: > > > ]" valu

RE: [OS-webwork] Conversion and Validation

2003-12-10 Thread Jason Carreira
You can use the Xwork version of that interceptor which will not filter out any conversion messages. What else would you suggest? I'm sorry, I don't understand what you're saying about the conversion error message being overridden... Can you give me an example so my slow brain can figure it out? :

RE: [OS-webwork] Webwork2 status? (time to stable release)

2003-12-10 Thread Jason Carreira
We are at a stable state... We're just fixing some bugs. We expect the WW2 release around the end of the month. > -Original Message- > From: Leonidas Papadakis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 10, 2003 3:51 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Webwork2 s

Re: [OS-webwork] Setting session value in jsp ( webwork1 )

2003-12-10 Thread Dick Zetterberg
- Original Message - From: "Leonidas Papadakis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 8:14 PM Subject: [OS-webwork] Setting session value in jsp ( webwork1 ) > Can anybody tell me how can i set a value passed by an action, to the > session at the

Re: [OS-webwork] Can I concatenate text in the name attribute?

2003-12-10 Thread Cuong Tran
You can try: ]" value="..."/> --- Eric Mckenna <[EMAIL PROTECTED]> wrote: > > > > Here's basically what im trying to achieve, > > > > > > I started with using the status tag on iterator: > > > > > value="someValue/> > > > > > > > > name="[EMAIL PROTECTED]" > > value="someValue

[OS-webwork] Setting session value in jsp ( webwork1 )

2003-12-10 Thread Leonidas Papadakis
Can anybody tell me how can i set a value passed by an action, to the session at the jsp file ? Which webwork tag do i have to use? Otherwise how can i access the value from jsp code ? I am using webwork 1.4. Thanks in advance. L Fred Lamuette wrote: The new beta2 displaytag library is releas

Re: [OS-webwork] Can I concatenate text in the name attribute?

2003-12-10 Thread Eric Mckenna
I'm using webwork 1.4 and @status should be @status/index, typo on my part. I'm using the IteratorStatus to get an index for the current item. - Original Message - From: "Patrick Lightbody" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: December 09, 2003 10:19 PM Subject: RE: [OS-webw

RE: [OS-webwork] Empty string property now "" instead of null?

2003-12-10 Thread Mathias Berg
Title: RE: [OS-webwork] Empty string property now "" instead of null? I fully agree with ... Mathias :) if "" then null would be preferred to get. But I guess there is something stopping that. or? /Mathias. -Original Message- From: BOGAERT Mathias [mailto:[EMAIL PROTECTED]] Sent: de

[OS-webwork] Empty string property now "" instead of null?

2003-12-10 Thread BOGAERT Mathias
Hi, When a form field (single textfield) is not filled, the request param is an empty string, which translates to an empty string array (ParametersInterceptor), but my property setter is called with an empty string. Should't that be null? Cheers, Mathias

[OS-webwork] Problems with Applet.

2003-12-10 Thread remigijus
Hello     Today I tryed to add an applet to my site for management purposes, but  wen I'm calling to the page with Applet in it I'm getting an error.   I am using webwork with sitemesh2 and evrything was working without any problems, util I'm calling to an page with applet.   If somebody ha

RE: [OS-webwork] Dynamic text fields

2003-12-10 Thread David Nielsen
Cool just what i was looking for thanks.. Is the order in the array the order the page is printed, so i can trust that the first text field is the string[0] ? Regards David On Tue, 2003-12-09 at 16:57, Patrick Lightbody wrote: > David, > In WebWork 1.x and 2.0, you can provide a get/set meth

[OS-webwork] JSP tags in velocity

2003-12-10 Thread Fred Lamuette
The new beta2 displaytag library is released, and I've understood the value property is not supported, so the existing integration example in WW2 can no more work : #bodytag( Table "name=list" ) #tag( Column "property=key" ) #tag( Column "property=value" ) #tag( Column "title=static value" "

Re: [OS-webwork] Desired behaviour in ModelDrivenInterceptor...

2003-12-10 Thread Jonas Eriksson
Ok, thanks, I'll go with that. I think this behaviour should be mentioned next to the documentation of the ModelDrivenInterceptor (there is some documentation about interceptors.. right? ;-) Jonas Fred Lamuette wrote: Jonas, I resolved your problem by pushing the new model on the stack. It's t

[OS-webwork] Webwork2 status? (time to stable release)

2003-12-10 Thread Leonidas Papadakis
Greetings, I have recently got stack with webwork1 and investigated webwork2 that seams to fit the needs of the project that i am working on. There is one concern though being raised in the company that i work, that webwork2 is at beta2 . We tracked down an article stating that webwork2 has no

[OS-webwork] Conversion and Validation

2003-12-10 Thread Fred Lamuette
Ok, as far as I am concerned I've validated the new process in XWork of handling the conversion errors. I just disagree with the special interceptor that prevents some conversions, the rest is ok for me. I think you have to choose an easy and basic approach for handling error conversions, clarity a

RE: [OS-webwork] Desired behaviour in ModelDrivenInterceptor...

2003-12-10 Thread Fred Lamuette
Jonas, I resolved your problem by pushing the new model on the stack. It's the only clean solution, and it works well. Dont forget, when you push the new model, to set also the model reference in the action, thus you can reference it afterwards if needed. Hope it can help. Richard HALLIER Chef de