Re: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Alex Shneyderman
Thanks, Brad! Having said all of that, I've been able to get the zero config/codebehind working and (in Spring 2.5) component scanned Spring beans so that newly written Actions and DAOs require few annotations and no xml configuration. What other kind of problems have you had? How do I

s2: How do you format a date and use it as a param value in a s:url

2008-04-17 Thread David Harland
I have an action with a ListMessage messages. The Message class has a Date senddate. In my jsp I am iterating over the messages and want to create a s:url with a param of formatedDate but I want to set the value as a formatted version of senddate. I am presently adding a getFormattedDate method

Re: datetimepicker doesn't show up

2008-04-17 Thread Jeromy Evans
It looks right. Turn on debugging with s:head s:head theme=ajax debug=true/ and use the FireFox FireBug plugin to determine if it failed to find any resources. The template for the calendar is loaded via an ajax request. If that request fails you see nothing. tristan_colson wrote: I am

Re: Trouble executing scripts in returned ajax content

2008-04-17 Thread Jeromy Evans
It looks like you're doing everything okay (and well explained) If you enable debugging do you get any useful feedback ? s:head theme=ajax debug=true/ The complexity here is that Dojo must parse the response, extract the scripts, insert the html in the dom and then execute the scripts. If

exception in url tag.

2008-04-17 Thread zubair syed
Hi All, i have downloaded the 'Struts 2.0.11.1http://struts.apache.org/download.cgi#struts20111' distribution and trying to deploy application by following apache struts tutorial document . I got this exception due to var attribute missing in the url tag.* org.apache.jasper.JasperException*:

Re: s2: How do you format a date and use it as a param value in a s:url

2008-04-17 Thread Jeromy Evans
David Harland wrote: I have an action with a ListMessage messages. The Message class has a Date senddate. In my jsp I am iterating over the messages and want to create a s:url with a param of formatedDate but I want to set the value as a formatted version of senddate. I am presently adding a

logout when using j_security_check

2008-04-17 Thread temp temp
my application uses container managed security , j_security_check, we create session before user login so i dont want to call session.invalidate if users wants to logout is there anything i can do to logout user ? - Be a better friend, newshound, and

Re: logout when using j_security_check

2008-04-17 Thread Rishi Deepak
Hi, My project has the requirement to display the records in table and when i click on a particular row, the data would be displayed in the text boxes. I have applied Struts frame work and data is displayed in table, now any body can help how to show that data in textboxes on click to a record in

How to reflect table row data in the text boxes

2008-04-17 Thread Rishi Deepak
Hi, My project has the requirement to display the records in table and when i click on a particular row, the data would be displayed in the text boxes. I have applied Struts frame work and data is displayed in table, now any body can help how to show that data in textboxes on click to a record in

Re: logout when using j_security_check

2008-04-17 Thread Antonio Petrelli
Rishi Do not hijack others thread please. Create a new e-mail. Antonio 2008/4/17, Rishi Deepak [EMAIL PROTECTED]: Hi, My project has the requirement to display the records in table and when i click on a particular row, the data would be displayed in the text boxes. I have applied Struts

Re: struts2: sent value to freemarker template

2008-04-17 Thread zer0
I have the same trouble. Has anyone solve this problem ? Thanks, niels-15 wrote: I want to pass a value to my fielderror.ftl lik this: s:fielderror s:param name=foo value=bar/ /s:fielderror Does someone knows how to retrief the value in de template? ${parameters.foo}

Re: Problem with Select tag

2008-04-17 Thread Milan Milanovic
Hi, what is also wierd, if I put that array in the session in my Action class like this (in prepare method): Map session = ActionContext.getContext().getSession(); session.put(allRoles, allRoles); and then I change my .jsp to use this array from session: ... s:select id = roleChoose

Re: Trouble executing scripts in returned ajax content

2008-04-17 Thread Jukka Välimaa
Thanks for input, Yes, I have debug on. Interestingly enough, with firefox it gives me just this: DEBUG: Error running scripts from content However, I just noticed that with IE, I get this: DEBUG: Error running scripts from content:Could not complete the operation due to error 80020101 At the

Re: Problem with Select tag

2008-04-17 Thread Milan Milanovic
I solved the problem. It seems that I didn't called this action by using full URL with namespace. -- Sorry, Milan Milanovic - Original Message From: Milan Milanovic [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, April 17, 2008 3:03:35 PM

Tiles2 runtime definition

