Help! : ResultSet is from UPDATE. No Data.

2009-01-30 Thread anubisza
Hi All, I have a website written using Struts 2, on a MYSQL database, using Hibernate.. I have a search function which calls a stored procedure in the database (search_SP), which accepts 1 parameter (the text entered in the form field), which in turn populates from a View. When I submit a

Re: What's the best alternative after Struts2 Dojo PlugIn deprecate?

2009-01-30 Thread Ralf Fischer
On Fri, Jan 30, 2009 at 12:25 AM, Becky.L.O'sulli...@healthnet.com wrote: We use Eclipse, but there's no IDE setup necessary and no special IDE plugins. The beauty of GWT is it's all Java, so you just drop in the GWT JARs and start using the APIs. Naturally there's a bit of a learning

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-30 Thread mleneveut
I put some @Conversion(), @Element(value = java.lang.Long.class) and @TypeConversion(rule = ConversionRule.COLLECTION, converter = java.lang.Long) in my Action and it's not working better. So I set the convertion in a properties file with : Element_idsCommerciaux=java.lang.Long and it is

Re: Help! : ResultSet is from UPDATE. No Data.

2009-01-30 Thread Nils-Helge Garli Hegvik
I don't think this has anything to do with Struts 2. You might have better luck posting to a hibernate or mysql forum. Google might help as well: http://www.google.com/search?q=ResultSet+is+from+UPDATE.+No+Data Nils-H On Fri, Jan 30, 2009 at 10:00 AM, anubisza anubi...@yahoo.co.uk wrote: Hi

Re: persisting data across different form

2009-01-30 Thread Paweł Wielgus
Hi, first consider one common form for this two actions maybe they have more in common. Then You can append this x value to redirection params and set it for second action/form, last thing I would do would be session. Best greetings, Paweł Wielgus. 2009/1/30 overtakerx overta...@gmail.com: Hi

Re: Random ClassCastException : I'm expecting Long, Struts gives me String on some servers...

2009-01-30 Thread Ralf Fischer
On Fri, Jan 30, 2009 at 10:10 AM, mleneveut mlenev...@abusinessware.com wrote: I put some @Conversion(), @Element(value = java.lang.Long.class) and @TypeConversion(rule = ConversionRule.COLLECTION, converter = java.lang.Long) in my Action and it's not working better. So I set the convertion

Re: Upgrading Struts 2

2009-01-30 Thread Sergio Italiani
It turns out that the problem I was having - had nothing to do with type conversion. The problem was a chunk of my code that was responsible for formatting. Specifically, the exception IllegalArgumentException: Cannot format given Object as a Number was thrown because of s:text name=format.money

Re: having trouble with type conversion in struts 2.1.6

2009-01-30 Thread Sergio Italiani
It turns out that the problem I was having - had nothing to do with type conversion. The problem was a chunk of my code that was responsible for formatting. Specifically, the exception IllegalArgumentException: Cannot format given Object as a Number was thrown because of s:text name=format.money

Re: Help! : ResultSet is from UPDATE. No Data.

2009-01-30 Thread anubisza
Thanks, I have posted to a Hibernate and MySql forum as well, with the hope someone might help! I've pretty much exhausted google trying to find a solution, it's really doing my head in. oh well, fingers crossed someone has encountered this before! Chris -- View this message in context:

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
It turns out that the problem I was having - had nothing to do with type conversion. The problem was a chunk of my code that was responsible for formatting. Specifically, the exception IllegalArgumentException: Cannot format given Object as a Number was thrown because of s:text name=format.money

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
It turns out that the problem I was having - had nothing to do with type conversion. The problem was a chunk of my code that was responsible for formatting. Specifically, the exception IllegalArgumentException: Cannot format given Object as a Number was thrown because of s:text name=format.money

Re: Struts 2 Type conversion refuses 0.0 for a double?

2009-01-30 Thread san-ho-zay
Thanks for your reply Lukasz. In practice, I should use BigDecimal to avoid rounding problems but it doesn't change the fact that 0.0 shouldn't be thrown up as an invalid conversion for a double. This works perfectly well, so I can't understand why Struts2 throws 0.0 out as an error ... public

