Re: Dynamic parameters in struts.xml

2007-05-01 Thread Marcin Zduniak
Thank you. I actually solved the problem. When I added another one parameter: true myParameter5 started working. Thanks. Marcin On 5/2/07, Laurie Harper <[EMAIL PROTECTED]> wrote: Marcin Zduniak wrote: > Hello everyone, > > I am using Struts2 and I am curious how to pass dynamic parameter >

Conditional validation

2007-05-01 Thread Zoran Avtarovski
Is there a way to setup conditional validation through the validation.xml file? I'm currently user the visitor validator method where my core user validation properties are in a User-validation.xml file. I want to be able to use this same file for all my user actions (register, add, update) and ju

Re: [OT] [S1] Application container during development for fastest code/test cycle?

2007-05-01 Thread Laurie Harper
Antony Stubbs wrote: We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common con

Re: [S2] populating user roles

2007-05-01 Thread Laurie Harper
Those are good pointers. The key is that it all depends on how you are handling authentication and authorization, since there are so many possible approaches. For example, if you use container managed security, setting up the roles is a matter of configuring your container appropriately. If yo

Re: Dynamic parameters in struts.xml

2007-05-01 Thread Laurie Harper
Marcin Zduniak wrote: Hello everyone, I am using Struts2 and I am curious how to pass dynamic parameter values to an action. I have following XML snippet: accountsList accountsList myValue

Re: utf-8 resource files in struts

2007-05-01 Thread Laurie Harper
zkn wrote: On 01.05.2007, at 17:01, Christopher Schultz wrote: It used to be that all .properties files had to be in ISO-8859-1 form, with escape sequences for non-Latin characters. ... But why do you say "had to be"? Is there other way to do it? Or may be just I didn't understand you. We t

Re: utf-8 resource files in struts

2007-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: > Thanks, that worked. > > But why do you say "had to be"? Is there other way to do it? Or may be > just I didn't understand you. Sorry for the confusion. I started that message before I did a bit of research and confirmed that it

Re: [S2] populating user roles

2007-05-01 Thread Zoran Avtarovski
To achieve this we wrote a custom AuthInterceptor which we added to the default stack, which adds some core authorisation functionality - add user object (with roles) to the session, add a custom user menu (based on roles) to the session and checks authorisation for the action. It's pretty straigh

Re: Tiles 2 woes

2007-05-01 Thread Dave Newton
For the sake of completeness, this appears to work fine. I can access values using the S2 tags from ValueStack from the tile's JSP, setting the values via either setValue() or push(). That said, given I'm not sure I see a huge advantage to doing so; I was thinking about this several months ago a

Re: utf-8 resource files in struts

2007-05-01 Thread Patrick J. Maloney
I found something nice about JBuilder (version 2006, anyway): If you paste cyrillic into a .props file and then save it, it will escape it for you (you don't see it until you reopen the file). Then, you just need to put UTF-8 in the HTML file.

Re: When will Struts 2.1 be released?

2007-05-01 Thread Alex Choi
Struts 2 version 2.0.6 is the current latest GA version. The Struts Project Management is using a Milestone Build system of numbering. This means GA or public release may skip version number if a build doesn't make the grade (acceptable Apache Struts Community Standards of quality). That build

Re: When will Struts 2.1 be released?

2007-05-01 Thread Patrick J. Maloney
Pedro Herrera wrote: when is 2.0.8 release coming up ? Tks Herrera 2.0.7 was released? Where do I get it? The apache.org site is showing 2.0.6 still. tia, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

ActionForm

2007-05-01 Thread Ashuin Sharma Chamorro
From: Ashuin Sharma Chamorro Sent: Tuesday, May 01, 2007 5:12 PM To: 'Struts Users Mailing List' Subject: ActionForm In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form,

Re: ActionForm

2007-05-01 Thread Paul Benedict
It lives in whatever scope you tell it :-) There is a scope parameter on the action tag. It defaults to session. Objects persist until the holder is thrownaway. For requests, objects in request scope are thrown out when the request is thrown out. Objects in the session are thrown out when the ses

ActionForm