2008-04-17 Thread stanlick
I need to set a runtime tiles definition attribute using a value from the valuestack. From my research, the tiles-plugin result does not allow attributes to be configured. action name=wizard_* class=acme.action.wizard.Wizard method={1} result${nextPage}/result

notification on sccessful with login with j_security_check

2008-04-17 Thread temp temp
is there a way my application gets notified of successful login using j_security_check ? - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Re: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Guillaume Bilodeau
Hi Alex, You can declare your different interceptor stacks in different packages and then declare the parent package on the action like this: @ParentPackage(packageWithEmptyStack) public class FooAction ... Aside from bug WW-2170 and the repeated use of the @ParentPackage annotation, I prefer

Re: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Don Brown
The easiest solution is to simply return a ServletActionRedirectResult instance from your action method. Don On Wed, Apr 16, 2008 at 4:33 PM, Alex Shneyderman [EMAIL PROTECTED] wrote: I am using 2.0.11 it seems that I can not use action-redirect result type. I need to tag along a request

Re: Tiles2 runtime definition

2008-04-17 Thread Antonio Petrelli
2008/4/17, stanlick [EMAIL PROTECTED]: definition name=wizardPage extends=baseLayout put-attribute name=body value=???{nextPage}??? / /definition Use a ViewPreparer: http://tiles.apache.org/tutorial/advanced/preparer.html Antonio

RE: How to reflect table row data in the text boxes

