Re: [S2] Result Type Dispatch problem with relative Action calls

2009-01-13 Thread dusty
First of all this is the third time I have tried to respond as I keep trying to use ctrl+W to select a word while editing in this text area and closing the browser tab. (IDEA muscle memory). Ok, so my first question is why have a Search action and then a separate SearchResults action? What does

Re: [Struts2] How java.sql.Blob are handled?

2009-01-13 Thread Dave Newton
Raghu wrote: Hi, I am facing problem in handling java.sql.Blob datatype. I have Rich Text Editor FCKEditor in my jsp form and I have defined java.sql.Blob setter/getter method in my action class but struts2 is not able to set content of FCKEditor into java.sql.Blob settler method. I am getting b

[Struts2] How java.sql.Blob are handled?

2009-01-13 Thread Raghu
Hi, I am facing problem in handling java.sql.Blob datatype. I have Rich Text Editor FCKEditor in my jsp form and I have defined java.sql.Blob setter/getter method in my action class but struts2 is not able to set content of FCKEditor into java.sql.Blob settler method. I am getting below error...Lo

Re: FW: Re : datetimepicker ....unable to get it working :(

2009-01-13 Thread dusty
Are you open to using s:textbox and JQuery to make this work rather than the Struts widget? Richa Pandharikar-2 wrote: > > Has anyone got the datetimepicker working with Tiles? > > - Richa > > -Original Message- > From: Richa Pandharikar [mailto:richa.pandhari...@tdktech.com] > Sent

Re: Struts 2 and XHTML

2009-01-13 Thread dusty
Once you use the s:url tag, you can use JSTL syntax. ${myaction} ... In fact I have started a meme where I create a routes.jsp that I include in my files that lists all the s:url and other useful url aliases like ${resources}/images/bla.gif I have started to really like this because I can m

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread dusty
Wes, you are my hero. And besides, Cold Fusion is making a huge come back and is slated to take over for JSF. Wes Wannemacher wrote: > > On Tue, 2009-01-13 at 17:03 -0500, Musachy Barroso wrote: >> On Tue, Jan 13, 2009 at 3:48 PM, SanJ.SANJAY wrote: >> > >> >spring-Hibernate/JSF. >> >> uh?

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Dave Newton
Wes Wannemacher wrote: I think he was referring to the - Spring/Hibernate-JSF Integration Technology stack (S.H.I.T. for short) I came across it recently on a project I was tasked to make a few seemingly simple fixes. The more I worked with the codebase, I started to wonder if the original auth

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Wes Wannemacher
On Tue, 2009-01-13 at 17:03 -0500, Musachy Barroso wrote: > On Tue, Jan 13, 2009 at 3:48 PM, SanJ.SANJAY wrote: > > > >spring-Hibernate/JSF. > > uh? > > musachy > I think he was referring to the - Spring/Hibernate-JSF Integration Technology stack (S.H.I.T. for short) I came across it recent

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Musachy Barroso
On Tue, Jan 13, 2009 at 3:48 PM, SanJ.SANJAY wrote: > >spring-Hibernate/JSF. uh? musachy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

FW: Re : datetimepicker ....unable to get it working :(

2009-01-13 Thread Richa Pandharikar
Has anyone got the datetimepicker working with Tiles? - Richa -Original Message- From: Richa Pandharikar [mailto:richa.pandhari...@tdktech.com] Sent: Tuesday, December 30, 2008 4:04 PM To: 'Struts Users Mailing List' Subject: RE: Re : datetimepicker unable to get it working :( I am

Re: ServletRequestAware interface

2009-01-13 Thread Musachy Barroso
/nod On Tue, Jan 13, 2009 at 4:14 PM, Dave Newton wrote: > Andy wrote: >> >> Your first point makes total sense. [...] >> The second point also makes sense. [...] > > That's like the most sense I've ever made in one day ever. > > Makes me wonder if it was really me that sent the message. > > Dave

Re: ServletRequestAware interface

2009-01-13 Thread Dave Newton
Andy wrote: Your first point makes total sense. [...] The second point also makes sense. [...] That's like the most sense I've ever made in one day ever. Makes me wonder if it was really me that sent the message. Dave - To

RE: ServletRequestAware interface

2009-01-13 Thread Andy
Your first point makes total sense. I will use member variables instead of picking parameters off the request map. I do not want to be tied to the servlet spec. The second point also makes sense. I am currently injecting the service into the action via spring (using scope=prototype) so that

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Wes Wannemacher
On Tue, 2009-01-13 at 12:48 -0800, SanJ.SANJAY wrote: > Re-write? So if someone wants to upgrade struts, they have to be prepared to > re-write their application in new version ..if thats the case then I think > its the last thing a developer will do. If I have re-write the application, > I would r

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Frank W. Zammetti
SanJ.SANJAY wrote: Re-write? So if someone wants to upgrade struts, they have to be prepared to re-write their application in new version ..if thats the case then I think its the last thing a developer will do. If I have re-write the application, I would rather look at some much better frameworks

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Dave Newton
SanJ.SANJAY wrote: > Re-write? So if someone wants to upgrade struts, If someone wants to upgrade from S1 to S2, yes. Of course, there's also S1.3, which is a much easier path--but you didn't say where you were coming from. > if thats the case then I think its the last thing > a developer wil

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
Re-write? So if someone wants to upgrade struts, they have to be prepared to re-write their application in new version ..if thats the case then I think its the last thing a developer will do. If I have re-write the application, I would rather look at some much better frameworks, like spring-Hibern

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Dave Newton
SanJ.SANJAY wrote: Thanks Dave for the reply. I did not follow any process. I just wanted to upgrade Struts from1 to 2.0.14. SO read at the user guide that you just need to throw the *.jar files to your lib(http://struts.apache.org/1.x/userGuide/installation.html#Prerequisites). That says Strut

Re: ServletRequestAware interface

2009-01-13 Thread Dave Newton
Andy wrote: Having my s2 action classes implement ServletRequestAware works great > for getting request parameters. It's not necessary, though, as S2 will set request parameters into action properties (a) without the overhead of getting the request parameters manually, and (b) without tying y

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
Thanks Dave for the reply. I did not follow any process. I just wanted to upgrade Struts from1 to 2.0.14. SO read at the user guide that you just need to throw the *.jar files to your lib(http://struts.apache.org/1.x/userGuide/installation.html#Prerequisites). Thats all I did. To upgrade is this n

Re: Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread Dave Newton
SanJ.SANJAY wrote: I am having some issues while upgrading the struts: I dowloaded the latest 2.0.14 source from mirror and then copied all the .jars from the /lib folder to my application /lib folder. Now when I restart my Jboss, it throws error for deploying my web application with an error:

ServletRequestAware interface

2009-01-13 Thread Andy
Having my s2 action classes implement ServletRequestAware works great for getting request parameters. However it doesn't look like non-action classes can implement this interface to get the parameters. Since I offload my action class execute() processing to a service class (which is injected

Upgrading Struts from 1 to 2.0.14

2009-01-13 Thread SanJ.SANJAY
I am having some issues while upgrading the struts: I dowloaded the latest 2.0.14 source from mirror and then copied all the .jars from the /lib folder to my application /lib folder. Now when I restart my Jboss, it throws error for deploying my web application with an error: java.lang.ClassCast

Re: Struts 2 and XHTML

2009-01-13 Thread Johannes Geppert
use the struts2 tags, like this. Go To My Action Best Regards Johannes Geppert Anthony Frasso wrote: > > Hello, and thanks for your help in advance. > > I'm new to Struts 2, and working on a simple application to learn the > framework. I'm also trying to use XHTML with this application. >

RE: [S1] message-resources

2009-01-13 Thread Evert Lammerts
Hi Lukasz, Thanks for your answer. They get copied to WEB-INF/classes/content at compile-time, and looking in the container I see they're there. So that's not the problem... And I still haven't figured it out :-( Evert -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@google

Re: [S1] message-resources

2009-01-13 Thread Lukasz Lenart
2009/1/13 Evert Lammerts : > In the WEB-INF/src/content folder I have two files - a Messages.properties > and Messages_en.properties, both containing a line looking like this: Put it to WEB-INF/classes/content Regards -- Lukasz http://www.lenart.org.pl/ ---

Re: Action Form problem

2009-01-13 Thread Dave Newton
Amol Londhe wrote: What i would like to do is, when ever there is request submitted by the user to the webapplication, i would like to pass the ActionForm object to this class method, do the formatting of the String objects and > then pass this Action form to the actual action in my webapp.

problem with Locale on jboss

2009-01-13 Thread Nikos Gereoudakis
hi, Locale works in a coworker's server (jboss 4.0.5) but not when i run it in my development server (again jboss). any ideas where to start looking? thanks niko

[S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Frank Otto
hi, I have a portlet with struts. It works fine, but I can't share objects in my portlet session with the servlet/action for yui ajax calls. I set in my porlet struts 2 action an object in the portlet session: portletRequest.getPortletSession().setAttribute(MY_KEY, mySe

[S1] message-resources

2009-01-13 Thread Evert Lammerts
Hi all, Sorry for the repetition, but I can't seem to figure this out in spite of all those resources you can find online. Using struts 1.3.8 (in Liferay 5.1.2 portal on Tomcat 6.0, through the apache bridge) I'm having trouble accessing message resources. In a portlet I've a struts-config tha

Re: Action Form problem

2009-01-13 Thread Paweł Wielgus
Hi Amol, maybe You can use Filter? It's not exactly what You want, no form i.e. but maybe it will do. You can define one in web.xml like Character Encoding UTF-8 com.ppp.irqpa.commons.SetCharacterEncodingFilter encoding UTF-8 Character Encoding UTF-8

Re: [S2] Result Type Dispatch problem with relative Action calls

2009-01-13 Thread Dirk Forchel
This issue drives me almost insane. After using my own History Stack (for each page request I store the request string e.g. "/welcome.action" and the ActionContext) and my own result type (behaving similiar to the ActionChainResult) but pulling the latest request from my stack and chain to that ac

Re: Spring Error without Spring

2009-01-13 Thread Alexander Baetz
Hi, I'm using 2.0.14 when i copied the jars from the new distribution download i copied some plug-ins that caused these errors. the plugins are removed and everything is fine now. Greetings, Alexander Dave Newton schrieb: If the Spring plugin is on the classpath S2 will attempt to use it.

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
Then I'm out of ideas. Have you tried posting to the portlet-container mailing list? Nils-H On Tue, Jan 13, 2009 at 11:03 AM, Frank Otto wrote: > I have found out, that the attribute emptySessionPath is like this: > > > > > > > > But, it does not solve my problem. :

RE: JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread ravindra
*param in the struts.xml (???) The param should be the name of the list object which is used to generate the report.For example, You should have a List mypojoList; as a property in your database which is used to generate the data in the table list.You should populate the list object in you

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Frank Otto
I have found out, that the attribute emptySessionPath is like this: But, it does not solve my problem. :-( Nils-Helge Garli Hegvik schrieb: This one: https://portlet-container.dev.java.net/ ? Haven't tried it. Have you tried posting to their mailing list? Mayb

Action Form problem

2009-01-13 Thread Amol Londhe
Hi, We have a web application which is built over java 1.5,tomcat 5.5 and struts 1.2 and MySQl. Recently we have added a class, which does some formatting to all the string object in Action Form beans. What i would like to do is, when ever there is request submitted by the user to the weba

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
This one: https://portlet-container.dev.java.net/ ? Haven't tried it. Have you tried posting to their mailing list? Maybe the information at http://wiki.apache.org/portals/Pluto/InstallPlutoGlassfish could be relevant. Nils-H On Tue, Jan 13, 2009 at 10:25 AM, Frank Otto wrote: > The portlet and

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Frank Otto
The portlet and servlet are in the same war. I use glassfish with portlet container 1.0 for develop. I have read the emptySessionPath must be true for the connector (tomcat). How can I set this for classfish? Nils-Helge Garli Hegvik schrieb: Are both the portlet and the servlet in the same a

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Nils-Helge Garli Hegvik
Are both the portlet and the servlet in the same application (war file)? What container are you using? Nils-H On Tue, Jan 13, 2009 at 9:55 AM, Frank Otto wrote: > hi, > > I have a portlet with struts. It works fine, but I can't share objects in my > portlet session with the servlet/action for yu

Re: [S2] struts 2.1.3: share portlet session with servlet (yui ajax)

2009-01-13 Thread Frank Otto
hi, I have a portlet with struts. It works fine, but I can't share objects in my portlet session with the servlet/action for yui ajax calls. I set in my porlet struts 2 action an object in the portlet session: portletRequest.getPortletSession().setAttribute(MY_KEY, mySes

JasperReports Plugin:How to specify JDBC connection?

2009-01-13 Thread Rajeshwari Godbole
Hello, *Problem*: I created a .jrxml report template in iReports that is using an Oracle database to retrieve data. Now I want to plug in this report into a existing webapp using the Struts2 plugin. The webapp uses JDBC to connect to the database. I'm not able to figure out what value to use for t

Re: ArrayList in tag

2009-01-13 Thread Paweł Wielgus
Hi Sonu, this might help: http://struts.apache.org/1.3.10/struts-taglib/tagreference.html#html:optionsCollection Best greetings, Paweł Wielgus. 2009/1/12 Sonu S : > Hi all, > > I am using Struts 1.2. I have one ArrayList and one HashMap in my form bean. > Name of these collection are myList and m