2007-05-01 Thread Ashuin Sharma Chamorro
In which scope does the ActionForm lives??? In request or session?? Or what?? If in the Action Class I set some values to the form, do I have to add the form back to the request or what do I have to do so the success page will see the modified form??? Is it this scope ??(JSP ---for

[S1] Application container during development for fastest code/test cycle?

2007-05-01 Thread Antony Stubbs
We're developing a Struts application which will be deployed onto Websphere eventually. However, I find Websphere very heavy weight do use during development - publishing seems to take for ever, and seems as thought for many changes it must be restarted. What's a common container to use during d

[OT] Re: Integrating with other frameworks

2007-05-01 Thread Dave Newton
--- puchacz <[EMAIL PROTECTED]> wrote: > Yes it my homework! In that case I would consider thinking about the answer to these questions yourself for awhile: they are not particularly difficult. > >> 1.Could anybody explain me why it is good to > >> intagreate one framework with another? Here are

Re: Integrating with other frameworks

2007-05-01 Thread puchacz
Now I feel shame but I forgot about this. :) Sorry again! Musachy Barroso wrote: > > Dejavu? > > http://www.mail-archive.com/user@struts.apache.org/msg56310.html > > musachy > > On 5/1/07, puchacz <[EMAIL PROTECTED]> wrote: >> >> >> Sorry Dave but I didn't... >> >> And please don't tell me to

Re: Integrating with other frameworks

2007-05-01 Thread Musachy Barroso
Dejavu? http://www.mail-archive.com/user@struts.apache.org/msg56310.html musachy On 5/1/07, puchacz <[EMAIL PROTECTED]> wrote: Sorry Dave but I didn't... And please don't tell me to make a google searching , because If I could find this information I wouldn't be asked for help. Yes it my h

Re: [s2] is there an equivalent for the old html:multibox tag?

2007-05-01 Thread Allen Gilliland
Okay, I guess that s:checkbox can do what I want but I am having trouble getting the multiple values from the results of my checkboxes. So if I have this ... and in my action ... private String[] deleteIds = new String[0]; public String[] getDeleteIds(); public void setDeleteIds(Stri

Re: Integrating with other frameworks

2007-05-01 Thread puchacz
Sorry Dave but I didn't... And please don't tell me to make a google searching , because If I could find this information I wouldn't be asked for help. Yes it my homework! Dave Newton-4 wrote: > > Didn't you already ask about this two months ago? > > --- puchacz <[EMAIL PROTECTED]> wrote: >

Re: utf-8 resource files in struts

2007-05-01 Thread zkn
On 01.05.2007, at 17:21, Martin Gainty wrote: I found this helpful on understanding how cyrillic characters are represented thru Unicode http://en.wikipedia.org/wiki/Cyrillic_alphabet If you're using windows so You'll need to load Cyrillic Input MethodEditor http://www.microsoft.com/window

Re: utf-8 resource files in struts

2007-05-01 Thread zkn
On 01.05.2007, at 17:01, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to ad

Validation & Action Instantiation

2007-05-01 Thread stanlick
I am having a problem with an Action class when validation fails. A property that is being set in this Action via the hyperlink is being lost when validation intercedes and the Action is regenerated. Has anyone else observed this? Is there a way to "restore" the Action properties by way of conf

Re: [s2] is there an equivalent for the old html:multibox tag?

2007-05-01 Thread Allen Gilliland
actually, I did have trouble getting it to work but it doesn't really matter because that's not really what I am looking for. That tag will create a whole list of checkboxes, but what I really need is to create a single checkbox which is part of a list. It's a weird situation so it wouldn't r

Re: Integrating with other frameworks

2007-05-01 Thread Dave Newton
Didn't you already ask about this two months ago? --- puchacz <[EMAIL PROTECTED]> wrote: > 1.Could anybody explain me why it is good to > intagreate one framework with another? > 2. When it is useful? > 3. What gives it to the project? Is this your homework or something? d. __

Integrating with other frameworks

2007-05-01 Thread puchacz
1.Could anybody explain me why it is good to intagreate one framework with another? 2. When it is useful? 3. What gives it to the project? Thnx -- View this message in context: http://www.nabble.com/Integrating-with-other-frameworks-tf3676571.html#a10273717 Sent from the Struts - User mailing l

RE: Books & Reference Materia

2007-05-01 Thread Dave Newton
--- Richard Kroll <[EMAIL PROTECTED]> wrote: > I wondered if you were going to be on this list, > good to see you here! Musachy lives here; he's the man--working with him should be entertaining :) d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail h

RE: Books & Reference Materia

2007-05-01 Thread Richard Kroll
> Go for Struts 2, don't worry about Struts 1 too much. I'm allowed to say > this because I know we will be working together and we will be rewriting > everything on top of S2 very soon :) > > musachy I wondered if you were going to be on this list, good to see you here! I'll start focusing my at

Re: Books & Reference Materia

2007-05-01 Thread Musachy Barroso
Go for Struts 2, don't worry about Struts 1 too much. I'm allowed to say this because I know we will be working together and we will be rewriting everything on top of S2 very soon :) musachy On 5/1/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Martin Gainty <[EMAIL PROTECTED]> wrote: > I have