DefaultActionInvocation exception

2009-01-30 Thread J D
I need some help figuring out where I need to search for the problem below. I have a jsp input.jsp which calls display.jsp on click of submit. display.jsp can also be called directly using search. A URL in display.jsp does not work when it is being redirected from input.jsp but works when

[S2] Customizing Struts JSON Plugin response

2009-01-30 Thread alee amin
I am using JSON plugin in Struts 2 for writing a resoponse. the plugin is generating the response perfectly. however, this is Google Visulization API demand that there should be a string wrapping the JSON response. like the one mentioned below. google.visualization.Query.setResponse(JSON

How to stop action getting called on click of refresh button

2009-01-30 Thread Parvat Singh Ranawat
Hi, Can I stop the calling of action on click of refresh button as on this action it will generate a report at some specified location. So on every refresh click will generate a new report at that location which is unacceptable. So is there any way to stop calling the action/ have one flag on

Re: Struts 2.1.6, Sitemesh FreeMarkerPageFilter

2009-01-30 Thread Markus Doring
Not sure what the new ones are, but my Maven dependency uses version 2.1.6 of the struts2 sitemesh plugin: code dependency groupIdorg.apache.struts/groupId artifactIdstruts2-sitemesh-plugin/artifactId version${struts.version}/version /dependency ...

checkboxes

2009-01-30 Thread Reinhard Wagner
Hi. I do have 2 lists in my formbean, one for the checkoxtypes[A,B,C,D] and one for knowing which checkbox is on / off [checkboxstate] In my jsp I do iterate over the checkboxtypes List and for every checkboxtype I generate a struts:checkbox with property set to checkboxstate[index] and value

Re: How to stop action getting called on click of refresh button

2009-01-30 Thread Ralf Fischer
On Fri, Jan 30, 2009 at 11:33 AM, Parvat Singh Ranawat mailtopar...@gmail.com wrote: Hi, Can I stop the calling of action on click of refresh button as on this action it will generate a report at some specified location. So on every refresh click will generate a new report at that location

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
Hi Wes, No, I'm not using Spring at all. The Action never passes the test of being an instanceof Parseable. If I make the action only implement SessionAware, and test if my action is an instanceof SessionAware, the test is never passed! Colour me confused! Andy. On 30 Jan 2009, at

How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Seshagiri V
Hellow All, I have a page with two forms on it. I want the respective submit buttons of each form to appear next to each other, inline, so I set style=display: inline; on each form but it is not working. Please help me. Thank you, Seshagiri V seshagi...@kensium.com.

Re: Casting an action to an interface

2009-01-30 Thread Nils-Helge Garli Hegvik
Do you really need the first cast to Action? Anyway, could it be that you're having conflicting struts and/or application jars several places in your classloader hierarchy? That could explain certain should never happen incidents... Nils-H On Fri, Jan 30, 2009 at 12:39 PM, Andy Sykes

Re: How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Nils-Helge Garli Hegvik
I'm pretty sure that providing some relevant code snippets would improve your odds of getting help... Nils-H On Fri, Jan 30, 2009 at 1:00 PM, Seshagiri V seshagi...@kensium.com wrote: Hellow All, I have a page with two forms on it. I want the respective submit buttons of each form to

Re: checkboxes

2009-01-30 Thread Sébastien Domergue
Hi, We had the same problem with a checkboxlist. Actually, a html checkbox does not send a data if it's unchecked. In a simple form, no data means false so we don't see anything. In a list, that means there are only the number of true which correspond to the number of checkbox checked. In

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
No, I don't 'need' the cast to Action. However, if I cast what I get back from ActionInvocation.getAction() straight to SessionAware or similar, it still chucks a CCE. I'm using Netbeans, and I'm pretty sure there's no crazy stuff going on with the classloader - all my struts jars are in

Multiboxes - How to show the selected ones ?

2009-01-30 Thread Renatinha
Hi all, I have a team form and a member form, team contains members. In my members jsp, I want to show checkboxes with the possible members and I want to show the already members as checked checkbox. I am doing something wrong , because its not working… Can someone help me ?

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
I dug around in the ServletConfig interceptor and modified my code to mimic how it handles this situation - retrieve the Action as an Object type, test for instanceof Interface, the cast to it. For some reason, that still does not work. As a test case, I'm mimicking the code exactly. My

Re: [S2] Customizing Struts JSON Plugin response

2009-01-30 Thread Musachy Barroso
search for JSONP in the plugin documentation. musachy On Fri, Jan 30, 2009 at 5:25 AM, alee amin mailing.list.mail...@gmail.com wrote: I am using JSON plugin in Struts 2 for writing a resoponse. the plugin is generating the response perfectly. however, this is Google Visulization API demand

Re: Struts 2.1.6, Sitemesh FreeMarkerPageFilter

2009-01-30 Thread Musachy Barroso
The new ones are: filter filter-namestruts-prepare/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter/filter-class /filter filter filter-namestruts-execute/filter-name

Re: checkboxes

2009-01-30 Thread Reinhard Wagner
Hi. First of all: Thx u ! I thought about your advice this week but wanted to know whether there are solutions without javascript, guess I found the simplest method, although I don't know whether it's common practise with struts. have u ever tried to do it like this : ? html:checkbox

Re: Casting an action to an interface

2009-01-30 Thread Musachy Barroso
I am putting my money on different class loaders. That is easy to test, get the class loader from your action, and the class loader from the current class (interceptor or whatever) and see if their object id is the same. musachy On Fri, Jan 30, 2009 at 8:13 AM, Andy Sykes a.sy...@ucl.ac.uk

Re: DefaultActionInvocation exception

2009-01-30 Thread Dave Newton
As I said on JavaRanch you'll need to post at least the configs. Dave J D wrote: I need some help figuring out where I need to search for the problem below. I have a jsp input.jsp which calls display.jsp on click of submit. display.jsp can also be called directly using search. A URL in

Re: Struts 2.1.6, Sitemesh FreeMarkerPageFilter

2009-01-30 Thread Dave Newton
I think Musachy means with the ng filter instead of the old FilterDispatcher. Dave Markus Doring wrote: Not sure what the new ones are, but my Maven dependency uses version 2.1.6 of the struts2 sitemesh plugin: code dependency groupIdorg.apache.struts/groupId

Re: How to two form tags inline(submit buttons of each form to appear next to each other)

2009-01-30 Thread Dave Newton
Use theme=simple on the tags to they don't generate the table markup, and put them in table markup of your own. Dave Seshagiri V wrote: Hellow All, I have a page with two forms on it. I want the respective submit buttons of each form to appear next to each other, inline, so I set

Re: Casting an action to an interface

2009-01-30 Thread Dave Newton
If you have a small project you could host somewhere that might help, or just zip up all the source. Clearly this can't happen (ignoring for the moment that it is), but the framework obviously relies on this working so I'd have to assume something funky is going on. Dave Andy Sykes wrote: I

Re: Casting an action to an interface

2009-01-30 Thread Andy Sykes
I'd love to zip up the whole project and stick it somewhere but it's pretty dependent on the environment I'm running it in (LDAP server for auth, etc etc). I could probably produce a neutered version of it that'll run anywhere, but it'll take a while as it's quite big.. As for

Re: Casting an action to an interface

2009-01-30 Thread Nils-Helge Garli Hegvik
Have you tried using reflection to dump all the interfaces (and corresponding classloaders) the action implements? Obviously, this shouldn't be possible under normal circumstances... Or if you're using maven 2, try running the app with the maven jetty plugin (or if you're not, deploy to a

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
Ok, I downloaded a sample application for Sruts 2 from manning .com for StrutsInAction. I still get the same error on the web server. When open http://localhost:8080/SampleApplication/Menu.action; for a moment the page says ...One moment please.. and then dumps the error. HTTP Status 500

Maven and Struts 2 Stack

2009-01-30 Thread stanlick
Greetings -- I am SO DONE with mucking around in dependencies that I am about to scream! Until recently, I thought real developers were in control of jars and the classpath, but as another year passes me by, I'm starting to rethink this whole deal. I installed the Maven 2 plug-in for Eclipse

Re: Struts-tag ?

2009-01-30 Thread SanJ.SANJAY
Sapmle application that is available for download for struts 2 in action, is really painful to install. There is no proper instruction in the book on how to install it and there are many issues when we try to do it ourself. Sometimes I feel so frustrated about buying this book... SanJ.SANJAY

Re: Maven and Struts 2 Stack

2009-01-30 Thread Musachy Barroso
Wes has a bunch of examples that you can use as templates. I am trying to find the link, but failing so far. Wes, are you out there? musachy On Fri, Jan 30, 2009 at 12:14 PM, Edwin Quita edwin.qu...@gmail.com wrote: hi Scott, here's the first project i created using struts2 and Maven... just

Re: Maven and Struts 2 Stack

2009-01-30 Thread Musachy Barroso
This should(might) also help: http://struts.apache.org/2.x/docs/struts-maven-archetypes.html musachy On Fri, Jan 30, 2009 at 12:20 PM, Musachy Barroso musa...@gmail.com wrote: Wes has a bunch of examples that you can use as templates. I am trying to find the link, but failing so far. Wes, are

Re: Struts-tag ?

2009-01-30 Thread Musachy Barroso
As Wes suggested get the blank application from the demo zip: http://struts.apache.org/download.cgi#struts216 also, the instructions on what needs to be done to get the samples of Struts 2 in Action running are in the README.txt file inside the download. musachy On Fri, Jan 30, 2009 at 12:05

Re: Maven and Struts 2 Stack

2009-01-30 Thread Dave Newton
stanlick wrote: I am SO DONE with mucking around in dependencies that I am about to scream! Until recently, I thought real developers were in control of jars and the classpath, but as another year passes me by, I'm starting to rethink this whole deal. I installed the Maven 2 plug-in for

textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
Hi! I need to display a textbox, where the user should write a money value in eur. I need the textbox to display the default value in the correct currency mode, like 0,00 (comma separated decimals) and not 0.0. Of course, the textbox is connected with a float field. Now I get 0.0 as the default

RE: textbox showing currency default value

2009-01-30 Thread Zheng, Qiang
You can try load the locale of this user and Format currencyformat = NumberFormat.getCurrencyInstance(locale); Return currencyformat.format(amount); -Original Message- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30, 2009 1:54 PM To:

Re: textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
Sorry, I don't understand from where I should return what. I have a Form with a float m_price = 0.0 field (wit accessors methods). In the jsp I have html:text name=m_price / I need to se a textbox like this || | 0,00 | || Thanks anyway.

struts2 and tiles

2009-01-30 Thread Tom Pop
Hello, please, can you show me on this example how to convert tiles from struts1 to struts2? This example defines localized page title attribute passed to template in struts1: bean:define id=messages name=%= org.apache.struts.Globals.MESSAGES_KEY %

Re: textbox showing currency default value

2009-01-30 Thread Paolo Niccolò Giubelli
sorry... I meant html:text property=m_price/.. I'm really tired...:D Paolo Niccolò Giubelli ha scritto: Sorry, I don't understand from where I should return what. I have a Form with a float m_price = 0.0 field (wit accessors methods). In the jsp I have html:text name=m_price / I need to se a

RE: textbox showing currency default value

2009-01-30 Thread Zheng, Qiang
You need to implement that in action. -Original Message- From: Paolo Niccolò Giubelli [mailto:paoloniccolo.giube...@itestense.it] Sent: Friday, January 30, 2009 2:26 PM To: Struts Users Mailing List Subject: Re: textbox showing currency default value sorry... I meant html:text

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-30 Thread Becky . L . O'Sullivan
Because Showcase is so packed with goodies something else may be causing chaining to actually work. If you try that test case standalone (after modifying the POM XML for 2.1.6) chaining doesn't work (the value stays the initial value). -B

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-30 Thread Becky . L . O'Sullivan
I forgot to mention that we're setting the test value in struts.xml initially (in the first action in the chain). That's the value that doesn't get modified in this test case. -B Musachy Barroso

Re: Maven and Struts 2 Stack

2009-01-30 Thread Wes Wannemacher
http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk Scott, you should have been able to find that ;) -Wes On Fri, Jan 30, 2009 at 12:22 PM, Musachy Barroso musa...@gmail.com wrote: This should(might) also help: http://struts.apache.org/2.x/docs/struts-maven-archetypes.html

trouble deploying struts2 app to tomcat 1.5.0.05

2009-01-30 Thread Wick, Dan
All, I've developed an application using struts2 (2.0.12 to be exact). It works on my local windows box, on Tomcat via Eclipse, but not as a war when I put it up on a server. I get the following stack, which I can't see anything wrong...although I'm sure it's something I did!

Re: trouble deploying struts2 app to tomcat 1.5.0.05

2009-01-30 Thread Dave Newton
You've un-zipped the war to confirm the libs are actually in there? Dave Wick, Dan wrote: All, I've developed an application using struts2 (2.0.12 to be exact). It works on my local windows box, on Tomcat via Eclipse, but not as a war when I put it up on a server. I get the following

Re: trouble deploying struts2 app to tomcat 1.5.0.05

2009-01-30 Thread Lukasz Lenart
2009/1/30 Wick, Dan dan.w...@donaldson.com: I've developed an application using struts2 (2.0.12 to be exact). It works on my local windows box, on Tomcat via Eclipse, but not as a war when I put it up on a server. I get the following stack, which I can't see anything wrong...although I'm

[S2] Passng a parameter with (multiple) Submit buttons

2009-01-30 Thread Greg Lindholm
I have a CRUD action and jsp page for an entity, this entity has a list of attributes. I display these attributes in a table one per row. What I would like to do is have a s:submit action=removeAttr/ button on each row of the table so the user can click on the button to remove the attribute. In

RE: trouble deploying struts2 app to tomcat 1.5.0.05

2009-01-30 Thread Wick, Dan
The jars that end up in the war file on the server match exactly what's in my build path jars in eclipse, less servlet.jar jre. I use ant to build it, so there are excludes for the jre, servlet.jar, etc. --Dan -Original Message- From: Lukasz Lenart

Struts 2 and Command chains

2009-01-30 Thread Struts Two
Since I have moved to struts 2, It has been somehow hard for me to forgo the simplicity offered by combining struts 1.2+ and Apache common chains. In a number of projects [medium sized to large] I managed to get away only with ONE single action class for the whole project. Just consider the

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-01-30 Thread Miguel
You can use the method attribute in the s:submit button, combined with a method in your action. You could use the different method invocation as an implicit parameter. You may need to use the action wildcard feature in struts.xml Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco

Re: [S2] Store a request and invoke it later

2009-01-30 Thread Andreas Mähler
Hello Ralf, sorry for not replying earlier. I have to check the list more frequently. Ralf Fischer schrieb: Hint: storing *everything* into the session might be unwise in some circumstances, as all resources on a server are limited, even cheap memory. everything == everything that is

RE: trouble deploying struts2 app to tomcat 1.5.0.05

2009-01-30 Thread Martin Gainty
we can be of more assistance if you send us the .project Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and

[S2] Form input result results in jsp s:actions being forced to use input result as well?

2009-01-30 Thread David Erickson
Hi all, I have a form that I am submitting, the form returns the input result which points to a jsp that contains an interior s:action tag that loads some data for display into its own jsp rendered inside (menu). I have noticed that when the form fails and the input result is called, the s:action

validation with simple theme

2009-01-30 Thread Srikanth Goud
Hi, My requirement is fieldError should appear below/above respective fields. for that i written the following code:- td s:textfield name=first label=First s:fielderror s:paramfirst/s:param