upgrading to S2.1.6 - ClassNotFoundException:org.springframework.core.SmartClassLoader

2009-05-12 Thread David Canos
Hi folks I have upgraded an application to Struts 2.1.6. and error says: ClassNotFoundException:org.springframework.core.SmartClassLoader I have used all the libs that are attached in struts-2.1.6-all.zip. are all that libs correct? I mean, it's hard to believe that this versions were right

problems using tiles with struts 2

2009-05-12 Thread manub
Hello there, I got a strange error when I try to develop a simple blank Struts2 Application with Tiles support. The strangest thing is that this application, without any modify, works on another PC. Here's my stacktrace: 12-mag-2009 11.36.06 org.apache.catalina.core.StandardContext

unable to get the request parameters

2009-05-12 Thread Murugesh
I am doing task on struts2. In that I have to use custom AutherizationInterceptor. In my custom Interceptor Im checking weather user is in session or not. And if he tries to attempt login I gave parameter in struts.xml as true So Im checking against it and interceptor redirects action to Home.

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
It would certainly be a lot easier to help if you could show your configuration and code... Nils-H On Tue, May 12, 2009 at 12:54 PM, Murugesh muruges...@gmail.com wrote:  I am doing task on struts2. In that I have to use custom AutherizationInterceptor. In my custom Interceptor Im checking

Re: unable to get the request parameters

2009-05-12 Thread Murugesh
struts package name=packet extends=struts-default namespace=/ interceptors interceptor name=login class=com.action.generic.logininterceptor/ /interceptors default-interceptor-ref name=login/ global-results result name=error/login.jsp/result

Re: problems using tiles with struts 2

2009-05-12 Thread Lukasz Lenart
2009/5/12 manub e.bla...@reply.it: Anyone can suggest me how to handle this? XML parser is trying to connect over the Internet to validate XML base on DTD, do you have proxy in use? It was possible to disable such function and to use local DTD copy instead. Regards -- Lukasz

Re: unable to get the request parameters