Re: [S2] populating user roles

2007-05-01 Thread Josh Vickery
The easiest way I've found to do this is to write a ServletFilter that wraps the HttpServletRequest with a class that implements the isUserInRole method based on your database roles from an object you populated and placed in the Session. Josh On 5/1/07, Flemming Seerup <[EMAIL PROTECTED]> wrote:

Re: Books & Reference Material

2007-05-01 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > I havent seen any Struts2 books out yet (anyone?) He specifically asked for S1 books. From: "Richard Kroll" <[EMAIL PROTECTED]> > I'm moving into a position that requires me to work > with S1. _Programming Struts_ and Struts in Action was my go-to

Re: Books & Reference Material

2007-05-01 Thread Martin Gainty
Hi Rich- I havent seen any Struts2 books out yet (anyone?) As a way to slowly introduce yourself to MVC you may want to consider 'Struts in Action' HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this ema

Books & Reference Material

2007-05-01 Thread Richard Kroll
Hello All, I'm moving into a position that requires me to work with S1. I have been toying with S1, but now that I will be required to work with it in a more day-to-day capacity, I am trying to get some opinions on good books / reference material. To date I have been using online resources to sl

[S2] populating user roles

2007-05-01 Thread Flemming Seerup
I would like to populate the user roles from a database during login, but have not found any examples how to do so in Struts2. I have found an example how to use RolesInterceptor to secure access to specific actions, but no hints on how to populate the roles. /Flemming -

Re: [BEER] Re: Books

2007-05-01 Thread Dave Newton
--- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > On Tue, May 1, 2007 11:43 am, Dave Newton wrote: > > He's probably talking about SiAv2. > Geez, you know your a geek when you see SiAv2 and > think it's an abbreviation for some sort of new > Aliens vs. Predator movie. :D > (of course, your an

Re: [BEER] Re: Books

2007-05-01 Thread Frank W. Zammetti
On Tue, May 1, 2007 11:43 am, Dave Newton wrote: > He's probably talking about SiAv2. Geez, you know your a geek when you see SiAv2 and think it's an abbreviation for some sort of new Aliens vs. Predator movie. Frank (of course, your an even BIGGER geek if you think it might actually not suck e

Re: [BEER] Re: Books

2007-05-01 Thread Frank W. Zammetti
No sir, Zathras says "not the one"! :) Frank (which I guess means you can surmise that not only will you not have to wait too long for S2 books, but you'll have choices to make too!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo

Re: [BEER] Re: Books

2007-05-01 Thread Dave Newton
--- Roger Varley <[EMAIL PROTECTED]> wrote: > On 27/04/07, Frank W. Zammetti wrote: >> I don't know what information I can or can't give >> out, so suffice it to say you won't be waiting too >> much longer for books specifically on S2... > Is this the one that you're hinting at He's probably talk

Dynamic parameters in struts.xml

2007-05-01 Thread Marcin Zduniak
Hello everyone, I am using Struts2 and I am curious how to pass dynamic parameter values to an action. I have following XML snippet: accountsList

Re: [BEER] Re: Books

2007-05-01 Thread Roger Varley
On 27/04/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: I don't know what information I can or can't give out, so suffice it to say you won't be waiting too much longer for books specifically on S2... and no, before anyone asks, I'm not writing one :) Is this the one that you're hinting at h

RE: [S2] w/ params?

2007-05-01 Thread Dave Newton
--- Paul <[EMAIL PROTECTED]> wrote: > Doh! Thanks once again Dave. Works now. :) I was thinking about getting "value is an Object!" as a tattoo, but that's a little esoteric, even for me. I settled for a couple of Post-It! (tm) notes. d. __ Do You

addFieldError and action tag in a JSP

2007-05-01 Thread Guillaume Carré
Hello, I use the action tag in a JSP: . When I submit from this JSP to another action, say target.action, and I meet addFieldError(...) in the execute() method of the target action, if I return to the JSP to display the field error message, all my code in the JSP doesn't have access anymore to t

RE: [S2] w/ params?

2007-05-01 Thread Paul
Ah! Doh! Thanks once again Dave. Works now. :) P. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 11:02 AM To: Struts Users Mailing List;Paul Subject: Re: [S2] w/ params? --- Paul <[EMAIL PROTECTED]> wrote: > value="add"/>'" > Value="Add"/> >

Re: [S2] w/ params?

2007-05-01 Thread Dave Newton
--- Paul <[EMAIL PROTECTED]> wrote: > value="add"/>'" > Value="Add"/> > > When viewing the page source after rendering should > it not read: > location.href='editAction.do?method=add' ? http://struts.apache.org/2.x/docs/tag-syntax.html Value is an object, so you'd probably want: That's proba

