So it was a bug that we could use EL expressions in struts tag ?
Eric Rank pisze:
I ran in to this same problem. The Struts tags no longer accept EL. It
was a bug fix. More detail here:
https://issues.apache.org/struts/browse/WW-2107
You can still use OGNL though:
Eric Rank
-
Se
Hello All,
in configuring the httpheader result type in the struts.xml file, is
there a way to access objects on the value stack?
Thanks!
--john
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
thanks wes, I tried this manipulation - didnt work
:-(
Wes Wannemacher wrote:
>
> Try annotating the getter rather than the setter.
>
> -Wes
>
> On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>>
>> yes i did :super:
>>
>>
>>
>> newton.dave wrote:
>> >
>> > Did you annotate the class with t
Am trying to understand the best practice if any for a
ValidateLoginInterceptor of sorts. In the code below, if the login is
valid then we make a call to:
return actionInvocation.invoke();
In case the login information was incorrect, what should one do?
return ActionSupport.ERROR /
Try annotating the getter rather than the setter.
-Wes
On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> yes i did :super:
>
>
>
> newton.dave wrote:
> >
> > Did you annotate the class with the @Validation() annotation?
> >
> > d.
> >
> > --- xianwinwin <[EMAIL PROTECTED]> wrote:
> >
> >>
> >>
yes i did :super:
newton.dave wrote:
>
> Did you annotate the class with the @Validation() annotation?
>
> d.
>
> --- xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> I've been struggling with this issue for a while and any pointer would be
>> appreciated.
>>
>> I have a simple file with one
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
> Fresh from plugging in my first TypeConverter, I find that on the whole the
> TypeConversion mechanism in S2 is very good. After setting up a custom type
> converter, I thought I could chip in with a couple of comments:
>
> (1) where to register type con
Did you annotate the class with the @Validation() annotation?
d.
--- xianwinwin <[EMAIL PROTECTED]> wrote:
>
> I've been struggling with this issue for a while and any pointer would be
> appreciated.
>
> I have a simple file with one field -name; I would like to validate that
> the
> user put
Fresh from plugging in my first TypeConverter, I find that on the whole the
TypeConversion mechanism in S2 is very good. After setting up a custom type
converter, I thought I could chip in with a couple of comments:
(1) where to register type converter - took a while to discover whether I was
I've been struggling with this issue for a while and any pointer would be
appreciated.
I have a simple file with one field -name; I would like to validate that the
user put information in it.
I'm using the annotation in order to achieve this but for some reason the
validation doesn't work (there
Dave Newton wrote:
--- Brian Relph <[EMAIL PROTECTED]> wrote:
Although this would work for me personally during development, i am not the
first line of tech support... So when something breaks, and tech support
turns logging up to debug, i would like them not to have a bunch of extra
exceptions
Hello All,
I'm having a little trouble getting a chart result type configured using
the package declaration below. Whenever I hit the associated URL, my
browser prompts me to save a "bin" file rather than displaying the
chart. The bin file is a valid png, but somehow Struts is not
recogniz
--- Brian Relph <[EMAIL PROTECTED]> wrote:
> Although this would work for me personally during development, i am not the
> first line of tech support... So when something breaks, and tech support
> turns logging up to debug, i would like them not to have a bunch of extra
> exceptions in their logs.
Well, whatever the problem was, it was one of those nice ones that magically
resolved itself. The guy that deploys apps on prod tried again, and it
worked.
Sorry about the unnecessary inbox traffic!
~ Keith
On Jan 3, 2008 2:12 PM, Manos Batsis <[EMAIL PROTECTED]> wrote:
> Keith Struts wrot
YES! exactly what I needed. thanks!!!
Alberto A. Flores wrote:
>
> one way I did that was by using the "non-validating" method point to a
> method (in the Action class) to have the following annotation
>
> @SkipValidation
>
> Then in the struts tag, you force the button to use such method
Load up the debugger. That's what I would do. If your plugin is being
initialized twice, put a break point where that occurs and find out how this
is occurring. There obviously must be a configuration problem because I've
never seen this.
Paul
On Jan 3, 2008 12:28 PM, Edward Song <[EMAIL PROTECTE
On Jan 2, 2008 10:59 PM, ravi_eze <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> the workaround works, but causes problems if the checkbox should be
> validated. More over the soln is based on assumptions that need not hold
> always.
Which solution are you saying is based on assumptions that need not
hold
Although this would work for me personally during development, i am not the
first line of tech support... So when something breaks, and tech support
turns logging up to debug, i would like them not to have a bunch of extra
exceptions in their logs. As well, i do not expect them to have any
knowled
Turn down logging on the stuff you want to ignore.
--- Brian Relph <[EMAIL PROTECTED]> wrote:
> When i turn logging up to debug, i get TONS of the same stack trace when
> using my struts2 app ...
>
> Can i get rid of these somehow?
>
> [1/3/08 13:08:13:106 CST] 004c SystemOut O [WebCont
I ran in to this same problem. The Struts tags no longer accept EL. It
was a bug fix. More detail here:
https://issues.apache.org/struts/browse/WW-2107
You can still use OGNL though:
Eric Rank
-
Senior Web App Engineer
www.referencevault.com
On Jan 3, 2008, at 3:39 AM, Michał L
Keith Struts wrote:
I recently rewrote an existing application in Struts 2, and everything seems
fine. Runs on my Eclipse server, as well as the local tomcat instance on 2
different machines. However, when we deploy it to the production server, we
get a 404 error.
Check your server logs. Does
Hi everyone,
I recently rewrote an existing application in Struts 2, and everything seems
fine. Runs on my Eclipse server, as well as the local tomcat instance on 2
different machines. However, when we deploy it to the production server, we
get a 404 error.
Any idea what the problem could be?
When i turn logging up to debug, i get TONS of the same stack trace when
using my struts2 app ...
Can i get rid of these somehow?
[1/3/08 13:08:13:106 CST] 004c SystemOut O [WebContainer : 1] DEBUG
com.opensymphony.xwork2.util.InstantiatingNullHandler - Entering
nullPropertyValue [target=
Hi,
I am getting the same error when running the junit test.
Infinite recursion detected: [/login!input, /exceptionHandler,
/exceptionHandler] - [unknown location]
at
com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:207)
at
com.opensymphony.xwork2.Default
--- saint_john <[EMAIL PROTECTED]> wrote:
> yes, i have to do something like prepare().
> But struts behavior is very doubtful in case of validation error - it's I
> DECIDE where execution control should flow (i mean INPUT result, SUCCESS or
> ERROR or whatever i want), not struts.
Then don't use
Hi Paul,
Thanks for the reply, I understand that plugins apply for the entire
framework. However, I do NOT have the ActionServlet declared twice in my
web.xml nor do I have multiple struts-config files.
Here is my web xml for the action servlet.
Struts Action Servlet
action
yes, i have to do something like prepare().
But struts behavior is very doubtful in case of validation error - it's I
DECIDE where execution control should flow (i mean INPUT result, SUCCESS or
ERROR or whatever i want), not struts.
newton.dave wrote:
>
> Oh; I'm not sure why you'd do that in
Struts 1.4 contains the fix not to have plug-ins initialized twice. The fact
is that there is no such thing as module plug-ins. Only plug-ins for the
entire Struts framework. If you're seeing initialization twice, it's
possible you have the plugin defined twice within the model or two modules
with
Thanks Randy for the feedback.
I looked deeply into it and this is what I found
The ActionServlet's init() method is called twice. (I don't know why, I
guess this is what I'm trying to find out...)
There is a series of method calls in the ActionServlet.init() method...
initModuleMessag
Oh; I'm not sure why you'd do that in addActionError(), though. That's what
prepare() etc. are for, isn't it?
d.
--- saint_john <[EMAIL PROTECTED]> wrote:
>
> Thanks for help.
>
> "View data" - some info from DB displayed in jsp after action execution
>
>
> newton.dave wrote:
> >
> > --- sa
Thanks for help.
"View data" - some info from DB displayed in jsp after action execution
newton.dave wrote:
>
> --- saint_john <[EMAIL PROTECTED]> wrote:
>> Yes, my action's addActionError() was called, but not the execute()
>> method.
>> It is very sad what I should fill view data inside addA
--- saint_john <[EMAIL PROTECTED]> wrote:
> Yes, my action's addActionError() was called, but not the execute() method.
> It is very sad what I should fill view data inside addActionError() instead
> of execute().
execute() isn't called if there's a validation error.
I don't know what you're refe
Yes, my action's addActionError() was called, but not the execute() method.
It is very sad what I should fill view data inside addActionError() instead
of execute().
newton.dave wrote:
>
> http://struts.apache.org/2.x/docs/file-upload-interceptor.html
>
> It's a validation error, isn't it?
>
Did you by chance build your project from the info on this page?
http://struts.apache.org/2.0.11/docs/struts-maven-archetypes.html
the archetype is uses as an example is old (2.0.5). Should a Jira be opened
to correct this?
On Jan 3, 2008 9:02 AM, Marcin Pietraszek <[EMAIL PROTECTED]> wrote:
> 20
http://struts.apache.org/2.x/docs/file-upload-interceptor.html
It's a validation error, isn't it?
d.
--- saint_john <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I've got the following problem:
>
> I have a form to upload files and everything works fine until i upload a
> file larger than upper
Hi all,
I've got the following problem:
I have a form to upload files and everything works fine until i upload a
file larger than upper limit.
In this case Struts2 doesn't call my Action.execute() method and i cant
notify user about file size problem.
It looks like Struts just rejects the reques
This is from a Struts 1.2.8 app of mine.
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
3
detail
3
0
You don¹t need the debug params but in this case it might not hurt. I cann
Hi all,
Struts 1.3.8
I have a single struts module and it seems as though my plugins are getting
loaded twice.
This goes for the validator, tiles, and my own written plugins.
I've found out that if in the web.xml I do not specify a value for
then the ActionServlet is not initialized
Thanks, I was finally able to figure it out...
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,15}$
> Date: Wed, 2 Jan 2008 21:06:10 -0800> From: [EMAIL PROTECTED]> To:
> user@struts.apache.org> Subject: Re: regex validation problem> > > hi,> >
> seems like ur missing validation and workflow interceptors.
Just a quick followup to my own post, in case anyone is interested.
The Velocity templates have been moved in S2 to "template/archive", so most
of my problems were solved by setting
"struts.ui.templateDir=template/archive" and moving my application templates
to "template/archive" as well (that wa
Please reply to the struts-user list, not directly to responders.
--- [EMAIL PROTECTED] wrote:
> actually I am using interceptor for checking the user is already login or
> not, if the user is not logged in it will redirect to login page
Okay. What you should do now, then, is include some useful
2008/1/3, Antonio Petrelli <[EMAIL PROTECTED]>:
> I think that the wrong dependency is in the struts2-tiles-plugin
> because it seems to reference an old version of the "render" method.
Of course this was my problem! I should use
org.apache.struts
struts2-tiles-plugin
2.0.11
I have a datetimepicker on my page, from the struts tag lilbrary:
<%@ taglib prefix="s" uri="/struts-tags"%>
...
So today is Jan 3. If I choose December 31, Monday of this week, the
value I get back in my field is 3/2/2008, and for the 30th, Sunday, I
receive 3/1/2008
Conversely, if I
I found that there is a Treshold parameter, here is short info:
/
"Sets the size threshold beyond which files are written directly to disk."
/This paramater is set to 0. So my attachment is not written to disk but
is keeped in memory. In struts 1 this parameters was set to 262144.
But my problem
I try both, but it has no affect.
Now i try it with an current 2.1.1 Snapshot, but the error still exists.
@Result(value = "result.action", type = ServletActionRedirectResult.class,
params={"bid","${bid}"})
DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:58) -
Überspringe //save
jav
AFAIK, the tag is best used when designing ajax applications,
meaning the usual interaction is to update the same browser window.
I would stay with the common HTML anchor tag to open a new window.
Gabriel
2008/1/3, Al Sutton <[EMAIL PROTECTED]>:
> Heres channelge for the day...
>
> I have a pa
With a 2.1.1 Snapshot the Image Upload works.
But now i receive in the target div only the message [object HTMLDocument].
Does anybody know why i don't see my result?
Best Regards
Johannes Geppert
Wes Wannemacher wrote:
>
> You can build it yourself pretty easily. If you have maven installed
2008/1/3, Marcin Pietraszek <[EMAIL PROTECTED]>:
org.apache.tiles.TilesContainer.render(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)V
>
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
>
> org.apache.struts2.dispatcher.StrutsResultSupport.exe
HI
I am new to struts2 . I have a problem in accessing get parameter. for
example I am working on my local machine and I have the following URL.
http://localhost:8080/PaymentModule-war/UsersList.action?added=true
I have setter and getter method for 'added'.
But my problem is I am not getting v
Hi, I did an update from version 9 to 11. And after that i got a lot of
errors in jsp:
/"According to TLD or attribute directive in tag file, attribute test
does not accept any expressions"
/I have many expressions in s:if test=${value_here}, s:submit
src="${imgPath}/save_attachment.gif"" et
Hi,
Im trying to give Struts a default locale which is used in the whole
application (e.g. org.apache.struts.action.Action.getLocale(request); or
javax.servlet.ServletRequest.getLocale();).
I don't want to use the locale settings from the browser anymore but define the
language used in the Act
Hi.
Im using struts 2 s:file tag for uploading files. But it does not work
for empty files -> 0bytes. Temp file is not created in tomcat tmp
directory. Why ? Is it a struts bug ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Heres channelge for the day...
I have a page which contains a link, when the user clicks the link they get
a PDF which they need to go off and do something with (not part of the
webapp).
What I'd like to do is open a new browser window with the PDF in and retain
the page with link in the origin
The use of tokens is very simple.
Let's say you have two actions, A and B. Action A will call setToken and put
into the session a unique identifier. Action A then forwards off to a page
to display to the user. Struts Form tag knows to output the token as a
hidden field. When that is submitted to a
54 matches
Mail list logo