Try this: %{#request['javax.servlet.forward.context_path']
Arnaud
-Message d'origine-
De : cilquirm [mailto:[EMAIL PROTECTED]
Envoyé : lundi 29 octobre 2007 17:51
À : user@struts.apache.org
Objet : Re: S2: EL in tags 2.0.11
I believe this was a security fix, as there was an issue wher
I tested the code again and found the tomcat console print error msg
below,even i commented the codes that do the upload.
2007-10-30 15:59:02,015 [
org.apache.struts2.dispatcher.multipart.MultiPartRequest]-[ERROR]
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the
request
I haven't tried including the sx:head tag within a sitemesh template
myself, but a stack overflow implies there's probably a circular
reference. Did you get a stack trace anywhere?
I can't think of any reason it shouldn't work because sx:head it's just
rending a template the same as the other
Thanks for Julien and Dave's reply.
To Julien:I've try the method you suggust,it didnot work either.
To Dave: the "id" attribute included in the form upload post via a hidden
form field
2007/10/26, Dave Newton <[EMAIL PROTECTED]>:
>
> Is the "id" attribute included in the form upload post via a hi
Nuwan,
No, but now I have struts.xml in the correct directory and I am getting the
same error.
(Also, where should the jsp file go?)
Thanks...
Troy
nuwan chandrasoma-2 wrote:
>
> Hi,
>
> do you have your struts.xml file inside WEB-INF/classes folder?
>
> Thanks,
>
> Nuwan
>
> Troy S wro
Good Day,
I changed my reference to <@sx.head /> and <@sx.datetimepicker /> but I have
found that my site mesh template cannot have the <@sx.head /> declaration
but that each page needs the <@sx.head />. I cannot put it in both places
because then I get a stack overflow.
My environment
-
hi i followed this tutorial.. in JasperReports/Struts 2 Integration
http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this
exception
Data source value for data source myList was null.
i dont know whats causing the problem..thanks in advance.
--
View this message in context:
htt
I found that it goes to main.jsp,
and update is called at once.
I have written code to call update only on change of select.
THis is code in my jsp.
***
images/dashboard.jpg
Hi,
do you have your struts.xml file inside WEB-INF/classes folder?
Thanks,
Nuwan
Troy S wrote:
Struts fans.
I am trying to add to the struts 2.0.9 blank application. I tried adding
actions based on the excellent book in progress Struts2 in Action.
I tried loading the URL
http://ashanti:80
Struts fans.
I am trying to add to the struts 2.0.9 blank application. I tried adding
actions based on the excellent book in progress Struts2 in Action.
I tried loading the URL
http://ashanti:8080/struts2-blank-2.0.9/chapterTwo/Name.action and got the
error
There is no Action mapped for action
No, that improvement is included in the struts-dojo-plugin used by only
2.1.x.
But you can do it yourself with a bit of effort:
http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-209.html
[EMAIL PROTECTED] wrote:
I've read the release notes to see if something has been don
hi i followed this tutorial.. in JasperReports/Struts 2 Integration
http://cwiki.apache.org/WW/jasperreports-tutorial.html but I got this
exception
Data source value for data source myList was null.
i dont know whats causing the problem..thanks in advance.
--
View this message in context:
htt
Just wanted to point out: http://jcp.org/en/jsr/detail?id=303 which is
relevant to our discussion. No activity on this JSR since July of '06. I'm
not convinced that annotations really solve the problem. I think for
anything more than simple type checking you need a true programming language
to
I tried 2.0.10 and experienced the same problem. Does anyone have any
ideas on this one?
Thanks,
Brian
On Oct 24, 2007, at 11:18 PM, Brian Trzupek wrote:
I am trying to upgrade our app to 2.0.9 and having difficulty in the
optiontransferselect tag.
Here is a sample of what a typical OTS t
My apologies if it was misinterpreted. I did not say it WOULD work, I said
it would take some effort to get it to work, but that it does not work.
At this point, I believe you have a number of options :
1) You can use the method i showed you :
2) You can build your own custom copy of str
On 10/29/07, Manuel Correa <[EMAIL PROTECTED]> wrote:
> So, I have to write a custom library for each method that I want access
> for the request??
>
> Manuel Correa.
>
No, you wouldn't have to write any tags, just change the rtexprvalue
attributes in the tld file for the tags you want to use JSP
page
Didn't work!
Have to be a way to active the EL in the Attributes..
Manuel Correa.
-Original Message-
From: cilquirm [mailto:[EMAIL PROTECTED]
Sent: Monday, October 29, 2007 3:17 PM
To: user@struts.apache.org
Subject: Re: [struts] S2: EL in tags 2.0.11
I could be wrong ( and
I could be wrong ( and I hope I am ), but I thought the request object in
that case was just a map facade to the underlying request attributes map.
Which is why I supposed you say #request['foo'] vs.
#request.getAttribute('foo').
Same goes for session. ( #session['foo'] vs #session.getAttribu
cilquirm wrote:
you could do this
Isn't the request on the valuestack?
should be all you need...
http://wiki.opensymphony.com/display/OGNL/OGNL+Basics
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
you could do this
Basically, stuff the object into the pageContext somehow and then reference
it again via ognl.
It's a pain, but a very slight one.
-a
Manuel Correa wrote:
>
> How I get the contextPath with OGNL?? Or the other request methods?
>
> Manuel Correa.
>
> -Original M
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
I've been a struts 1 user for years, but I've never used the "token"
capability to avoid double-submissions, etc. I have a question about
their use and efficacy. The best example I can find is very
straightforward (which is good):
http://www.lea
So, I have to write a custom library for each method that I want access
for the request??
Manuel Correa.
-Original Message-
From: cilquirm [mailto:[EMAIL PROTECTED]
Sent: Monday, October 29, 2007 12:51 PM
To: user@struts.apache.org
Subject: Re: S2: EL in tags 2.0.11
I believe this wa
I think drools would be way overkill for simple validation. Not only would
there be a high learning curve, I don't think it would handle the most
involved cases. I really think we need to do Java by default.
The reason I included a way to autofind the validation class is to mimic how
the existi
--- Marcos Mendonça <[EMAIL PROTECTED]> wrote:
> By the way how do I map many input text fields with
> the same name on the action side:
Well, your example only has one textfield named
"terminal", so you'd provide get/setTerminal methods.
If you want to map it to a collection then expose a
Collec
I believe this was a security fix, as there was an issue where ognl
expressions could be used to do something drastic to the application server
( like System.exit ).
I believe the expectation is that you can get around it by creating your own
customized tld or something like :
hth,
-a
Man
Action chaining is probably the closest you'd get
out-of-the-box.
http://struts.apache.org/2.x/docs/chain-result.html
http://struts.apache.org/2.x/docs/action-chaining.html
Not a particularly good practice, however.
d.
--- lbastil <[EMAIL PROTECTED]> wrote:
>
> I know about the possibility to
How I get the contextPath with OGNL?? Or the other request methods?
Manuel Correa.
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Monday, October 29, 2007 12:17 PM
To: Struts Users Mailing List
Subject: Re: S2: EL in tags 2.0.11
On 10/29/07, Manuel Correa <[EMAIL P
I've read the release notes to see if something has been done about the
killing
perfomance head tag. But I don't see anything about it. Can someone tells
me if
something has been done.
thank in advance.
Meissa
"Ted Husted" <[EMAIL PROTECTED]>
Envoyé par : [EMAIL PROTECTED]
29/10/2007 01:3
Tom Schneider wrote:
This is essentially what we're doing as well, but it is far from an ideal
situation. The issue I've seen is that you can't easily use the validators
from the xml in the validate() method. Another disadvantage is that
validation is in 2 different places. Also, some of our v
By the way how do I map many input text fields with the same name on
the action side:
In this case, how do I match, this field on the action side:
Thanks again!!
On 10/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Marcos Mendonça <
On 10/29/07, Manuel Correa <[EMAIL PROTECTED]> wrote:
> In S2.09 is possible to use EL in the properties tags. For example:
>
>
>
> That because the parameter in tld is rtexprvalue="true"
>
> In S2.0.11 this is not possible (rtexprvalue="false"). I want to know
> is some property that active and
I know about the possibility to redirect to another action by result type
"redirect-action"
But this does a redirect (HTTP 302).
Is the same possible with a "forward" instead of redirect?
Thank you very much in advance,
basti
--
View this message in context:
http://www.nabble.com/-s2--forward
In S2.09 is possible to use EL in the properties tags. For example:
That because the parameter in tld is rtexprvalue="true"
In S2.0.11 this is not possible (rtexprvalue="false"). I want to know
is some property that active and un-active this parameter in the TLD. Or
what is the best
--- Marcos Mendonça <[EMAIL PROTECTED]> wrote:
> Say I want to generate input fields and name them
> according to the iterator value. How would I do
that?
>
> count="%{getTamanhoGrupo()}">
>
>value="11">
>
>
>
You'd probably just want to
Yes, I realized that after I posted the question.
generator working ok now...
Thanks, just one more question:
Say I want to generate input fields and name them according to the
iterator value. How would I do that?
I'd like to create
are there any? I got lot of trouble just switching the jars from 2.0.9
to 2.1.0 e.g. template exception about including
also lot of log errors/warnings complaining missing properties so had to
move away my current struts.properties.
TIA,
regards,
Giovanni
---
--- Marcos Mendonça <[EMAIL PROTECTED]> wrote:
>
Hello
I'm using Struts2.0.9.
I have to generate a number o inputs acording to a parameter. I tried
using the Iterator Generator Tag on the Struts2 Showcase application,
but the output for me is nothing, null.
This is my jsp code:
getGroupSiz
And 4 - have you looked in the source for unit tests testing this
functionality?
Tom Schneider wrote:
My first suggestion is the make sure that the package.properties files are on
the classpath when you run your junit test.
Secondly, it would be helpful for us to help you figure this out if yo
--- Serge Mathieu <[EMAIL PROTECTED]> wrote:
> I have added the "throws IOException,
> ServletException" at the end of my
> method execute declaration but the problem persist.
Adding random thrown exceptions probably won't help.
> java.lang.ClassNotFoundException:
java.com.test.FirstTest
Have yo
please help on this issue.
does nobody have any hints?
Thank you in advance,
basti
lbastil wrote:
>
> I use model driven actions and want to use validation by annotation.
>
> so I have somethings like:
>
> @Validation
> public Class ...Action implements ...{
>
> ...
>
>@VisitorField
May be it would be useful to make struts tags implements
javax.servlet.jsp.tagext.DynamicAttributes interface. Then we can declare a
tag handler accepts additional attributes with dynamic names.
Laurie Harper wrote:
>
> Igor Vlasov wrote:
>> Hello
>>
>> I want to add a user defined HTML attri
Greetings!
I have a problem with downloading file, using DownloadFileAction, same as in
Showcase.
There was a problem, like mine, and it was solved, but this doesn't help
me...
In my application I need to upload the MSAccess db on the server, and, after
processing, download it back.
Uploading an
No, there is no exception.
On 10/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> I think validation can pass if an exception is thrown. Please check your
> log
> files that no error is occurring with your validation.
>
> Paul
>
--
Best regards,
Bashmaкov Anton
Hi
I am using struts2.0.9 with sitemesh.
I am using of struts2.
It works fine.
But problem occurs that it also renders some contents of decorators of
sitemesh with dropdown.
i have also put in decorators.xml then also it doesn't
display it properly.
If any one knows what could be the problem?
P
I just built Struts 2.1.0 from SVN and the showcase works wonders
specifically datetimepicker works like a dream! :) lots of nice stuff in
there ... many other examples actually work e.g. Basic Validation,
Autocompleter works much better e.g. does not shake the whole page when
clicking the lis
hi,
I was playing a bit with the latest 2.0.11 GA release and noticed that
the timepicker does not display anything. I directly deployed the
show-case 2.0.11 in Tomcat 6. I am on Linux fedora using Firefox and
Konqueror neither browser show anything.
TIA,
regards,
Giovanni
-
47 matches
Mail list logo