2009-05-12 Thread Murugesh
and my logininterceptor is public class logininterceptor extends AbstractInterceptor { private static final String USER_KEY = isLoggedin; public String intercept(ActionInvocation invocation) throws Exception { Map session = invocation.getInvocationContext().getSession();

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
You have configured your interceptor as the only one in the stack. When you create your own interceptor stack, make sure you also include one of the framework stacks (e.g. basicStack). Nils-H On Tue, May 12, 2009 at 1:04 PM, Murugesh muruges...@gmail.com wrote: struts    package name=packet

Re: problems using tiles with struts 2

2009-05-12 Thread manub
Lukasz Lenart wrote: 2009/5/12 manub e.bla...@reply.it: Anyone can suggest me how to handle this? XML parser is trying to connect over the Internet to validate XML base on DTD, do you have proxy in use? It was possible to disable such function and to use local DTD copy instead.

Re: unable to get the request parameters

2009-05-12 Thread Murugesh
Thanks Nils-H. i am not clear. can i have the sample for this? On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik nil...@gmail.comwrote: You have configured your interceptor as the only one in the stack. When you create your own interceptor stack, make sure you also include one of the

Re: unable to get the request parameters

2009-05-12 Thread Murugesh
and also am very new to Interceptors On Tue, May 12, 2009 at 5:00 PM, Murugesh muruges...@gmail.com wrote: Thanks Nils-H. i am not clear. can i have the sample for this? On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik nil...@gmail.com wrote: You have configured your

Re: unable to get the request parameters

2009-05-12 Thread Nils-Helge Garli Hegvik
Here's an example: http://struts.apache.org/2.1.6/docs/interceptor-configuration.html Note how a custom stack is defined and how the custom stack is referring to the defaultStack. Nils-H On Tue, May 12, 2009 at 1:33 PM, Murugesh muruges...@gmail.com wrote: and also am very new to Interceptors

Re: unable to get the request parameters

2009-05-12 Thread Murugesh
Thanks a lot.. i have changed my config of interceptors as interceptors interceptor name=login class=com.amr.controller.action.generic.logininterceptor/ interceptor-stack name=loginStack interceptor-ref name=login/ interceptor-ref

Could not load MultiColumnPrinter.class

2009-05-12 Thread David Canos
I was just starting to work with Convention plugin and I get this exception trace. I have tried to add constant name=struts.convention.action.includeJars value= / to my struts.xml, but it does nothing. Can anyone help me? thanks java.lang.Exception: Could not load MultiColumnPrinter.class at

Invoking an external URL

2009-05-12 Thread Crishantha Nanayakkara
Hi All, How can I invoke an external URL (absolute path) using the struts framework? I can see tags within result tag in struts.xml to invoke a relative URL within the application. But I am unable to find a way to call an external URL passing certain parameters. For example, in normal JSPs, we

How do I get a request header

2009-05-12 Thread Norris Shelton
I looked in the interceptors and did not see one that pulled the heders. Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton

Re: How do I get a request header

2009-05-12 Thread Jim Collings
I am also trying to retrieve an item in the header so that I can place it in the value stack. Any ideas on how best to accomplish this? Jim C. On Tue, May 12, 2009 at 8:37 AM, Norris Shelton norrisshel...@yahoo.comwrote: I looked in the interceptors and did not see one that pulled the heders.

Struts-Tiles Reloading Problem

2009-05-12 Thread Ujjval Pandya
Hi I am using Struts-Tiles Framework in my webproject. I want to reload the tiles-def.xml file at run time. I have included the following servlet in struts-config.xml. action path=/reload type=org.apache.struts.tiles.actions.ReloadDefinitionsAction/ action path=/view

Re: How do I get a request header

2009-05-12 Thread Struts Two
Here is one way I did to get Authorization value in the header: 1- Define an interceptor that retrieves HttpServletRequest 2- Define an interface ,say HeaderAware. 3- In your interceptor retrieve related values from Header and then inject it into your action if it implements HeaderAware. That

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Dave Newton
Crombie, Joe - BRS wrote: Hi All, I'm currently switching to 2.1.6 and the Convention plugin for configuration. I tend to use POJOs for my Action classes, and map actions to methods. My problem is that when I extend ActionSupport, Convention generates a default mapping to the execute

Re: How do I get a request header

2009-05-12 Thread Jim Collings
Hmmm... So there isn't already an HeaderInterceptor? Seems odd. Jim C. On Tue, May 12, 2009 at 8:54 AM, Struts Two struts...@yahoo.ca wrote: Here is one way I did to get Authorization value in the header: 1- Define an interceptor that retrieves HttpServletRequest 2- Define an interface

Re: Using session object in JSP page

2009-05-12 Thread Lukasz Lenart
2009/5/11 NR031 nataraja...@cognizant.com: Map sesion=ActionContext.getContext().getSession(); sesion.put(username,getUn());    /*getun() returns the username form field data*/ I want to use this session data in all my JSP pages, how to use the session data in my JSP? I am using Struts -2

Re: How do I get a request header

2009-05-12 Thread Jim Kiley
ServletRequestAware? jk On Tue, May 12, 2009 at 9:03 AM, Jim Collings jlistn...@gmail.com wrote: Hmmm... So there isn't already an HeaderInterceptor? Seems odd. Jim C. On Tue, May 12, 2009 at 8:54 AM, Struts Two struts...@yahoo.ca wrote: Here is one way I did to get Authorization

Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Thomas Terrace
Has anyone else been able to use the java templates plugin successfully with 2.1.7? Using struts2-blank-2.1.7.war compiled from source yesterday, I dropped the javatemplates 2.1.7 jar into lib and added the following lines to struts.xml:     constant name=struts.ui.templateSuffix value=java /   

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
Right now there is no way, we could add a flag that check if there are annotated methods, and prevents the mapping of execute musachy On Tue, May 12, 2009 at 8:58 AM, Dave Newton newton.d...@yahoo.com wrote: Crombie, Joe - BRS wrote: Hi All,  I'm currently switching to 2.1.6 and the

Re: upgrading to S2.1.6 - ClassNotFoundException:org.springframework.core.SmartClassLoader

2009-05-12 Thread Dave Newton
David Canos wrote: I have upgraded an application to Struts 2.1.6. and error says: ClassNotFoundException:org.springframework.core.SmartClassLoader I have used all the libs that are attached in struts-2.1.6-all.zip. are all that libs correct? I find it unlikely. You should use the *actual

Re: How do I get a request header

2009-05-12 Thread Dave Newton
Jim Collings wrote: I am also trying to retrieve an item in the header so that I can place it in the value stack. Any ideas on how best to accomplish this? On Tue, May 12, 2009 at 8:37 AM, Norris Shelton norrisshel...@yahoo.comwrote: I looked in the interceptors and did not see one that

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
https://issues.apache.org/struts/browse/WW-3123 On Tue, May 12, 2009 at 9:24 AM, Musachy Barroso musa...@gmail.com wrote: Right now there is no way, we could add a flag that check if there are annotated methods, and prevents the mapping of execute musachy On Tue, May 12, 2009 at 8:58 AM,

Re: Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-12 Thread Musachy Barroso
Fixed in svn trunk musachy On Tue, May 12, 2009 at 9:32 AM, Musachy Barroso musa...@gmail.com wrote: https://issues.apache.org/struts/browse/WW-3123 On Tue, May 12, 2009 at 9:24 AM, Musachy Barroso musa...@gmail.com wrote: Right now there is no way, we could add a flag that check if there

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
A patch was recently applied to the templates plugin, and maybe something is broken. I will take a look, thanks for reporting. musachy On Tue, May 12, 2009 at 9:13 AM, Thomas Terrace tterr...@gmail.com wrote: Has anyone else been able to use the java templates plugin successfully with 2.1.7?

Re: JAAS not working

2009-05-12 Thread Dan C.
Ok, I found the solution.. Actually another in house app had run into the same problem.. Here is the solution for anyone else.. BTW: we eventually found this issue by searching declarative security 404. !-- NOTE: Instead of specifying an action as the

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
yeah, it is broken: https://issues.apache.org/struts/browse/WW-3124 On Tue, May 12, 2009 at 9:51 AM, Musachy Barroso musa...@gmail.com wrote: A patch was recently applied to the templates plugin, and maybe something is broken. I will take a look, thanks for reporting. musachy On Tue, May

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Musachy Barroso
fixed in svn trunk. not big deal, the dependency is not required as it is an extension point. Thanks for reporting! musachy On Tue, May 12, 2009 at 9:55 AM, Musachy Barroso musa...@gmail.com wrote: yeah, it is broken: https://issues.apache.org/struts/browse/WW-3124 On Tue, May 12, 2009 at

Re: Javatemplates plugin error in 2.1.7 with struts2-blank.war

2009-05-12 Thread Thomas Terrace
wow, that was quick, thanks Musachy! On 5/12/09, Musachy Barroso musa...@gmail.com wrote: fixed in svn trunk. not big deal, the dependency is not required as it is an extension point. Thanks for reporting! musachy On Tue, May 12, 2009 at 9:55 AM, Musachy Barroso musa...@gmail.com wrote:

default class to forward requests

2009-05-12 Thread Bhaarat Sharma
Is there a default class that we can use in struts.xml that can be used for just forward request to a new html page. Basically user clicking a link and going to a new page. I dont want to make an execute method that just returns SUCCESS. Rather there must be some default class that does that. I

Re: default class to forward requests

2009-05-12 Thread Jim Kiley
It is ActionSupport. When you don't have access to a book you may find that you get faster results from Google[1] or the introductory documentation[2] than the mailing list. jk [1]

Re: problems using tiles with struts 2

2009-05-12 Thread Lukasz Lenart
2009/5/12 manub e.bla...@reply.it: Yes, I'm behind a proxy. How to disable that functionality? Thanks in advance. Sorry, no idea. It's related to Digester itself, try to look in that direction. Regards -- Lukasz http://www.lenart.org.pl/

Re: Converter trying to set String on int field

2009-05-12 Thread Richard Sayre
After some debugging the culprit was the checkbox interceptor. It uses false as a default value when nothing is selected. I tried setting the uncheckedValue to -1 and it didnt work. interceptor-ref name=completeDefault param name=checkbox.uncheckedValue-1/param /interceptor-ref

Re: problems using tiles with struts 2

2009-05-12 Thread Antonio Petrelli
2009/5/12 manub e.bla...@reply.it: I got a strange error when I try to develop a simple blank Struts2 Application with Tiles support. The strangest thing is that this application, without any modify, works on another PC. Versions of Struts and Tiles, please. Antonio

Where is result input coming from?

2009-05-12 Thread Jim Collings
It's nowhere in my code. All of my results are hard coded things like SUCCESS. Any ideas where this is coming from and why? Jim C.

Re: Where is result input coming from?

2009-05-12 Thread Siddiq Syed
If the validations fails or if something goes wrong  , Struts 2 will forward the response to look for input in sturts.xml file for the specified action.   Regards, Siddiq --- On Tue, 5/12/09, Jim Collings jlistn...@gmail.com wrote: From: Jim Collings jlistn...@gmail.com Subject: Where is

Migrate Struts 1.0 app from WebSphere 5.1 to 6.1 - JSP container failed to load the TagExtraInfo

2009-05-12 Thread mule_user
The same code (EAR) did not throw the above exceptions in WebSphere 5.1 server. Migrating Struts 1.0 application from WebSphere 5.1 to WebSphere 6.1 in z/OS. After successfully deploying Struts 1.0 app in WebSphere 6.1 server, I start the application. As the application starts up, I get the

Re: default class to forward requests

2009-05-12 Thread Suneel
You can just leave the class attribute blank. Read this: http://struts.apache.org/2.1.6/docs/action-configuration.html On Tue, May 12, 2009 at 10:20 AM, Jim Kiley jhki...@summa-tech.com wrote: It is ActionSupport. When you don't have access to a book you may find that you get faster results

Re: Invoking an external URL

2009-05-12 Thread Suneel
You can use the 'Redirect Result'. Check here: http://struts.apache.org/2.1.6/docs/result-types.html On Tue, May 12, 2009 at 7:31 AM, Crishantha Nanayakkara c.nanayakk...@gmail.com wrote: Hi All, How can I invoke an external URL (absolute path) using the struts framework? I can see tags

Help with validation

2009-05-12 Thread Rodrigo Lins
Hi, I'm in trouble, i use a ValidationForm and the validation plugin to validate my formBean. Every time i push the button to submit my action and don't validate i see twice error messages. Can you help me? Thanks, Rodrigo. validation.xml form name=networkAdminForm field

Using PUT with REST Plugin

2009-05-12 Thread David Whitehurst
Can someone show me using my example of how to use the PUT feature of the REST Plugin. I'll provide my example that doesn't work. I need to know if I'm setting this up correctly using GWT. I can't get it to work. The Confluence showed id=Thrillers so I've also tried id=customers and that

Re: problems using tiles with struts 2

2009-05-12 Thread Wes Wannemacher
On Tuesday 12 May 2009 11:54:35 am Lukasz Lenart wrote: 2009/5/12 manub e.bla...@reply.it: Yes, I'm behind a proxy. How to disable that functionality? Thanks in advance. Sorry, no idea. It's related to Digester itself, try to look in that direction. If I remember correctly, this problem

Cant get css, js files if not using .do extension

2009-05-12 Thread KE LI
Dear all, I had met a strange problem: If I modified the struts.xml file and I dont want to use .do extension for actions. I set it as /* . For example, the previous link is http://localhost:8080/test.do. Now after modification it becomes: http://localhost:8080/test. But when I restart the

Re: Invoking an external URL

2009-05-12 Thread Crishantha Nanayakkara
Suneel, Does this mean that, can I use something similar to the following? action name=testUrl class=TestAction result name=success type=redirect https://pay.bix.lk/servlet/payServletXX false

Re: Invoking an external URL

2009-05-12 Thread Crishantha Nanayakkara
Sorry the code snippet should be as follows. There was a formatting error in my previous post. action name=testUrl class=TestAction result name=success type=redirect https://pay.bix.lk/servlet/payServletXX