[S2] w/ params?

2007-05-01 Thread Paul
All, Quick question with S2 tags using . Have the following: '" Value="Add"/> When viewing the page source after rendering should it not read: location.href='editAction.do?method=add' ? Or is my understanding of the param tag incorrect and in this case do you need explicitly do location.href=

Re: Tiles 2 woes

2007-05-01 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Antonio -- Not directed towards me so I'm somewhat hesitant to answer given responses in the past, but: ./views/jsp/TagUtils.java: ValueStack stack = (ValueStack) req.getAttribute(ServletActionContext.STRUTS_VALUESTACK_KEY); Perhaps the stack is accessible

Re: Tiles 2 woes

2007-05-01 Thread stanlick
Antonio -- Does the ViewPreparer (aka Tiles Controller) has access to the OGNL stack? I am trying to figure out a way to push beans on the root of the tree (like S2 does) so the S2 custom tags will implicitly link up with them from my page parts. The only thing I have been able to figure out so

Tiles Controllers (preparer)

2007-05-01 Thread stanlick
How can I place a bean on the OGNL from within my Tiles Controller so that it's properties are available to the S2 custom tags? -- Scott [EMAIL PROTECTED]

Re: utf-8 resource files in struts

2007-05-01 Thread Martin Gainty
I found this helpful on understanding how cyrillic characters are represented thru Unicode http://en.wikipedia.org/wiki/Cyrillic_alphabet If you're using windows so You'll need to load Cyrillic Input MethodEditor http://www.microsoft.com/windows/ie/ie6/downloads/recommended/ime/default.mspx As

Re: utf-8 resource files in struts

2007-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ozkan, zkn wrote: > I'm trying to make a simple application that will support multiple > languages. It works fine when I add two latin resource files for example > _en and _fr. > But when I try to add _bg (Bulgarian, cyrillic) file which is saved as >

Re: s:url bug

2007-05-01 Thread MK Tan
Hi, From the constructed url I assume you refer the url like this: ">some message Try using , like this some text again AFAIK, will give you the correct url. HTH, MK Tan On 5/1/07, David Harland <[EMAIL PROTECTED]> wrote: Hi, I think I have found a bug with the url tag. If I have a url

utf-8 resource files in struts

2007-05-01 Thread zkn
Hello, I'm trying to make a simple application that will support multiple languages. It works fine when I add two latin resource files for example _en and _fr. But when I try to add _bg (Bulgarian, cyrillic) file which is saved as utf-8 the text is not correctly displayed on the site. I h

Struts2 - JSF Plugin in portal environment

2007-05-01 Thread Michael Bowman
Hello, I'm trying to get Struts2 working in a portlet environment... so far, so good. However, we have one portlet that requires the use of some 3rd party jsf components. So I've been trying to get the jsf plugin to work with the struts-portlet-default stuff. First thing I noticed, was that the j

Release date 2.0.7 ? 2.0.8?

2007-05-01 Thread David Harland
Hi Have you any probable release dates for the next version of struts 2. Thanks Dave. __ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Soluti

Re: [s2] Dreamweaver plugin for Struts 2?

2007-05-01 Thread Martin Gainty
Good Morning Jason Please let me know when you see a Struts Plugin as I would like to use it in Flash Last year I developed a handshaking for a set of libraries to be called from CF by use of object tag The documentation on using cfx:remote seems to be sparse and incomplete Thanks Martin This

Re: Jsp out to Persist

2007-05-01 Thread Lance
Ah... this is simpler then, I thought you were recording pages as users were viewing them. Do you need to be logged in to view the page? If yes, check out commons-httpclient, which will maintin cookies for you You will neeed to post to the login page then navigate to the page you want and save

Re: s:url bug

2007-05-01 Thread Nuwan Chandrasoma
Hi, I think there is a jira ticket for this, look at these links. it may help you. https://issues.apache.org/struts/browse/WW-1624 http://forums.opensymphony.com/thread.jspa?threadID=46866&tstart=0 Thanks, Nuwan. - Original Message - From: "David Harland" <[EMAIL PROTECTED]> To:

s:url bug

2007-05-01 Thread David Harland
Hi, I think I have found a bug with the url tag. If I have a url with 2 params I get %{msgUrl} gives /test/test!delete.action?lastPage=home&messageId=3851761 Am I doing something wrong? __ Ufi Limited Registered i

RE: Jsp out to Persist

