Struts2 spring 2.5 in portlet

2008-08-22 Thread Erik Mellegård
Hi, I'v just started to implement a portlet application using struts2-portlet-plugin and struts2-spring plugin. To manage my objects I'm planning to use spring 2.5. My problem starts when using the scopes session and request on my spring managed beans. I get the following error despite

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Alessio Bandini
I'm sorry again. The mailing list manager does not allow attached files. But the problem is still the same. I get the image from DB, but I see binary characters and not the image. Probably I have to use some special tags but I cannot understand what. Thanks. Alessio Bandini wrote: Thanks,

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Jeromy Evans
Your configuration is okay but you have misused the action tag. You can't embed an inline image within an HTML page. ie. you've started sending a result, which is from JSP, and then part-way though you've attempted to output some binary data in the same output stream. You do not need

Re: Struts2 spring 2.5 in portlet

2008-08-22 Thread Nils-Helge Garli Hegvik
If it should work with a regular portlet, then it should also work with the Struts 2 portlet plugin. There's nothing special happening inside the framework that should prevent this. You'd probably be better off asking the question on a Spring or a Liferay mailing list. Maybe this [1] thread is

Re: [S2] Struts and blob image from Oracle

2008-08-22 Thread Alessio Bandini
controllato dal Sistema Antivirus NOD32 http://www.nod32.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Informazione NOD32 3378 (20080822) __ Questo messaggio

Re: [S2] Iterate through two lists

2008-08-22 Thread Stephan Schröder
If all you're trying to do is set message properties why are you bothering with the push? s:iterator value=fruits1 status=rowstatus s:text name=names s:param value=someObject.fruits2[#rowstatus.index].name/ /s:text /s:iterator Looks good (if fruit1 is accessable bei a getter

Re: Struts 2.1 Tree Problem

2008-08-22 Thread Narayana S
Hi, Issue is solved and migration is successful with respect to tree control, i found solution in code pencil blog. Have a nice time. On Thu, Aug 21, 2008 at 6:44 PM, Narayana S [EMAIL PROTECTED] wrote: Hi, i was using struts 2.0.11 and we know tree control is having some

Re: [S2] Iterate through two lists

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Stephan Schröder [EMAIL PROTECTED] wrote: Maybe the param tag tries to bind with the push tag and not with the text tag??? Oh, that makes sense, although it'd probably be better to not throw a huge exception :/ Hopefully I'll have time to look in to that soon. Dave

struts-hibernate-mysql date problem

2008-08-22 Thread Hardik Shah
hi i am using hibernate 3 with s2 my problem is that im mysql table i have field of date type so i have set type date in hb mapping.xml and in pojo(if i am set as string in pojo and mapping file it gives error ) now i have to set date in input as format mm/dd/yy so mysql accepts it

Re: struts-hibernate-mysql date problem

2008-08-22 Thread Stephan Schröder
quick and dirty solution: i know that this works if you use hibernate with annotations so i'm certain that there is a possibility to do it with xml. With annotations you can declare whether the data is extracted directly from the property or indirectly over the getter-method of the property.

How to use Jasper plugin with multiple reports

2008-08-22 Thread ManiKanta G
Hi all, Currently I m working with Jasper Reports for one of report. And for that report after all the data, a full page of static text is to be placed at the end of the report (in my case 2nd page). But in Jasper report, we can have only one page per report and so I m nit able to add a

RE: struts-hibernate-mysql date problem

2008-08-22 Thread Nataraj Somaraju
Hi friend Hope this helps you. String yourDate=date in mm/dd/ format (example: 08/22/2008) DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT); ParsePosition pos = new ParsePosition (0); java.sql.Date wantedDate = new

Re: How to use Jasper plugin with multiple reports

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, ManiKanta G wrote: But in Jasper report, we can have only one page per report and so I m nit able to add a full page static text. When I googled for this, I found this can be implemented using 2 or more jasper reports and merging them as a single final report. Can

Re: [S2] problem setting parameter

2008-08-22 Thread Andrei Ivanov
On Thu, Aug 21, 2008 at 7:40 PM, Andrei Ivanov [EMAIL PROTECTED] wrote: Hello, I'm having a difficult problem for which I hope someone here can help me.. The short story: the parameters interceptor is unable to set a parameter. These are the classes involved: package model; public class

OGNL

2008-08-22 Thread Muralidhar Y
Hi friends, How to understand the OGNL. I am working with it, most of the time I guess the things but I want to know how exactly the OGNL works. What is value stack? What is root and exactly how to write OGNL? Apart of the doc that is there on struts site, is there any good