2008-04-17 Thread Lalchandra Rampersad
You can simply create a javascript function that is called when the onClick or onSelect event of the table triggered. Saludos Lalchandra -Original Message- From: Rishi Deepak [mailto:[EMAIL PROTECTED] Sent: Thursday, April 17, 2008 5:05 AM To: user@struts.apache.org Subject: How to

RE: ServletRedirectActionResult - is there a way to set parameters?

2008-04-17 Thread Brad A Cupit
You can declare your different interceptor stacks in different packages and then declare the parent package on the action like this: @ParentPackage(packageWithEmptyStack) public class FooAction ... Guillaume is right. In 2.0.x when Actions are auto-discovered (via the actionPackages

Problem: Lost ActionMessages after redirect to another action

2008-04-17 Thread Marc Eckart
Hi, in some cases I redirect after one action instead to a jsp to another action. This works fine, but the action messages and action errors I want to display are lost. How can I store them over this action chain? Best regards, Marc

Re: Is there such a thing as flash in S2?

2008-04-17 Thread Guillaume Bilodeau
Hi Ian, First let me congratulate you on your Struts2 book, I honestly think it's one of the best technical books I've read in a while: it's thorough, practical and tackles every day issues. Kudos to you! About that WebWork flash interceptor, it seems to me that it's not that useful. AFAICT

double mails

2008-04-17 Thread Lalchandra Rampersad
Most posts arrive to my mailbox twice. Does anybody know why? Saludos Lalchandra

[OT] Re: double mails

2008-04-17 Thread Dave Newton
--- Lalchandra Rampersad [EMAIL PROTECTED] wrote: Most posts arrive to my mailbox twice. Does anybody know why? I don't know why, but I also get an unusual number of duplicate messages (same IDs). Dave - To unsubscribe,

Re: Is there such a thing as flash in S2?

2008-04-17 Thread Ian Roughley
Your right. The flash interceptor is more for the benefit of the next JSP page (i.e. redirect after post pattern) and not for accessing data in the current action. For this scenario you can use the chaining interceptor/result type - match setters on the current action with getters from the

RE: Is there such a thing as flash in S2?

2008-04-17 Thread Brad A Cupit
What would be great is if an interceptor would inject all properties that are shared by the previous and the current action (by name? by type?) in the current action, in a similar fashion to HTTP parameter injection. If you use an ActionChainResult it will automatically do this, but action

Re: return Result instantiated within Action

2008-04-17 Thread Don Brown
On Fri, Apr 18, 2008 at 1:22 AM, Brad A Cupit [EMAIL PROTECTED] wrote: I've tried that myself as it seemed a very clean way of returning a result, but I get a NullPointerException since the ActionMapper isn't set on the Result. snip / Can you think of any way that the actionMapper could

Re: Tiles2 runtime definition

2008-04-17 Thread stanlick
Right on Antonio! Can you tell me how to fish the web context root from the Preparer? I need to construct the page location from this and the nextPage itself. Is there a list of key names someplace? Finding this bit of data or that on the stack is typically where productivity takes a nosedive.

JasperReports in Struts2

2008-04-17 Thread aum strut
Hi Friends, I have tried jasperreports in simple web application using jsp, servlets, it works fine. Now I need to implement jasperreports in struts2 application but its not working. Currently it is displaying blank report. Please guide me in this regard. Any gud reference related to

Re: Validation of Struts XML files

2008-04-17 Thread Laurie Harper
Looks like a simple versioning error to me; you're doctype declaration: !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.3//EN http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd; But you said: But, the

Re: JasperReports in Struts2

2008-04-17 Thread Dave Newton
--- aum strut [EMAIL PROTECTED] wrote: Now I need to implement jasperreports in struts2 application but its not working. Currently it is displaying blank report. Any exceptions? Without *any* information, as usual, it's impossible to help.

Re: logout when using j_security_check

2008-04-17 Thread Laurie Harper
temp temp wrote: my application uses container managed security , j_security_check, we create session before user login so i dont want to call session.invalidate if users wants to logout is there anything i can do to logout user ? If you don't invalidate the session, it will still contain

RE: return Result instantiated within Action

2008-04-17 Thread Brad A Cupit
Ah, good point. Yes, please file this as a request, as it should be pretty easy to do and would make things much easier. done, thanks! automatically set ActionMapper for ServletRedirectResult https://issues.apache.org/struts/browse/WW-2598 Brad Cupit Louisiana State University - UIS

Re: datetimepicker doesn't show up

2008-04-17 Thread tristan_colson
I tried adding the debug=true, and got the following error when it rendered my JSP: FATAL exception raised: Could not load 'struts.widget.Bind'; last tried '__package__.js' Googling this leads me to believe that perhaps some libraries aren't playing well together. Here are the other libraries

Re: Is it possible to make a pop up window using Struts?

2008-04-17 Thread Randy Burgess
In my example the popup window didn't do any processing because it is a ForwardAction (org.apache.struts.actions.ForwardAction), the view just got some values that were either in the session or passed on the query string. If your form bean is configured properly the values from the query string

Re: datetimepicker doesn't show up

2008-04-17 Thread Dave Newton
Prototype doesn't play nicely with much of anything. You'll most likely need to load Prototype last and hope for the best; an older application of mine used both and that was how I worked around it. That said, I don't particularly recommend mixing Prototype with much of anything else because of

help to solve Could not find property [theme],, etc

2008-04-17 Thread Eduardo Solanas
im using lastest struts 2.1 test release and pre test release and the problem is the same, im getting errors in console like : Could not find property [.freemarker.RequestParameters] Could not find property [templateDir] Could not find property [org.apache.catalina.jsp_file] etc my project starts

Re: Tiles2 runtime definition

2008-04-17 Thread Antonio Petrelli
2008/4/17, [EMAIL PROTECTED] [EMAIL PROTECTED]: Right on Antonio! Can you tell me how to fish the web context root from the Preparer? I need to construct the page location from this and the nextPage itself. Is there a list of key names someplace? Finding this bit of data or that on the

Re: Problem: Lost ActionMessages after redirect to another action

2008-04-17 Thread Antonio Petrelli
2008/4/17, Marc Eckart [EMAIL PROTECTED]: This works fine, but the action messages and action errors I want to display are lost. How can I store them over this action chain? You can store them in the request scope, just as a normal attribute. Antonio

RE: Is there such a thing as flash in S2?

2008-04-17 Thread Guillaume Bilodeau
I'm aware of the chain result but I'd prefer to stick to the redirect result. This hypothetical flash result could list the properties that should survive the redirect, so I think we would avoid the problem with the CGLIB proxy. I'll investigate writing such a result / interceptor pair. I

Re: Tiles2 runtime definition

2008-04-17 Thread stanlick
I think the tiles definition attributes should be exposed through the tiles-plugin XML file. My Wizard action is setting the nextPage so this would eliminate the need to write a ViewPreparer to set the jsp in the tiles definition. I am now meddling around in the Preparer trying to construct the

RE: Is there such a thing as flash in S2?

2008-04-17 Thread Brad A Cupit
This hypothetical flash result could list the properties that should survive the redirect snip/ I'll investigate writing such a result / interceptor pair. Wouldn't that be the same as the ServletActionRedirectResult, where param values can be ognl expressions? (assuming a version of struts

RE: How to reflect table row data in the text boxes

2008-04-17 Thread Rishi Deepak
Thanks Sir, I will apply.. --- Lalchandra Rampersad [EMAIL PROTECTED] wrote: You can simply create a javascript function that is called when the onClick or onSelect event of the table triggered. Saludos Lalchandra -Original Message- From: Rishi Deepak [mailto:[EMAIL PROTECTED]