XWORK2/struts2 logs out Unable to find text for key

2007-09-18 Thread Adrian Ost
I use struts 2.0.9 and the s:i18n-Tag and s:text to get values from a resource bundle. My jsp-pages get rendered the correct way, but it happens more often that somehow my resource bundle gets lost during writing the response. The result is a page where my text, at the beginning, consists of the

Resulting HTML for InputTransferSelect generates errors

2007-09-18 Thread Shoaib Gauhar
Hello: I am using Struts 2 and need to add InputTransferSelect in my JSP page. I am adding the following code in my JSP page. But it generates error when this page is converted into HTML page. The problem is with 'TRTMNT_TYPE_CODE' in the name attribute. Actually, the Struts 2 do

Re: [S2] Issues with AJAX in IE

2007-09-18 Thread Grish
Hi, Thanks for the reply! I was out of the office so I was only able to try it out now. It works so I guess I'll use this approach for now. I applied some CSS using "display: none". Again not the most elegant approaches but I guess it will do. Is this really some bug? If anyone has other ways t

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread tom tom
Have one log4j setting for all the projects, Thanks --- Clark O'Brien <[EMAIL PROTECTED]> wrote: > Setting the freemarker_update_delay improved > performance for sure. > > Hate to ask such a simple question but just own do I > change the devMode option and logging - my log4j.xml > has ERROR set

Re: Struts2 sitemesh problem finding xwork2

2007-09-18 Thread Ed Knutson
I am having a similar problem with WebSphere 6.0 using the j4 distro (I had to retrotranslate the Sitemesh plugin). In my case, the NoClassDefFoundError was for org.apache.struts2.sitemesh.TemplatePageFilter, which per the docs is to be used in place of com.opensymphony.module.sitemesh.filter.P

RE: More tutorial questions

2007-09-18 Thread Slattery, Tim - BLS
> That class was built for JDK 1.5/Java 5, and you're running JDK 1.4. Ahh. > Is running Java 5 an option for you? If not, you might be > able to re- compile XWork for 1.4. Eventually. At the moment we're using BEA Weblogic 8.x. That supports java 1.4, and it doesn't support servlets 1.4 eithe

RE: Struts 2 tutorial

2007-09-18 Thread Dave Newton
--- Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > Struts2 is heavily based on WebWork, > which uses xwork. I am not sure if this will be > re-factored out. Almost everything in S2 *is* XWork; I don't see how (or why) it would or could be refactored out. d. ---

Re: More tutorial questions

2007-09-18 Thread Dave Newton
--- Jim Cushing <[EMAIL PROTECTED]> wrote: > Is running Java 5 an option for you? If not, you > might be able to re-compile XWork for 1.4. Or use the retrotranslater included in the S2 download and convert the XWork jar as well as the S2 ones already converted. d. --

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Ian Roughley
If you are not using container managed persistence, where the HttpRequest values are being set in the environment, you probably don't want to use the Principal or PrincipalAware interface, or even to wrap the HttpServletRequest (this email was in response to using a servlet wrapper to re-implem

Re: More tutorial questions

2007-09-18 Thread Jim Cushing
That class was built for JDK 1.5/Java 5, and you're running JDK 1.4. Is running Java 5 an option for you? If not, you might be able to re- compile XWork for 1.4. On Sep 18, 2007, at 2:50 PM, Slattery, Tim - BLS wrote: What's with com.opensymphony.xwork2.ActionSupport? I don't see anything li

More tutorial questions

2007-09-18 Thread Slattery, Tim - BLS
> What's with com.opensymphony.xwork2.ActionSupport? > I don't see anything like that in the Struts 2.0.9 package > I downloaded. Did I miss something? OK, I found that in the xwork-2.0.4.jar library, not in the struts2-core library, where I expected it. Now I get this message when I try to com

Re: Avoiding OGNL, or getting fancier with it.