Re: OGNL

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Muralidhar Y wrote: What is value stack? The value stack is both a stack (where the current action is pushed, the object of an iterator tag is pushed (on top of the action), etc. It's also a context, though--it stores some named objects (like #session and #attr) by

Re: How to use Jasper plugin with multiple reports

2008-08-22 Thread ManiKanta G
Thanks Dave. I've included a page break just before the static text. But as the static text is almost an another page, it is going out of page dimensions and I m not able to compile the report. For another report, the end text is small and I m getting according to my wish. For large static

[OT] Re: How to use Jasper plugin with multiple reports

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, ManiKanta G wrote: I've included a page break just before the static text. But as the static text is almost an another page, it is going out of page dimensions and I m not able to compile the report. Please see the JasperReport docs for how to deal with that. Workarounds

Re: [OT] Re: How to use Jasper plugin with multiple reports

2008-08-22 Thread ManiKanta G
Thanks Dave. I'll see that. Regards, ManiKanta Dave Newton wrote: --- On Fri, 8/22/08, ManiKanta G wrote: Please see the JasperReport docs for how to deal with that. Workarounds include making the field very small but making it expand to size of largest element and so on. Dave

s:if comparing a string

2008-08-22 Thread piltrafeta
Hello, in m'y jsp i'm trying to compare a String link this s:if test=#session.request._status != 'T' but is not working, does anybody knows the sintaxis? Thanks -- View this message in context: http://www.nabble.com/s%3Aif-comparing-a-string-tp19106286p19106286.html Sent from the Struts -

Re: s:if comparing a string

2008-08-22 Thread Nils-Helge Garli Hegvik
What are you trying to compare with? A value in the session, or a value in the request? Or do you actually have an object named request with a _status property in the session? Maybe these resources can help: http://struts.apache.org/2.x/docs/tag-syntax.html

Re: s:if comparing a string

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, piltrafeta wrote: in m'y jsp i'm trying to compare a String link this s:if test=#session.request._status != 'T' s:if test='#session.request._status != T ' Using single quotes around a single character will create a char, not a string, like in Java. Dave

RE: if comparing a string

2008-08-22 Thread ravindra
Where is your _status property? Is it in session or request or as a property in your action class? And what is the data type of your _status field? If it is in your session the below one will work s:if test=#session._status != 'T' If it is in your action class as property having getter and

Re: OGNL

2008-08-22 Thread Stephan Schröder
Here are the language and developer guides: http://www.opensymphony.com/ognl/ I'm pretty sure that neither %{} nor ${} are actually part of OGNL. %{} is a marker for struts2 that the content should be evaluated as OGNL-Statement and not as String while ${} is the marker for freemarker, which is

Re: s:if comparing a string

2008-08-22 Thread piltrafeta
Thanks you all guys ! I was trying to compare a String so using single cuotes solved my problem. s:if test='#session.request._status != T ' Thanks again!!! piltrafeta wrote: Hello, in m'y jsp i'm trying to compare a String link this s:if test=#session.request._status != 'T' but

Re: Struts2 spring 2.5 in portlet

2008-08-22 Thread John H Liptak
I would start with http://weblogs.java.net/blog/felipeal/archive/2008/03/spring_icefaces.html http://weblogs.java.net/blog/felipeal/archive/2008/03/spring_icefaces.html -- View this message in context: http://www.nabble.com/Struts2---spring-2.5-in-portlet-tp19102346p19107333.html Sent from

Re: Struts 2.0.11 from 2.0.9 EL Expression problem

2008-08-22 Thread Gabriel Belingueres
try using neither ${} nor %{}: listKey='listKey' listValue='listValue' 2008/8/22, crappycrumpet [EMAIL PROTECTED]: Hi All, I know EL Expression has been disabled from 2.0.10 on. Unfortunately I have some jsp has uses EL. I have this jsp files that renders a

Re: Struts 2 And JFreeChart

2008-08-22 Thread dynamicd
No Milan Milanovic wrote: Hi, do I need to have this p (String type) parameter in my action class ? -- Thx, Milan dynamicd wrote: its some parameter name (the name does not matter) and RANDOM is set in the controller (Action) or to make it easy img

html:checkboxu tag and his jsId atribute

2008-08-22 Thread aleoson
Help please I cannot find description of html:checkbox tag? What does it mean his atribute jsId? -- View this message in context: http://www.nabble.com/html%3Acheckboxu-tag-and-his-jsId-atribute-tp19108102p19108102.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: html:checkboxu tag and his jsId atribute

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, aleoson wrote: I cannot find description of html:checkbox tag? The Struts 1 tag? Did you try looking on the Struts website? What does it mean his atribute jsId? Sounds like Dojo, I think they use jsId, but could be anything, I suppose, with nothing to go on. Dave

Re: html:checkboxu tag and his jsId atribute

2008-08-22 Thread aleoson
Yes, I searched there. But I cannot find any information about such tag. I'd like to use html:checkbox tag. But I want to have possibility to refer bu id to it. And I don't see id attribute among attributes of html:checkbox tag

Re: html:checkboxu tag and his jsId atribute

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, aleoson wrote: Yes, I searched there. But I cannot find any information about such tag. But... you just gave a link for it. And I don't see id attribute among attributes of html:checkbox tag http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#html:checkbox

S2 Ajax validation actionErrors

2008-08-22 Thread Oleg Mikheev
Hello To put it straight: do I understand it right that S2 AJAX validation doesn't take care of action errors, only the field ones? So that action errors are displayed only on submit. Thanks - To unsubscribe, e-mail: [EMAIL

Re: S2 Ajax validation actionErrors

2008-08-22 Thread Musachy Barroso
[2.1] No, it also serializes action errors: http://struts.apache.org/2.x/docs/ajax-validation.html musachy On Fri, Aug 22, 2008 at 11:32 AM, Oleg Mikheev [EMAIL PROTECTED] wrote: Hello To put it straight: do I understand it right that S2 AJAX validation doesn't take care of action errors,

Re: S2 Ajax validation actionErrors

2008-08-22 Thread Musachy Barroso
I think I misunderstood your question, it does serializes the action errors, but it doesn't show them on the page for you. On Fri, Aug 22, 2008 at 11:32 AM, Oleg Mikheev [EMAIL PROTECTED] wrote: Hello To put it straight: do I understand it right that S2 AJAX validation doesn't take care of

Re: Why do s:select and s:submit add a tr ?

2008-08-22 Thread Ylva Degerfeldt
Hi again! I'm still struggling with the theme. See below.. I don't even know if I've put the theme in the right place in the NetBeans (5.5.1) structure. Is there a way to check that? Where did you put it? Did you read the template loading page?

Re: S2 Ajax validation actionErrors

2008-08-22 Thread Oleg Mikheev
Musachy Barroso wrote: I think I misunderstood your question, it does serializes the action errors, but it doesn't show them on the page for you. But it doesn't serialize them in 2.0.x right? I understand that 2.1 is very promising, but it is still in beta... And since 2.1 doesn't display

Re: S2 Ajax validation actionErrors

2008-08-22 Thread Musachy Barroso
Don't remember about 2.0, but it was done with DWR for sure. On Fri, Aug 22, 2008 at 12:14 PM, Oleg Mikheev [EMAIL PROTECTED] wrote: Musachy Barroso wrote: I think I misunderstood your question, it does serializes the action errors, but it doesn't show them on the page for you. But it

Re: Action as Welcome File

2008-08-22 Thread Ylva Degerfeldt
Hello James, I had the same problem and another Struts 2 developer showed me one way to do it. (I didn't get it to work to specify the action as a welcome-file.) The solution is almost like you did. The only difference is how you call the action from index.jsp. I don't know if it's more elegant

Re: Why do s:select and s:submit add a tr ?

2008-08-22 Thread Dave Newton
If you deploy the theme to the classpath (it's not relevant what *NetBean's* classpath is--it should be on the *webapp's* classpath) then you should be able to load templates. Have you tried creating a minimal test case, like changing one of the existing templates, and see if the changes are

type conversion per method

2008-08-22 Thread Jason Deffenbaugh
I'm running struts 2.0.11 trying to do a custom type conversion. The conversion is working for the action that calls the execute() method in the action class but it does not work for an action that is declared using the method=methodName parameter in struts.xml so when methodName() runs I get an

Re: Why do s:select and s:submit add a tr ?

2008-08-22 Thread Ylva Degerfeldt
Thanks for replying again, Dave! On Fri, Aug 22, 2008 at 7:30 PM, Dave Newton [EMAIL PROTECTED] wrote: If you deploy the theme to the classpath (it's not relevant what *NetBean's* classpath is--it should be on the *webapp's* classpath) then you should be able to load templates. Well, I'm

Re: type conversion per method

2008-08-22 Thread Jason Deffenbaugh
Figured it out. Had a bad URL going. Thanks! On Fri, 2008-08-22 at 14:41 -0400, Jason Deffenbaugh wrote: I'm running struts 2.0.11 trying to do a custom type conversion. The conversion is working for the action that calls the execute() method in the action class but it does not work for an

Re: Why do s:select and s:submit add a tr ?

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Ylva Degerfeldt wrote: I'm actually not sure what the webapp's classpath is [...] Any of a million JEE tutorials, articles, books, etc. will bring you up to speed on the basics of Java webapp development, which is beyond the scope of the Struts list. it seems I Have

Re: [OT] S2 Stream Result, downloading large file, advice needed

2008-08-22 Thread Greg Lindholm
I'm still interested in hear any suggestions. I know that this is not strictly an S2 issue but it is related to using a Stream result type. If I was writing a servlet I would just get the OutputStream and write directly to it, putting the burden of buffering etc. onto the container. What I

Re: [OT] Re: Struts 2 And JFreeChart

2008-08-22 Thread Milan Milanovic
But if I don't have p property in my action class, I got warning in log ParamsPrepareParams setting String... interceptor and so on ? -- Milan newton.dave wrote: do I need to have this p (String type) parameter in my action class ? No, it's there to create a unique URL, so it won't be

Re: [OT] Re: Struts 2 And JFreeChart

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Milan Milanovic [EMAIL PROTECTED] wrote: But if I don't have p property in my action class, I got warning in log ParamsPrepareParams setting String... interceptor and so on? ... So put a p parameter in your action. Dave

Re: [S2] Iterate through two lists

2008-08-22 Thread Milan Milanovic
Dear Dave, now, I don't get 500 server error, but null values! I don't know why? Where can I set levels DEBUG for S2, XWork and OGNL ? -- Thx, Milan newton.dave wrote: --- On Thu, 8/21/08, Milan Milanovic wrote: I have struts devMode on and logging works for Struts, i.e., I get all

Re: [OT] S2 Stream Result, downloading large file, advice needed

2008-08-22 Thread Brendan Billingsley
I have a somewhat similar situation in an application I am creating where I needed to provide a .tar.gz file that I create for the user. I want that file to hang around for some configurable amount of time in case the user re-requests that file and then I wanted to remove it. I used quartz to

Re: [S2] Double conversion issue

2008-08-22 Thread Milan Milanovic
This is some wierd Struts behaviour for Double conversion, e.g., if my prop attribute in JSP was 2232.435, when user click on this Delete link, in my action class for prop attribute I get: 2232435.0 ?! -- Milan Milan Milanovic wrote: Hi, I have this code in my jsp: s:iterator

Re: [S2] Iterate through two lists

2008-08-22 Thread Dave Newton
--- On Fri, 8/22/08, Milan Milanovic wrote: Where can I set levels DEBUG for S2, XWork and OGNL ? Search the fine web for Java logging, possibly after checking what S2 has for logging-oriented dependencies. Dave - To

S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Paul Benedict
I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from Tomcat Manager. My application gets undeployed, but there is a lock is on the struts2-core library. Anyone encounter this problem? I am using 2.0.11.2 and Tomcat 6.0.16. Paul

Re: [S2] Double conversion issue

2008-08-22 Thread Jeromy Evans
I've seen this reported previous as a bug in S2/Xwork (appending an extra 0 character). I can't recall where I saw that. Write a custom type-converter for that field to work-around it. Milan Milanovic wrote: This is some wierd Struts behaviour for Double conversion, e.g., if my prop

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Wendy Smoak
On Fri, Aug 22, 2008 at 9:10 PM, Paul Benedict [EMAIL PROTECTED] wrote: I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from Tomcat Manager. My application gets undeployed, but there is a lock is on the struts2-core library. Anyone encounter this problem?

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Jeromy Evans
Paul Benedict wrote: I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from Tomcat Manager. My application gets undeployed, but there is a lock is on the struts2-core library. Anyone encounter this problem? I am using 2.0.11.2 and Tomcat 6.0.16. Paul

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Paul Benedict
Jeromy, Any good chance 2.0.12 would contain the fix? Is the fix totally not able to be backported? Paul On Sat, Aug 23, 2008 at 12:05 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Paul Benedict wrote: I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Paul Benedict
https://issues.apache.org/struts/browse/WW-2167 On Sat, Aug 23, 2008 at 12:05 AM, Jeromy Evans [EMAIL PROTECTED] wrote: Paul Benedict wrote: I am unable to have Tomcat delete the physical directory of my webapp when I undeploy from Tomcat Manager. My application gets undeployed, but there is

Re: S2: Unable to undeploy app in Tomcat

2008-08-22 Thread Jeromy Evans
Paul Benedict wrote: https://issues.apache.org/struts/browse/WW-2167 Yes, it's easy to retrofit to 2.0. It only requires a finally statement in the init and destroy methods. PS. stop developing java on windows... ;-) My estimate is that Sun's java compiler is at least 50% faster