Re: is this right?

2008-08-19 Thread ManiKanta G
Hi, Yeah, it is correct. And as of Struts2.1.x all the hyphenated names are converted to camelCase words... Better use redirectAction instead redirect-action. Regards, ManiKanta G Muralidhar Y wrote: Hi Friends, I want to redirect to an action and at the same time I want to set one of th

is this right?

2008-08-19 Thread Muralidhar Y
Hi Friends, I want to redirect to an action and at the same time I want to set one of the property of the class which is mapped with executePoPSearch.action how to do it? The following code is not working fine? It is trying to set the property in redirect action class. Thanks in advance. e

DoJo Plugin for struts 2.0.11

2008-08-19 Thread Narayana S
Hi, i am right now working on struts 2 tree component, as we have some issues with the events of this tree version, some where i found that using struts pojo plug-in will solve this issue, but i couldnt find any url to download the dojo plugin, can you please tell me how and where i can

Re: [OT] Re: sitemesh +yui problem

2008-08-19 Thread Jeromy Evans
Hardik Shah wrote: i can not get perfectly you ,can you be more descriptive about you say(what i have to do for this problem) You're welcome. Use the FireFox browser and install the FireBug extension. Load your page, open FireBug and view the Net tab. Determine whether error's occ

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Dustin Pearce
No, it will use reflection to find the property so typing is not the issue, I think. Have you tried to just print out the value of the state property with a tag? On Aug 19, 2008, at 10:22 AM, Ylva Degerfeldt wrote: Thanks for the tip, Dustin, but it's not working. Though, I omitted the "

Re: Struts 2.x Forwarding To A Page Securely

2008-08-19 Thread Randy Burgess
Hiding the URL, as in showing one URL but the browser is actually at another, would be the same as phishing. I'm not saying that is what you are trying to do but that is the end result of this. Regards, Randy Burgess Sr. Software Architect D5 Systems, LLC > From: Wes Wannemacher <[EMAIL PROTECTE

Re: Struts 2.x Forwarding To A Page Securely

2008-08-19 Thread Wes Wannemacher
There is a plugin to enforce SSL - http://code.google.com/p/struts2-ssl-plugin/wiki/HowToUse As far as hiding the URL, I don't know if I can help there. -Wes On Tue, 2008-08-19 at 20:07 -0500, Michael Finney wrote: > Hello. > > If I have built a URL, flow of control is in an action, and I w

Struts 2.x Forwarding To A Page Securely