2007-09-18 Thread Vinny
Very cool. I was able to get mine working with: Action Class : List beanList; .getter/setter in the jsp: ... on submit I access my List of beans with List mysubmittedList = getBeantList() ; On 9/18/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- Vinny <[E

RE: Struts 2 tutorial

2007-09-18 Thread Wesley Wannemacher
It is in the xwork jar file. It comes with any of the struts apps (struts2-blank, struts2-showcase). Struts2 is heavily based on WebWork, which uses xwork. I am not sure if this will be re-factored out. -Wes -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: T

Struts 2 tutorial

2007-09-18 Thread Slattery, Tim - BLS
I'm trying to follow along the Struts 2 tutorial. The HelloWorld.java file starts this way: package tutorial; import com.opensymphony.xwork2.ActionSupport; public class HelloWorld extends ActionSupport { What's with com.opensymphony.xwork2.ActionSupport? I don't see anything like that

Re: struts 1.3.5 problem

2007-09-18 Thread Laurie Harper
It's not clear what you're doing to cause the exception; what does 'request a process' mean? L. hariskumar wrote: Hi All, We are developing web application using struts 1.3.5 and oracle database. When I requesting a process at the page in my web application. The process going before getting r

Re: s:include tag

2007-09-18 Thread Piero Sartini
Am Dienstag, 18. September 2007 20:22:41 schrieb Sairam01: > I'm unable to include a jsp dynamically. The include tag doesn't evaluate > VALUE of the expression. > > > > someName is a attribute on my action code. Should this work..? is this a typo in the email? it should read if there is a pr

s:include tag

2007-09-18 Thread Sairam01
I'm unable to include a jsp dynamically. The include tag doesn't evaluate VALUE of the expression. someName is a attribute on my action code. Should this work..? -- View this message in context: http://www.nabble.com/s%3Ainclude-tag-tf4476115.html#a12763052 Sent from the Struts - User mailin

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
With some work, the annotations could be as flexible as the XML validations. The messy problem in either case is being able to express when and when-not to inherit validations from parent classes. Right now, you can shut off the inheritance of validations (as Veronica described), but it shuts off

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Chris Pratt
On 9/18/07, Ian Roughley <[EMAIL PROTECTED]> wrote: > By implementing the PrincipalAware interface, the Principal object will > be injected into the action with those values from the request (the > user, roles, etc.). The values can be be used in the action, or the > Principal can be exposed with

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Ian Roughley
By implementing the PrincipalAware interface, the Principal object will be injected into the action with those values from the request (the user, roles, etc.). The values can be be used in the action, or the Principal can be exposed with a setter for the actions to use. /Ian Mark McLaren wro

RE: How to accomplish Html:link in struts 2

2007-09-18 Thread Dave Newton
--- Xibin Liu <[EMAIL PROTECTED]> wrote: > I mean implementing the forward in the html:link tag > too. It would be nice if you can give me an example > for that. Still There are no ActionForwards in S2. d. - To unsubscribe,

RE: How to accomplish Html:link in struts 2

2007-09-18 Thread Xibin Liu
I mean implementing the forward in the html:link tag too. It would be nice if you can give me an example for that. Thanks -Original Message- From: Kun Niu [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 11:33 AM To: Struts Users Mailing List Subject: Re: How to accomplish

Re: How to accomplish Html:link in struts 2

2007-09-18 Thread Kun Niu
s:url and s:a ? 2007/9/18, Xibin Liu <[EMAIL PROTECTED]>: > > What is the equivalent tag in struts 2.0 for the following struts 1 tag? > > key="help"/> > > I know s:text will replace bean:message, but what about html:link ? > > > Thanks > -- 失业 牛坤 MSN:[EMAIL PROTECTED]

How to accomplish Html:link in struts 2

2007-09-18 Thread Xibin Liu
What is the equivalent tag in struts 2.0 for the following struts 1 tag? I know s:text will replace bean:message, but what about html:link ? Thanks

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
/auction.jsp public class AuctionAction { public String buy() { return SUCCESS; } public String sell() { return SUCCESS; } } Consider this code. It would be preferable to be able to write a separate

Re[5]: Strange problem after upgrading from struts 1.1 to 1.3.8 (RequestWrappers not working anymore?)

2007-09-18 Thread Arne Brutschy
Hi, I used to filter the request parameters of certain actions. It works like this: the original bean is stored in the session. When the user hits update, the filter replaces the paramters submitted by the user with the original ones. Then, it replaces or deletes the values the user has changed an

Logon_* and precise rules for action mapping

2007-09-18 Thread John Lindsay Orr
I am exploring Struts2 and I have what may be a very simple question from the Tutorial at http://struts.apache.org/2.x/docs/bootstrap.html. In the tutorial one sets the struts.xml to include the mapping Now, I understand why this works in response to the request Logon_input.action, but I ca

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread cilquirm
I'm not sure I follow how validation is more flexible when using annotations vs. xml files. Aliases are how you tell xwork that this method is the one to be executed, so there's a 1-to-1 mapping between aliases and methods. File based validation is, in a sense, more flexible, because you can def

Inconsistent behavior in value tag attribute

2007-09-18 Thread Shepherd, Darren S
Is there some logical reason why the behavior of the value tag attribute seems to be different among different tags. Basically, what I observe is that if I'm using altSyntax, depending on the tag, the %{} syntax is required or optional in the value attributes. For example, the below tag:

Re: Avoiding OGNL, or getting fancier with it.

2007-09-18 Thread Dave Newton
--- Vinny <[EMAIL PROTECTED]> wrote: > myBean[0].propertyName for example > of values that struts 1.x was able to pick back up > in the action. I'm sure there must be a way to do > this in S2, right? The same way, although AFAIK you have to build the property name by hand using the iterator's nam

Re: Avoiding OGNL, or getting fancier with it.

2007-09-18 Thread Vinny
I will give this a try as well. I have been wrestling with getting my indexed values back from my jsp's forms. In struts 1.1+ , this was handled well by using nested tags. Nested used to produced arrays ( myBean[0].propertyName for example) of values that struts 1.x was able to pick back up in th

Re:

2007-09-18 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > This code works running on the server > > <% > String path = request.getContextPath(); > String basePath = request.getScheme() >+ "://" + request.getServerName() ... Oh, on the remote server? Hmm, I would have expected that to fail in the same way--I assumed

Re:

2007-09-18 Thread stanlick
Great! Getting the ISP to do anything outside of accept my money is like getting through the airport with a duffle bag. This code works running on the server <% String path = request.getContextPath(); String basePath = request.getScheme ()+"://"+request.getServerName()+":"+request.getServerPort(

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Nils-Helge Garli
devMode: http://struts.apache.org/2.x/docs/devmode.html See if you have log4j.jar other places in your classpath (server scope/shared scope), and if you have log4j configuration files somewhere else. Nils-H On 9/18/07, Clark O'Brien <[EMAIL PROTECTED]> wrote: > Setting the freemarker_update_dela

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Clark O'Brien
Setting the freemarker_update_delay improved performance for sure. Hate to ask such a simple question but just own do I change the devMode option and logging - my log4j.xml has ERROR set for logging but I am getting INFO on the console. Clark --- Nils-Helge Garli <[EMAIL PROTECTED]> wrot

Re:

2007-09-18 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Do you think it could be a server setting? AFAIK the relevant code is in UrlHelper: link.append(request.getServerName()); As a sanity check you could see what that returns in a typical Action, but I'd guess something isn't right on the server and it's returning a n

Re:

2007-09-18 Thread stanlick
Thank you Balaji -- Do you think it could be a server setting? Scott On 9/17/07, Balaji J <[EMAIL PROTECTED]> wrote: > > > Hi Scott, > > I verified and even <@s.url> in both environments. I was not able > to see the difference. > In my desktop, i was using tomcat 5.5 > and my server has tomcat

Validation in showcase examples

2007-09-18 Thread Dean Pullen
Not sure what your feelings are, but I've noticed the showcase application example uses the commons validator for validation. Would it make more sense for the validation (what little there is in that app) to be changed to use the Xworks validator, considering this is what the Struts 2 documentatio

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
Hi Ted, It appears that if you use annotations you have more flexibilty than with using xml. Would it not be possible to add the abililty to specify validation files for each method without having to create aliases for every single method. We have actions with quite a high number of methods each w

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Nils-Helge Garli
Hi! Is it just the page the portlet is on? Have you tried switching of devMode and logging? There should be no extra performance hit compared to a basic Struts 2 application, so the performance tuning information in the documentation should apply: http://struts.apache.org/2.x/docs/performance-tun

Struts2 Portlets slowing down liferay portal

2007-09-18 Thread Clark O'Brien
Hi, I just downloaded struts2 a couple days ago and built a basic portlet with it. When I added the portlet the entire portal became dog slow. When I remove the portlet it is performant again. Can someone tell me why this would be happening. Also I don't want spring, caching,... I just want a bas

Re[4]: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-18 Thread Arne Brutschy
Hi, D> With what? Well, that was what I was asking myself. :) Problem is, the app hasn't been touched since 4 years. So I kind of re-engineering here. D> Something in your application is pre-loading the D> dynaform with reasonable values, no? I don't really D> remember S1.1 at this point; do you

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
* http://struts.apache.org/2.x/docs/validation.html It's under "Defining Validation Rules" at 2. The term "alias" is used to refer to the action method. So if there's an actions.Register.java class with "insert" and "update" action methods, then there might be XML docs like /java/actions/Regist

RE: S2 : Validation per Action method - ideas?

2007-09-18 Thread David Harland
Can someone please point me to the documentation that shows you how to configure validation per action method using the validation xml files? Or is this not possible? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 18 September 2007 10:27

Re: Re[2]: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-18 Thread Dave Newton
--- Arne Brutschy <[EMAIL PROTECTED]> wrote: > But when I get at the beginning of the > UserDispatchAction.update(), the dynaform > has all values filled in. With what? Something in your application is pre-loading the dynaform with reasonable values, no? I don't really remember S1.1 at this poi

Re: Re[2]: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-18 Thread Dave Newton
--- Arne Brutschy <[EMAIL PROTECTED]> wrote: > But when I get at the beginning of the > UserDispatchAction.update(), the dynaform > has all values filled in. With what? Something in your application is pre-loading the dynaform with reasonable values, no? I don't really remember S1.1 at this poi

Re: Conditional validation

2007-09-18 Thread Ted Husted
I added this as * http://jira.opensymphony.com/browse/XW-565 -Ted. On 8/3/07, mraible <[EMAIL PROTECTED]> wrote: > > I figured out how to do this - posting here so others will benefit. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: S2 : Validation per Action method - ideas?

2007-09-18 Thread Ted Husted
I opened * https://issues.apache.org/struts/browse/WW-2191 for this, and noted the setting in the Validators documentation. Thanks for pointing this out, Veronica! -Ted. On 8/10/07, Veronica Iturrioz <[EMAIL PROTECTED]> wrote: > You must to set the property validateAnnotatedMethodOnly=true, a

Re[3]: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-18 Thread Arne Brutschy
Hi, I'm just thinking aloud, so perhaps someone can drop-in and shed some light here... :) Post data send by browser is identical on both versions (old: struts 1.1 and new: struts 1.3.8). It contains only the displayed parameters, nothing else. So in the old version, when the request arrives at A

struts 1.3.5 problem

2007-09-18 Thread hariskumar
Hi All, We are developing web application using struts 1.3.5 and oracle database. When I requesting a process at the page in my web application. The process going before getting result I am requesting another process in the same page. On that time I got the following error. Please any one know h

AW: Struts138 - Restrict Access to my actions?

2007-09-18 Thread Thomas.Zygadlewicz
Hello Balaji, Thanks for the quick response. The problem is: I dont have a clue what an interceptor is - and how to implement it in my Application. Do you have any examples or guides for this solution? Thanks -Ursprüngliche Nachricht- Von: Balaji J [mailto:[EMAIL PROTECTED] Gesendet:

Re: Struts138 - Restrict Access to my actions?

2007-09-18 Thread Balaji J
Hi Tom, Interceptor is the best solution for this kind of problem. Pass all your action requests to your custom interceptor that should validate your requests and redirect to respective actions. Regards, Balaji nomax wrote: > > Hi, > > I want to restrict access to my actions - meaning: I d

Struts138 - Restrict Access to my actions?

2007-09-18 Thread Thomas.Zygadlewicz
Hi, I want to restrict access to my actions - meaning: I dont want users to be able to type them in the adressbar and jump around in my page as they like to. It kinda makes my navigation effords senseless. Ive try to write a servlet-filter which checks for actions beginning with "secure" - but

Re[2]: Strange problem after upgrading from struts 1.1 to 1.3.8

2007-09-18 Thread Arne Brutschy
Hi, I just found out that the postdata didn't contain the attributes as well when using struts 1.1. So nothing changed here. But when I get at the beginning of the UserDispatchAction.update(), the dynaform has all values filled in. So I'm wondering where struts fills in the data, and why it doesn'

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Mark McLaren
Hi all, I think this is a generic problem rather than something Struts 2 specific. Ideally in this situation you would want to be able to access getRemoteUser() and isUserInRole() from the request. One approach is to use your application servers' container managed security, e.g. Tomcat JAASRealm