2007-05-01 Thread nagesh.kumar
Thanks a lot buddy, I need to send a mail by using the same html generated by jsp just like your idea [save the file to the server] How can I implement this do u have any example where I can refer. Thanks & Regards Nagesh Reddy. -Original Message- From: Lance [mailto:[EMAIL PROTECTED

Re: When will Struts 2.1 be released?

2007-05-01 Thread Pedro Herrera
when is 2.0.8 release coming up ? Tks Herrera Musachy Barroso wrote: > > You should probably use 2.0.6, as there is no date set for 2.1 (has ever > been a date?). What problems are you referring to? There is a 2.0.8 > release > coming up. > > musachy > > On 4/30/07, Minerva CC <[EMAIL PROT

Re: Jsp out to Persist

2007-05-01 Thread Lance
Are you saving the file to the client or to the server? If you want the client to save the file, you can set the content disposition header... this will cause a file download dialog to appear response.setHeader("content-disposition", "attachment; filename=someFileName.html"); If you want t

Jsp out to Persist

2007-05-01 Thread nagesh.kumar
Hi All, I have a scenario like I need to persist or get stream of generated output JSP OUT PUT [HTML] I have flow like ACTION > JSP > gives HTML out oput to browser Now I need to persist this generated html from jsp to some file. How can I close this Please give me a solution Or How ca

Re: HELP!!

2007-05-01 Thread Nuwan Chandrasoma
i dont think so, there is some good learning stuff, you can start with this. http://struts.apache.org/2.x/docs/bootstrap.html http://www.infoq.com/articles/converting-struts-2-part1 Thanks, Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing Li

Re: HELP!!

2007-05-01 Thread Dave Newton
--- vikas rao <[EMAIL PROTECTED]> wrote: > well, yeah i am starting from scratch,just beginning > to learn struts, the thing is, i'd find it difficult > to get help from the internet and books if i have to > use the new version right? Depends. For Struts 2 the old WebWork in Action book is stil

Re: HELP!!

2007-05-01 Thread vikas rao
well, yeah i am starting from scratch,just beginning to learn struts, the thing is, i'd find it difficult to get help from the internet and books if i have to use the new version right? On 5/1/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- vikas rao <[EMAIL PROTECTED]> wrote: > I am using strut

Re: HELP!!

2007-05-01 Thread Dave Newton
--- vikas rao <[EMAIL PROTECTED]> wrote: > I am using struts 2.0.6... Yes, well, that will be an issue if you're trying to use the Struts 1 tags. If you're using Struts 2 you should use the Struts 2 tags. > u think its better i use the earlier version??? If you're starting from scratch I would

Re: 2 questions

2007-05-01 Thread Dave Newton
--- puchacz <[EMAIL PROTECTED]> wrote: > 2. I mean if this main forum for discusing Struts 1? > Laurie Harper wrote: >> This is the main forum for discussing the use of >> Struts, both the 1.x versions and the 2.x versions, So again, yes. d. __

Re: HELP!!

2007-05-01 Thread vikas rao
I am using struts 2.0.6...some of the sample tutorials i saw all deal with the 1.x versions, plus, the jar files which come along with the "lib" folder of the struts 2.0.6 version seem quite different from the 1.x versions...u think its better i use the earlier version??? On 5/1/07, Nuwan Chandra

Re: HELP!!

2007-05-01 Thread Nuwan Chandrasoma
hi, try this. and see. and you dont need to add any entry in your web.xml <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"; pref

Re: HELP!!

2007-05-01 Thread Nuwan Chandrasoma
what is the struts version you are using? Thanks, Nuwan. - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 01, 2007 4:40 AM Subject: HELP!! Hi, I am getting this exception: org.apache.jasper.JasperException: /index.jsp(9

RE: HELP!!

2007-05-01 Thread Raghupathy, Gurumoorthy
In your web.xml Try = /html /WEB-INF/tlds/struts-html.tld /nested /WEB-INF/tlds/struts-nested.tld /bean /WEB-INF/tlds/struts-bean.tld /logic /WEB-INF/tlds/struts-logic.tld

Re: First problem!

2007-05-01 Thread Sarish Jain
The tld would be automatically picked up if its under web-inf\tlfs.. Thats not the problem, the problem is that Just open that tld file and you would find the uri tag there, pick up that uri and put it in the jsp. <%@ taglib uri="" prefix="s" %> Hope i made sense.. Sarish On 5/1/07, vikas rao <[

Re: 2 questions

2007-05-01 Thread puchacz
Laurie I mean: 1. I mean that some of the companies build some tools for helping in working on project, or tell everybody around that this technologie is good :) 2. I mean if this main forum for discusing Struts 1? for example Spring has forum : forum.springframework.com , does Struts sth li