2008-08-19 Thread Michael Finney
Hello. If I have built a URL, flow of control is in an action, and I want to send the user to another web application, how can I do that in a way such that the user cannot see the URL and is secure? Thanks, Mike -- Michael Finney - "Always Striving To Serve You Better Every Day" [EMAIL PRO

Struts 2.x Forwarding To A Page Securely

2008-08-19 Thread Michael Finney
Hello. If I have built a URL, flow of control is in an action, and I want to send the user to another web application, how can I do that in a way such that the user cannot see the URL and is secure? Thanks, Mike -- Michael Finney - "Always Striving To Serve You Better Every Day" [EMAIL PROTECTE

Re: URLEncoding a string

2008-08-19 Thread Oleg Mikheev
Dave Newton wrote: I'm pretty sure it's Struts 1, since there are both and tags. The answer, however, is probably the easiest. My bad :) I always keep forgetting that two Struts' share one mail list Oleg - To unsubscribe

Re: I18N issue in form tags

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, matthieu martin wrote: > It works perfectly, thank you very much ! > > 2008/8/19 Lukasz Lenart > > > label=" > > name='back.comment.search.author' > />" name="author"/> For completeness, the reason this doesn't work is because you can't nest custom tags like that; that woul

Re: how to use pager tag in struts2?

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Dustin Pearce wrote: > One way to fix this is to have a setter/getter for > maxPageItems on your action. That will put the submitted > maxPageItems on the ValueStack. Then in your jsp, just > before your pg:pager tag use: > > to make it accessible using JSTL EL. > > and t

Re: I18N issue in form tags

2008-08-19 Thread matthieu martin
It works perfectly, thank you very much ! 2008/8/19 Lukasz Lenart <[EMAIL PROTECTED]> > > > > Use instead > > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additio

Re: I18N issue in form tags

2008-08-19 Thread Lukasz Lenart
> Use instead Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

I18N issue in form tags

2008-08-19 Thread matthieu martin
Hi all, I have a simple issue. I've looked through the documentation and didn't find any samples nor explanations, so I'm turning myself to you guys. I want to internationalize my forms, so I something like this : Unfortunately, what I see in my browser as a label is : Why isn't it fetching

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Ylva Degerfeldt
Thanks for the tip, Dustin, but it's not working. Though, I omitted the "information" part because that was only meant to temporarily save a reference to the object that the Map returns - an object of type InfoObject which has get- and set methods for the property state. So I tried: but that st

Re: how to use pager tag in struts2?

2008-08-19 Thread Dustin Pearce
Most likely it is a problem on how you are handling the request in your action. Are you using the HttpServletRequestAware interface? Dave is right though, it is generally bad form to make your Actions ServletRequest dependent. One way to fix this is to have a setter/getter for maxPageItem

Re: [OT] Re: sitemesh +yui problem

2008-08-19 Thread Hardik Shah
hi first of all *sir* i really say to thanks about showing interst infact in past i have developed one app using struts 2+sitemesh +BIRT and i got lots of help from you and currently it is works fine Jeromy Evans - Blue Sky Minds wrote: > > It's really a sitemesh question. > > In sitemesh

[OT] Re: how to use pager tag in struts2?

2008-08-19 Thread Dave Newton
Isn't it "requestScope" for accessing request attributes? Not that this is Struts-related; if you're having problems with a third-party tag library you should seek support through whatever mechanism they provide, otherwise a generic JEE forum. IMO it'd be cleaner to expose an action property an

how to use pager tag in struts2?

2008-08-19 Thread red phoenix
I want to use Pager Tag Library2.0 in struts2,I set maxPageItems under struts2.0 action,like follows: request.setAttribute("maxPageItems","10"); return SUCCESS; then I use maxPageItems in JSP page,like follows: .. When I run above code,it raise error: 22: <%@ include file="/pages/commo

Re: URLEncoding a string

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Oleg Mikheev wrote: > Paolo Niccolò Giubelli wrote: >> > > What is your Struts 2 version? I thought that at some point > Struts 2 made it impossible to use JSTL expressions inside its > tags... But anyway URLEncoding cannot be done in JSTL. > You could use to assign your URL

[S2] Iterate through two lists

2008-08-19 Thread Milan Milanovic
-- View this message in context: http://www.nabble.com/-S2--Iterate-through-two-lists-tp19052842p19052842.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Dustin Pearce
Everything is fine except try: you don't need the %{#thisValue}, its already being evaluated. You also don't need the set, just navigate the object graph in your test. On Aug 19, 2008, at 5:43 AM, Ylva Degerfeldt wrote: Hi, First of all: This problem is about jsp tags. Secondly: This

Re: URLEncoding a string

2008-08-19 Thread Oleg Mikheev
Paolo Niccolò Giubelli wrote: What is your Struts 2 version? I thought that at some point Struts 2 made it impossible to use JSTL expressions inside its tags... But anyway URLEncoding cannot be done in JSTL. You could use to assign your UR

Re: DOJO Dialog Problem? Please help me

2008-08-19 Thread Dustin Pearce
It sounds like you want your iFrame to put up a modal? dialog on the page that contains the iframe? This can be difficult if the pages are served from different servers. You are getting into cross-site scripting issues. If I remember there are ways to sign or secure scripts these days so

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Dave Newton : --- On Tue, 8/19/08, Haulyn R. Jason wrote: When our client login our system, I can create a List contains privilege objects, it includes properties:action name and namespace, without a custom tag, how can I check whether this member should see the link? I mean, I do not know

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Ylva Degerfeldt
I tried to show the value of "information" using s:property but it didn't show anything. So there must be something wrong with my code. What's the right way to get an object instance from a Map (like this) and use one of its properties in S2? Please help! /Ylva On Tue, Aug 19, 2008 at 2:53 PM, D

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Haulyn R. Jason wrote: > When our client login our system, I can create a List > contains privilege objects, it includes properties:action > name and namespace, without a custom tag, how can I check > whether this member should see the link? I mean, I do not > know how to do

Why is session null only in TilesAction but not in other Actions?

2008-08-19 Thread fphan
I have some tiles defined like the following in tiles-defs.xml: myClasses.jsp: myClassesContent.jsp (content.personal.myClasses) makes use of the currentClasses.jsp (list.personal.current.classes): strut-config.xml: I have a filter that sets the session via the follow

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Dave Newton : --- On Tue, 8/19/08, Haulyn R. Jason wrote: And, where should I find something about how to create a custom tag for struts2? I think I need to create a custom tag for struts2 because I need to access the value stack. I would have guessed you kept your user object in sess

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Haulyn R. Jason wrote: > And, where should I find something about how to create a > custom tag for struts2? I think I need to create a custom > tag for struts2 because I need to access the value stack. I would have guessed you kept your user object in session, so there's no n

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Jeromy Evans : > Haulyn R. Jason wrote: > >> Hi,all >> I have an Authentication problem. I use Interceptor to authenticate >> actions and methods, based on different member and different role. >> Everything works well.But my client can not access some resource, for >> example a url, so they shou

URLEncoding a string

2008-08-19 Thread Paolo Niccolò Giubelli
This is my scenario: I'm url-rewriting my web application, so I'm putting some strings into the html:link href attributes, so to make my links more search-engine friendly. Obviously, those strings are retrieved from the database. An example follows:

Re: DOJO Dialog Problem? Please help me

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, prashanth2 <[EMAIL PROTECTED]> wrote: > I would like to know how and if it is possible to call a > dialog box from a iframe? Or have the dialog box pop out > from an iframe? and how can i pass variables from dialog > box to my struts action class, if so how to retrieve > them

[OT] Re: sitemesh +yui problem

2008-08-19 Thread Jeromy Evans
Hardik Shah wrote: i am trying to use several yui elements in strtus 2.0.11.2 problem is that it can not get its styles (for exp tab shows only in link format ,it can not use tabview.css) when i try to exclude action like cflist.do in decorators.xml then yui works fine (bt my constant view a

Re: DOJO Dialog Problem? Please help me

2008-08-19 Thread prashanth2
I would like to know how and if it is possible to call a dialog box from a iframe? Or have the dialog box pop out from an iframe? and how can i pass variables from dialog box to my struts action class, if so how to retrieve them in my action, do i need to get the values using "httpservletrequest"?

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Jeromy Evans
Haulyn R. Jason wrote: > Hi,all > I have an Authentication problem. I use Interceptor to authenticate > actions and methods, based on different member and different role. > Everything works well.But my client can not access some resource, for > example a url, so they should not see the url. I think

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Ylva Degerfeldt wrote: > > [...] > About the s:set tag, I'm not sure if that's the way to do it > but I don't know how to check if it's correct when debugging. Why not just display the contents of the variable you think you're setting? Dave

Re: Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Wes Wannemacher
Rather than rewrite s:a and s:url, why not wrap the display in an s:if test? It might be easier to abstract a test stating "is this user granted the appropriate authority" and just plug that into s:if -Wes On Tue, Aug 19, 2008 at 4:44 AM, Haulyn R. Jason <[EMAIL PROTECTED]> wrote: > Hi,all > I ha

[S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Ylva Degerfeldt
Hi, First of all: This problem is about jsp tags. Secondly: This is a problem which has several steps and I don't know which step I've done wrong so I'll just show you what I've tried to do: . Explanation: I iterate through a Set of Strings and call each

RE: Problem with no configaration found

2008-08-19 Thread Muralidhar Y
Thank you Jeromy. It worked. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536.7486) India Main: +91 9949495511 India Fax: +91 9949495522 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: - The information containe

sitemesh +yui problem

2008-08-19 Thread Hardik Shah
i am trying to use several yui elements in strtus 2.0.11.2 problem is that it can not get its styles (for exp tab shows only in link format ,it can not use tabview.css) when i try to exclude action like cflist.do in decorators.xml then yui works fine (bt my constant view also exclude) i can n

Authentication way: Should I interceptor or before it render?

2008-08-19 Thread Haulyn R. Jason
Hi,all I have an Authentication problem. I use Interceptor to authenticate actions and methods, based on different member and different role. Everything works well.But my client can not access some resource, for example a url, so they should not see the url. I think maybe I can re-write tag or usi