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
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
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.
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
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
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
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();
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
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.
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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 /
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
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
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
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,
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
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?
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
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
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
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:
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
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]
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/
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
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
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.
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
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
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
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
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
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
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
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
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
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
50 matches
Mail list logo