Hi,
This is my projectstructure and the files you asked.
Hope you see something wrong..
Thx,
Sandy
Dir structure (as i see it in explorer):
Shop
-.settings
-src
-main
-java
-be
Sorry to hijack the thread, but I've been having slightly different
issues with the select tag and a Map as the option list source. As
you mentioned, the docs state If the list is a Map (key, value), the
Map key will become the option 'value' parameter and the Map value
will become the option
I am trying apress book example chapter06. Here is my struts.xml file
struts
constant name=struts.codebehind.defaultPackage value=base-package/
constant name=struts.codebehind.pathPrefix value=/WEB-INF/jsp//
package name=base-package extends=struts-default
Dusty,
The error only shows if i enter '0' or a negative number in my
double-field..
Not with positive numbers.
Is this normal?
Regards,
Sandy
-Oorspronkelijk bericht-
Van: dusty [mailto:dustin_pea...@yahoo.com]
Verzonden: dinsdag 18 augustus 2009 6:37
Aan: user@struts.apache.org
Hi
I have defined the application specific constants in the java file.And in
jsp i am trying to access the constants as
s:if test=%{msgStatusCode == @org.myconsta...@message_status_code_unread
}
This works fine .
But i am getting lot of warning messages in the log file since struts2
framework
Ya, I'm tring Spring AOP as well, and facing some problem.
If I AOP action class, some action when I run, I got this error, but some is
running fine:
Struts has detected an unhandled exception:
# Messages: $Proxy18.input1()
File: java/lang/Class.java
Line number: 1,605
Stacktraces
If you're using AOP, you'll need to tell spring to proxy classes using
CGLIB rather than dynamic JDK proxies... To do so, you'll have to add
the cglib jars to your project and add the following to your
applicationContext.xml -
aop:config proxy-target-class=true /
-Wes
On Tue, Aug 18, 2009 at
That is because you are using Struts 2.1.5. There is a bug in the type
conversion for doubles in XWork which is fixed in
the current version (XWork 2.1.4). When you enter a zero it claims it is not a
valid value.
To use XWork 2.1.4 you need Struts 2.1.7. I have just sent the zips I promised
Wes Wannemacher wrote:
If you're using AOP, you'll need to tell spring to proxy classes using
CGLIB rather than dynamic JDK proxies... To do so, you'll have to add
the cglib jars to your project and add the following to your
applicationContext.xml -
aop:config proxy-target-class=true /
Thanks Wes, I'm looking into it now.
From: Wes Wannemacher w...@wantii.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, August 18, 2009 2:28:15 PM
Subject: Re: LoggingInterceptor
If you're using AOP, you'll need to tell spring to proxy
as previously mentioned
MethodInterceptor != LoggingInterceptor
Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten
Thank you very much!
-Oorspronkelijk bericht-
Van: musom...@aol.com [mailto:musom...@aol.com]
Verzonden: dinsdag 18 augustus 2009 16:00
Aan: user@struts.apache.org
Onderwerp: Re: struts 2.1.5 type conversion error
That is because you are using Struts 2.1.5. There is a bug in the type
Dale, honestly, I was being lazy and giving him the quick solution
to his problem. The thing about that error is that it is pretty
obvious what needs to be done, if you're versed in the arts of proxy
class generation. Most people don't really look into what spring is
doing behind the scenes, they
Wes Wannemacher wrote:
Dale, honestly, I was being lazy and giving him the quick solution
to his problem.
Thanks for the more complete (mostly elided) exposition, then.
Most people don't really look into what spring is doing behind the
scenes
I'm so frustrated with the acegi - spring
i would substitute 'powerful' for 'bad'
the idea of advised methods is to allow AOP advised methods to be introduced to
the class e.g. 'logging'
JDKProxy vs CGLIB debate:
JDKProxy implements functionality thru interfaces
CGLIB
The proxies are created by sub-classing the actual class. This
Thanks Dale Wes for some more education. I agree with Wes, there is no point
for me to use inteface based proxy for this logging funtion, otherwise that
will be increase coding and make thing complicated.
Perhaps, if you guys come across this kind of logging component for spring and
which is
We're finishing up our first Struts 2 project (ver 2.1.6) and a security scan
has shown that the s:hidden tag is vulnerable to cross site scripting because
it does not encode special characters. This feels like a bug, but is it?
We've since learned to use the scope interceptor, however there
Hi..
Im getting an error on my project. I just trying to send a form and
receive the information in my action class. Im using struts 2.16.
Please, help!!! I dont know what Im missing there... or if i need to add
another jar on the project... Im been searching for that error on
internet
In your package, you define 2 action
action name=addProduct class=be.shop.service.TestActions
method=addProduct
and
action name=goToProducts class=be.shop.service.ProductActions
method=goToProducts
If you want the validation for addProduct, then you should have
I haven't looked at it yet, but if you think it is a bug, feel free to
open a ticket here:
https://issues.apache.org/struts/secure/CreateIssue!default.jspa
and enter as much detail as possible, also if you have a patch for it,
it would help a lot :)
regards
musachy
On Tue, Aug 18, 2009 at 8:24
put a breakpoint in setRelMedpackage, and see if struts is passing a
new instance of RelMedpackage. Also make sure that class has a default
constructor.
On Tue, Aug 18, 2009 at 8:38 AM, Mileidys Gonzalez
Prietomileidys.gonza...@i-frontier.net wrote:
setRelMedpackage
--
Hey you! Would you
hum, I am not sure about this, the value of the hidden input is
printed using the property tag, from hidden.ftl:
input type=hidden#rt/
name=${parameters.name?default()?html}#rt/
#if parameters.nameValue??
value=@s.property value=parameters.nameValue/#rt/
musachy
On Tue, Aug 18, 2009 at 8:24
Hi,
Just currious y struts didn't support s:param in s:submit
I am having a problem:
A list of controls are produced using iterator, user can remove each of
them by clicking submit near each of them.
If i use s:url, i can send the id of the row via param, but the data
user has inputed will be
Hi folks.
In my app, users can access to some actions, just typing them in the
browser. But I need to implement a way to login first and then redirect them
to the URL they wrote. Is there any way to do this?
I was thinking to use an interceptor to see if there is an open session and
redirect to
wow, sometimes u really need to switch to another project... play some
games, walk around...jejeje, after ur email and put again the breakpoint
and then I notice that wasn't passing for that area... and of course,
all the error was a mistake on one character on the href for the jquery
submit
I am trying to leverage the http://ajaxtags.sourceforge.net/ AjaxTags and
would like to see if anyone here might have tips before tearing in. I
realize this might not be the best venue for the question, but hey, It's
Struts 2 sort of.
Peace,
Scott
--
View this message in context:
My actions have a method, called getJavascriptIncludes() which returns a
ListString object.
I'm iterating like so, in the head:
s:iterator value='javascriptIncludes'
s:set name=js_file value=[0]/
script type=text/javascript src=s:url
value='%{js_file}'//script
/s:iterator
Here's
Duh, it's:
s:set name=js_file value=top/
-Original Message-
From: Security Management [mailto:list-subscripti...@secmgmt.com]
Sent: Tuesday, August 18, 2009 1:57 PM
To: 'Struts Users Mailing List'
Subject: ListString Iterator in JSP
My actions have a method, called
They should work ok, but I see no reason why you would like to use
that instead of jquery or prototype directly, to be honest.
musachy
On Tue, Aug 18, 2009 at 10:21 AM, stanlickstanl...@gmail.com wrote:
I am trying to leverage the http://ajaxtags.sourceforge.net/ AjaxTags and
would like to
Hi,
I'm new to struts 2 (2.1.6) and having some problems implementing the
s:checkbox /. After following the bootstrap tutorial, I decided to work on
my project. Based on the tags reference for checkbox
http://struts.apache.org/2.1.6/docs/checkbox.html, s:checkbox / or
s:checkboxk/s:checkbox
Okay, after further research it appears that s:hidden DOES filter it's text
when rendered, but not when it's value is transferred to the action's property.
The confusion came about because we had an s:text tag on the page that
referenced the same variable as the s:hidden tag, and the s:text
Hi Frank,
submit should be inside form,
and inside form You can add hidden
to add any information You like
to differ from which line/id/identificator this submit was pressed.
So the simplest way to achieve it is to add form for every row.
Another solution is to use indexed properties with one
Hi Rafael,
inside intecept method of your security interceptor You can do
something like this:
ActionMapping actionMapping = ServletActionContext.getActionMapping();
MapString, String[] parameters =
ServletActionContext.getRequest().getParameterMap();
String redirectLink =
Hi Tommy,
add theme=simple inside checkbox to remove extra td and tr.
Best greetings,
Paweł Wielgus.
2009/8/18 Tommy Pham tommy...@yahoo.com:
Hi,
I'm new to struts 2 (2.1.6) and having some problems implementing the
s:checkbox /. After following the bootstrap tutorial, I decided to work
- Original Message
From: Paweł Wielgus poulw...@gmail.com
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, August 18, 2009 1:18:13 PM
Subject: Re: [struts2] s:checkbox / problem
Hi Tommy,
add theme=simple inside checkbox to remove extra td and tr.
Best
I have used it in one my applications. It is pretty simple and straigtforward.
However, you are limited to the few tags provided. Not to mention that
accessibility is a big issue.
I just recently moved a projed to production using native dojo 1.3.2 and struts
2 and it is awesome. I tested it
It will be the default, but if a specific tag needs a different theme, you
can set it as one of the tag's attributes.
e.g.
s:checkbox theme='simple'
-Original Message-
From: Tommy Pham [mailto:tommy...@yahoo.com]
Sent: Tuesday, August 18, 2009 6:05 PM
To: Struts Users Mailing List
-- Forwarded message --
From: jun hua ar3...@gmail.com
Date: 2009/8/18
Subject: Re: Why submit didn't support param
To: Martin Gainty mgai...@hotmail.com
Hi, Gainty
Thanks!
But there is a problem in my case.
Like I have 10 textfields generated by iterator. user can
Hi, Wielgus,
Thanks!
Man, That sounds great!
Actually I hope struts2 can provide us something like s:submit
action=Actionname.action?param=123123 /
or s:submit action=Actionname.action param name=name
value=value/s:submit.
It's not the first time I got frustrated by such kind of
why do n't you define a form and make your a href=.. tag submit the form, in
this way you can submit any number of params you want something like
form id=myFormId action=.action
input name=x1 type... /
input name=x2 type... /
.
/form
a
42 matches
Mail list logo