doesn't have attribute in the tld.

2008-04-17 Thread zubair syed
Hi All, the documentation or strut 2 core say has a var as attribute . but the tld doesn't define the var attribute. please advice what is correct one. Regards, Zuber

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

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 >> >> 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 strut

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 U

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 suppo

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: 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

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 a

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 t

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 sho

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: 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: 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 a

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. http://struts.apache.org/2.x/docs/jasperreports-pl

Re: Validation of Struts XML files

2008-04-17 Thread Laurie Harper
Looks like a simple versioning error to me; you're doctype declaration: > > "-//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 struts-config_1_3.dtd is not in the struts

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 struts2+jasp

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.

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. > > Can you think of any way that the actionMapper could

return Result instantiated within Action

2008-04-17 Thread Brad A Cupit
[creating a new thread so as not to hijack the "ServletRedirectActionResult - is there a way to set parameters?" thread] Don Brown said: >> The easiest solution is to simply return a >> ServletActionRedirectResult instance from >> your action method. I've tried that myself as it seemed a very cle

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 ac

Re: double mails

2008-04-17 Thread Vivek Rana
Could it be that you've registered twice under different email addresses and the second email server is set to forward the mails to the first? :) Lalchandra Rampersad wrote: Most posts arrive to my mailbox twice. Does anybody know why? Saludos Lalchandra -

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 pr

[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, e-

double mails

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

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 it

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: 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 actionPacka

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 refle

Re: Tiles2 runtime definition

2008-04-17 Thread Antonio Petrelli
2008/4/17, stanlick <[EMAIL PROTECTED]>: > > > > Use a ViewPreparer: http://tiles.apache.org/tutorial/advanced/preparer.html Antonio

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 p

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

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.

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. ${nextPage} Can someone help me

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 Sent: Thursday, April 17, 2008 3:03:35 PM Subject: Re: Problem with Se

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 mo

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: ... ... I got the same error (as I

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: > > > > > > > > Does someone knows how to retrief the value in de template? > > ${parameters.foo} > > gives me the error: > freemarker.c

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

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 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

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 kn

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 List 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 getFormatte

exception in url tag.

2008-04-17 Thread zubair syed
Hi All, i have downloaded the 'Struts 2.0.11.1' 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*: /H

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 ? 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 you include an alert in an inli

Re: datetimepicker doesn't show up

2008-04-17 Thread Jeromy Evans
It looks right. Turn on debugging with s:head 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 trying to use s:datetimepicker.

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 List 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 which is u

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