Thanks David
But I still don't know which value should I set for name property of
, that is, which value should I fill xxx in ?
Talos
- Original Message -
From: "David Chapman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, March 19, 2008 11:36 AM
Subject: Re:
My first reply to mailing list. Be gentle :) *
ActionErrors.GLOBAL_ERROR* is deprecated.
Use *ActionMessages.GLOBAL_MESSAGE* instead.
>From ActionMessages.java ...
*public static final String GLOBAL_MESSAGE =
"org.apache.struts.action.GLOBAL_MESSAGE";**
*
djc
On Tue, Mar 18, 2008 at 8:
Hi all,
Can anyone tell me that the real value of constant ActionErrors.GLOBAL_ERROR?
Or where to find it?
Actually, I want to use the tag to only display the error
defined with ActionErrors.GLOBAL_ERROR.
I have the struts javadoc api, but I cannot access the Internet.
Thanks.
at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__ Informação do NOD32 IMON 2954 (20080318) __
Esta mensagem foi verificada pelo NOD32 sistema antivírus
http://www.eset.com.br
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That means the form is not being submitted via ajax. The problem is not
with the target, but rather the div that contains the form..
Make sure it was loaded with with separateSripts=false and
executeScripts=true (and parseContent=true if in 2.1).
You can definitely have one tab inside another a
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Can anyone tell me where I can get some more in-depth details on the way
> the file upload interceptor works? Is there any documentation between
> the levels of "how to use it" and the source code?
Not that I'm aware of. The source code, however, is
Can anyone tell me where I can get some more in-depth details on the way
the file upload interceptor works? Is there any documentation between
the levels of "how to use it" and the source code?
I'm trying to take an uploaded document and then transfer it to a
backend in a different thread. But whe
I've had this book for about a week now. I bought it because I'm new to S2 and
wanted something that could give more detail and examples than the S2
documentation wiki and the "in action" book isn't available until May-ish. S2
Design and Programming serves the purpose but not with the depth I ha
On 9.2.1 and 9.2.2 I use
classpath:applicationContext.xml
/WEB-INF/spring/otherAppContext.xml
That is a space between the context file names. I don't use wildcards
because I have contexts that I don't want loaded in WL.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
I haven't read it myself, but I think I saw a review over at
theserverside.com
Nils-H
On 18. mars. 2008, at 20.59, "Karr, David" <[EMAIL PROTECTED]> wrote:
I'm looking for the best and up-to-date Struts2 books. I see that
"Struts 2 in Action" is coming out a little later this year, but I
I'm looking for the best and up-to-date Struts2 books. I see that
"Struts 2 in Action" is coming out a little later this year, but I also
noticed "Struts 2 Design and Programming: A Tutorial", which came out
with a second edition in January. Has anyone here looked at this,
outside of reading the
MG,
Thanks a lot.
Ed
Griffith, Michael * wrote:
>
> Ed,
>
> Last updated Mar 02 2006 -- so this might not be the best list...
> http://struts.sourceforge.net/community/hosts.html
>
> This is current...
> http://struts.apache.org/2.x/docs/application-servers.html
>
> MG
> -Original Mes
By chaining several actions together. All of the getters inside those
actions are availible to the resulting .jsp/vm/or ftl.
I have used chain in cases where I had a more generic action that supplied
values for picklists and I needed those values supplied to several pages.
The action definition
I am using freemarker, but I do not think there would be an advantage to
using JSP in this case.
What I am looking for in and object graph of validation rules so I can
"paint" my jquery validation rules from the the backend validation.
Matt
Laurie Harper wrote:
>
> matt.payne wrote:
>> I reall
Ed,
Last updated Mar 02 2006 -- so this might not be the best list...
http://struts.sourceforge.net/community/hosts.html
This is current...
http://struts.apache.org/2.x/docs/application-servers.html
MG
-Original Message-
From: maitre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2
I don't want to build the framework from scratch, I just want to use the
distribution package and customize it if that's possible.
Ed
Alex Choi wrote:
>
> A Java Web Application that uses Apache Struts 2 framework can be written
> or
> developed using JDK version 1.5. It is possible to use JD
Ed,
Additional information here: http://struts.apache.org/primer.html
MG
-Original Message-
From: Alex Choi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2008 1:27 PM
To: Struts Users Mailing List
Subject: Re: Newbie question
A Java Web Application that uses Apache Struts 2 fram
A Java Web Application that uses Apache Struts 2 framework can be written or
developed using JDK version 1.5. It is possible to use JDK 1.4 but your
Java Software Developers must use the backward compatible Apache Struts 2
jars for JDK 1.4 for Struts 2 development
Here are the details you are int
Thanks, y'all.
Where can I find the correct JDK and API specs so I can ask my hosting
company?
Ed
Griffith, Michael * wrote:
>
> Agreed. Look for a provider that offers the correct JDK and API specs.
>
> MG
>
> -Original Message-
> From: Alex Choi [mailto:[EMAIL PROTECTED]
> Sen
Agreed. Look for a provider that offers the correct JDK and API specs.
MG
-Original Message-
From: Alex Choi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2008 12:55 PM
To: Struts Users Mailing List
Subject: Re: Newbie question
I think you need to rephrase your question. Apache
Hi Jeromy,
That did not work. It still posting as a new page.
One more thing is the tabbedPanel is already inside another tabbedpanel (2nd
level nested).
Will that cause this problem?
thx
Jeromy Evans - Blue Sky Minds wrote:
>
> Put a div inside tab2 and make that inner div the target.
>
> I
Hi,
I have a rather strange problem. I am using token-session interceptor to
deal with the multiple requests problem. The relevant part of the struts.xml
file is appended below.
This works fine in Firefox (2 and 3 beta) but fails in IE7. When the form
(which contains the s:token tag) submit butto
I think you need to rephrase your question. Apache Struts 2 is a specific
Java Web Application framework technology and Java Web Application is the
more general and generic term I think you meant to say. In terms of Web
Hosting, you would be interested in Web Hosting Providers that allows
deployme
I like KGBInternet.com. They are affordable and will provide you with
the services that you need.
maitre wrote:
Hi,
I'm trying to find a decent hosting company that supports STRUTS 2. Are
there any recommendations?
Thanks,
Ed
--
Hi,
I'm trying to find a decent hosting company that supports STRUTS 2. Are
there any recommendations?
Thanks,
Ed
--
View this message in context:
http://www.nabble.com/Newbie-question-tp16125218p16125218.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
Thanks. That's interesting. I am using Weblogic9.2, and I seem to have no
problem using the request object in the jsp( for getParameter at least). I
am wondering what type of request object manipulation, as you are referring
to, may cause issues?
Jeromy Evans - Blue Sky Minds wrote:
>
>
> Th
--- Stefan Schwarz <[EMAIL PROTECTED]> wrote:
> I want to display a block if the field has an error like:
>
>
> display this...
> display that...
>
>
> Is there a way?
JavaDocs are your friend. ActionSupport's getFieldErrors method [1] returns a
map keyed from the input field name.
Forgive me if I am on the wrong track here, I think I picked up this
thread in the middle... but I think I would answer:
> How are we suppose to supply the fileName?
By setting a response header:
response.setHeader("Content-Disposition", "inline;filename="foo.xyz");
MG
-Original Message---
Hi,
I've been looking for a check (in a JSP) if a certain field has an error
assigned.
I know (so far) that I can display the error message by using:
That's not what I'm looking for. I want to display a block if the field has
an error like:
display this...
display that...
I use Acegi security to make sure that all of my pages are secure. I
find it very flexiable, but not always easy to configure.
If you are already using spring as you IoC, then you might as well take
advantage of Acegi.
Jeromy Evans wrote:
I've been told that some older containers don't allow
Plus: nothing under WEB-INF can be referenced by a browser, so JSPs
stored there can't be called directly.
Minus: nothing under WEB-INF can be referenced by a browser, so JSPs
stored there can't be called directly... :-)
It depends on your requirements. But generally you will want to route
r
Lukasz Lenart wrote:
I'm not sure were is the problem but I've just checked such simple
example below and everything is ok. Maybe you should consider to use
Long instead of Integer, because when you enter more then 2147483647
to the field you will get some strange value back to the input
(because
The techniques shown in the earlier examples would work equally well in
the byte stream example. How you determine the source of the data to
send back to the browser is really up to you.
- configure it statically in struts-config.xml (as per the first two
exxamples
- take it from a request p
matt.payne wrote:
I really like the treatment the JQuery
http://jquery.bassistance.de/validate/demo/ validation plugin (not struts
plugin), gives for a user experience. I would really like the rules to come
from back end rules and decorate the form fields the same way if the back
end bounces a
GF wrote:
I have something like
%{#application.one.two.three}
is it possible to do something like:
%{#application.%{stringVariable}.two.three}
Perhaps something like %{#application[stringVariable].two.three}?
L.
-
To unsub
eod wrote:
Hi,
I'm seeing input form data disappear if the validation fails & the page is
re-displayed; have Googled around but found nothing specific to dyna forms,
so I'm hoping someone has come across this & know what the issue is; I had
tried setting the action's scope to session as a test,
I've been told that some older containers don't allow you to forward to
JSP's behind /WEB-INF. It wouldn't surprise me.
Other than that I've found Ian's suggestion to be the most effective way
to ensure users can't access JSPs directly, IMO a must for Tiles, html
fragments and any page using str
Thanks Dale very much for your help.
Dale Newfield <[EMAIL PROTECTED]> wrote: Kalpesh Modi wrote:
> Is there anyway to use the JSP 2.0 tag files and the Struts 2.0 tags together.
Yes, all you have to do is add the taglib at the top of your .tag file
so that you can refer to the s: tags. The dif
Is this considered the Best Practice: Keeping all JSP's under the WEB-INF
directory? We have not done that on my project, I am curious if there are
plus' and minus' to this?
Thanks,
John
The easiest way is to always have the user call an action to get a JSP,
even if it is a simple page. You
Put a div inside tab2 and make that inner div the target.
If you target the tab you're trying overwrite the markup for the tab
widget. By targeting a div inside the tab you can replace just the
content of tab.
You may also prefer to make the inner div a remote div and the tab
non-ajax becau
I don't have a good answer for you... But I have experienced this with
WebLogic 9.2 MP2. Oddly, WebLogic 9.2 MP1 does not experience this
issue.
After adding the jar(s) to satisfy any NoClassDefFoundError exceptions,
I noticed that the Struts2 web application ran incredibly slow on MP2,
whereas i
I have created a template which utilizes parameters that are passed into
it to generate HTML conditionally based on those parameters. For
example:
However, I do not wish to require that all the parameters be required.
For example, it would be
Well upon further investigation ... the following does not work on WL
but works on jetty
contextConfigLocation
classpath*:applicationContext*.xml
org.springframework.web.context.ContextLoaderListener
WL becomes happy if this is specified:
contextConfigLocat
I'm not sure were is the problem but I've just checked such simple
example below and everything is ok. Maybe you should consider to use
Long instead of Integer, because when you enter more then 2147483647
to the field you will get some strange value back to the input
(because you loose precision ;-
>
By default s:password tag don't shows value of your password, you can
change such behaviour by adding attribute showPassword=true, but you
should consider security issue.
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
It seems that anything I do today with WL and struts 2 does not seem
to be working :-(
So, now I have an interceptor (S2 interceptor). I would like to wire a
spring managed service on it. So, I use spring plugin + autowire by
name convention. There is nothing fancy really just a declaration.
but
Thanks Lukasz it worked for textfields using
But I have the same problem when I use it for
this is my listbox:
And my password fields:
Hi,
On 18/03/2008, meeboo <[EMAIL PROTECTED]> wrote:
>
> Has anyone had success with and setting the struts.date.format
> property?
>
> meeboo wrote:
> >
> > Hi all
> >
> > I have set my struts.date.format properties but they seem to have no
> > effect at all.
[snip]
> > I've also noti
Thanks a lot for your answer. Concerning request =
ServletActionContext.getRequest(); and tmp =
request.getParameter("cardNo"); - I am doing it cause I did not manage
to use getCardNo() method - it always return 0 in the case of int. Here
is my action class - probably you will help me again..))
JA
>
>
> width="115">First Name
> width="142"> class="form_field">
>
>
>
>
Has anyone had success with and setting the struts.date.format
property?
meeboo wrote:
>
> Hi all
>
> I have set my struts.date.format properties but they seem to have no
> effect at all. The set value is
> struts.date.format=-MM-dd but when using the tag the format
> is for example "Ja
I get the following log in my console:
2008-Mar-18 16:21:17,671 - DEBUG freemarker.cache - Could not find template
in cache, creating new one;
id=[template/xhtml/fielderror.ftl[en_US,UTF-8,parsed] ]
2008-Mar-18 16:21:17,671 - DEBUG freemarker.cache -
template/simple/fielderror.ftl[en_US,UTF-8,pa
Hi Lukasz,
Thanks for responding..
Snippet of Jsp:
First Name
2008/3/18, Sonu S <[EMAIL PROTECTED]>:
> 1) there is one submit button on that page and one action is associated with
> that submit button. i can call the associated action class once the user
> finish the form and click the submit button. When user select from list i
> need to call another act
> request = ServletActionContext.getRequest();
> String tmp = "";
> try {
>tmp = request.getParameter("cardNo");
>Integer i = this.getCardNo();
>if (tmp != null && tmp.length() > 0) {
>
> But when I enter the value in the textbox and click submit again, the
> validation error for next is displayed correctly but entered value
> disappears in the textbox which is abnormal .
Maybe you are redirecting to the next page? Could you paste snippet
for your struts.xml and jsp?
Regards
Hello everybody,
I need to validate only 1 field on the jsp. It value should be between 1 and
99. Initially I started to implement through int validation but it seemed
to go wrong - it works with some limitation - maximum value should not exceed
1000 or something like that. I am trying t
I have done a bit more digging and
somehow, somehwere there is a call to
com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(Class, List)
the class in arguments list is org.apache.struts2.views.velocity.VelocityManager
So somehow xwork is instructed to add injectors to that class.
The ot
Hi,
I just started working on Struts 2 + Ajax. I am stuck on one problem. Can
somebody help me?
I have main page which has tabbedPanel with 3 remote tabs.
When i click submit in remote page in tab1, i want to load result page in
tab2.
I gave tab2 div id as target for the submit but the page does
Thanks Jeromy and Lukasz!
I could manage to get the field specific error messages using :
firstName
I have a new problem, when validating the page I get error messages as
desired.
Eg: Mandatory field validation giv
hmm it seems that there is an unresolved issue:
https://issues.apache.org/struts/browse/WW-2228
any idea beyond what is in the comments? I mean I understand that
sitemesh has velocity as optional jar but it is optional for a reason,
I do not understand why an exception needs to be thrown.
odd.
It's looking for some velocity classes on the classpath. You're
probably missing some velocity jars in your WEB-INF/lib folder.
Nils-H
On 18. mars. 2008, at 07.54, "Alex Shneyderman"
<[EMAIL PROTECTED]> wrote:
I get an exception while deploying WAR to WL 10. Here is the stack
trace:
j
62 matches
Mail list logo