19:57:00,515 ERROR [ActionServlet] Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable. Most likely, this is due to an incorrect or
missing library dependency.
java.lang.NoSuchMethodError:
org.apache.commons.validator.V
Hi all,
I have created a sample struts application
Im trying to make use of the validator framework
The steps which i have carried out are
1 .I have included validation.xml and validation-rules.xml in WEB-INF
2 .then in struts-config.xml i have included
the required
We met this exception before under tomcat. It seems like some version
problem. At last we replaced the tools.jar under Tomcat/common/lib with the
one under jdk/lib.
Have no idea about Oracle Application Server 9i, and just wish this tip
might help.
Fitzwilliam
--
北半球的狗几月份掉毛?
Then customizing the theme is probably the way to go:
http://struts.apache.org/2.x/docs/themes-and-templates.html
L.
Charbel Abdul-Massih wrote:
Laurie,
That wrapped markup around all the radio buttons, not each of the
button/label combination :(
-Original Message-
From: news [mail
By the way, the application works fine under tomcat 5.5 with JDK 1.5, with
the normal struts-core and xworks jars and no retrotranslator jars.
-Original Message-
From: Jason Wyatt [mailto:[EMAIL PROTECTED]
Sent: Friday, 1 June 2007 12:09 PM
To: 'Struts Users Mailing List'
Subject: [S2] S
config-file
my first jsp is FileUpload.jsp like this
-
Upload File
after clicking the Upload file button, the uploadSuccess.jsp looks like
this
The correspondin form beans are
public class StrutsUploadForm
Thanks your "synchronization" idea solved my problem of null reference ,
The reference is propery getting null, I just checked,
Regarding reinitialization, I just put my initialization code in execute
method of the action.
and made something like
public class ClsAction extends Action {
public
I tried your method , debug the program , it shows that the variable becomes
null,
But after login in again the "public static GraphicsServer myServer =
ClsInitializeServer.getInitializeInstance(); " class level variable does
not execute but still its refrence is available to other parts of the
p
Hi, I'm trying to deploy Struts 2 on Oracle Application Server 9i, which
uses JDK1.4, and I'm getting an error:
Caused by: java.lang.UnsupportedClassVersionError:
org/apache/struts2/codebehind/CodebehindUnknownHandler (Unsupported
major.minor version 49.0)
I included the backported Struts 2 and
you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the
instance of the graphics serverpublic Object lockObj = new Object();public
static GraphicsServer myServer = ClsInitializeServer.getInitializeInstance();
// End
Hi,
I have one problem
In my action class , I am initilazing my graphic software server as a static
variable e.g.
public class ClsAction extends Action {
// Start Intialize the instance of the graphics server
public static GraphicsServer myServer =
ClsInitializeServer
My guess is there will continue to be bug fix and perhaps minor
feature improvements on WebWork. There are a lot of WebWork 2
applications that may not be actively developed, but need the latest
bug fixes, so I foresee WebWork 2 being supported indefinitely, just
like Struts 1.
Don
On 5/31/07,
Hello,
Thanks!
The reply resolved a puzzle in my mind :-)
If I want to use Struts2, then I just go to http://struts.apache.org/2.x/,
I needn't care Struts1 and WebWork.
a cup of Java, cheers!
Sha Jiang
Musachy Barroso wrote:
>
> There is no new development going on in WW. You might see minor
Hi Volkan,
I had a similar issue which turned out to be a a bug in the result
page. It seems when you have an error in an ajax result page nothing
gets reported (probably for good reason), but it makes things
difficult to debug.
The simplest way I find to resolve it is to make the ajax ca
you could use JQuery to run a script after the document is loaded. See
at this url:
http://www.learningjquery.com/2006/09/introducing-document-ready
Raghupathy, Gurumoorthy wrote:
Put your javascript at the last ... so you are sure that my the time your javascript is being executed your html is
I produce all my jsp pages is xml format - ie. as 'jspx' jsp-documents. I
find a serious drawback to the struts tags, and I'm wondering if anyone has
a suggestion. The xhtml does not allow element content within other
elements; for example the tag cannot contain a tag. Lots of
examples in the
Laurie,
That wrapped markup around all the radio buttons, not each of the
button/label combination :(
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, May 31, 2007 3:06 PM
To: user@struts.apache.org
Subject: Re: [S2] How do I get radio bu
You could switch to the xhtml or css_xhtml theme, which would give you
additional markup around each radio button / label pair. You would then
have sufficient markup structure to style with CSS.
Alternatively, create your own custom theme, or just write a custom
template for this specific tag
If you're hand-coding the Javascript, you may also be able to write
something like
document.addressForm['address.street']
or
document.addressForm.elements['address.street']
L.
Jeromy Evans wrote:
> Interesting problem...
> Using textfield as an example, the template (eg. text.ftl) takes th
Do you have any validation configured on ActionA? Could there be a
conversion error on one of the request parameters? Have you tried
creating an input result and perhaps using s:debug or something to see
if there's anything unexpected in the response that might explain the
input redirect? You c
Please use "user@struts.apache.org" for the "to:"
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
I am interested in Table Tags Project to apply it resources in a
project with Struts 2, but I'd like to know if you are planning to
implement some functionality to add a freemarker template in the tags
using the theme attribute like in old Struts 2 s:table tag.
Thank's
André Faria
Chris-
See answers below...
Christopher Schultz wrote:
I just ran it through Wireshark and followed the TCP stream verifying
that it's being encoded correctly into 3 bytes - it is (E2 80 A2).
Is this the UTF-8 code that /should/ represent those bullet characters?
I would assume so.
Will do! Hope you can make it.
--
James Mitchell
On May 31, 2007, at 11:41 AM, Ian Roughley wrote:
No, no paypal account. You can buy me a beer if I make it to
apachecon.
James Mitchell wrote:
Ian, Nice job! I don't need the paper copy, but I'd like you to
get the full price of the
--- David Harland <[EMAIL PROTECTED]> wrote:
> How exactly do you do that, can you give me an
> example please?
http://struts.apache.org/2.x/docs/strutsproperties.html
### possible values are: none, get or all
struts.url.includeParams = get
(But you should probably do it via XML constant
config
Guru,
The HTML that's outputted by struts is like this (with the "simple"
theme)
label 1
label 2
Using the "display:block" would put my radios on sperate lines, but also
put the labels for the radios on separate lines as well...I want the
radio and label associated with it to stay on the same l
I missed that one. I added a note on the url tag page.
musachy
On 5/31/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> +1 to support the change. It'd reduce my code by a
> chunk on pages that take a parameter and have a link
> menu on one side.
While I a
How exactly do you do that, can you give me an example please?
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 31 May 2007 16:43
To: Struts Users Mailing List
Subject: RE: s:url tag Why isn't includeParams='none' the default
setting?
--- Al Sutton <[EMAIL PROTECTED]
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> +1 to support the change. It'd reduce my code by a
> chunk on pages that take a parameter and have a link
> menu on one side.
While I agree that 'none' should be the default (I
think we had a thread about this not too long ago) you
*can* just set it in y
No, no paypal account. You can buy me a beer if I make it to apachecon.
James Mitchell wrote:
Ian, Nice job! I don't need the paper copy, but I'd like you to get
the full price of the book. Do you have a Paypal account that I could
donate some funds to?
--
James Mitchell
On May 29, 20
Put your javascript at the last ... so you are sure that my the time your
javascript is being executed your html is rendered
-Original Message-
From: Srepfler Srgjan [mailto:[EMAIL PROTECTED]
Sent: 31 May 2007 14:44
To: Struts Users Mailing List
Subject: Re: how to check if page has bee
I figured this out.
All I did was change the method signature on my Action class from:
setNotificationUsers(Collection notificationUsers)
to
setNotificationUsers(Collection notificationUsers)
And Struts/XWork took care of the rest.
Brian-
On May 31, 2007, at 10:08 AM, Brian Trzupek wrote:
Had the same problem recently, the choice I made was to make the parameter
for the second action the same type as the parameter for the first, i.e.;
ActionA has public Integer getValue()
ActionB has public setValue(Integer x)
Worked for me with Longs.
-Original Message-
From: Brian Trzup
+1 to support the change. It'd reduce my code by a chunk on pages that take
a parameter and have a link menu on one side.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 31 May 2007 15:25
To: Struts Users Mailing List
Subject: Re: s:url tag Why isn't includeParams
Apply a style sheet class which has "display:block"
http://www.w3schools.com/css/pr_class_display.asp
Google is your best friend :)
Guru
-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED]
Sent: 31 May 2007 15:16
To: Struts Users Mailing List
Subject: [S2] How
I am using the optionTransferSelect tag all over the place, love this
control!
Anyways, when the id property of list (which is an int) gets
displayed in the HTML by the tag the number get formatted with a
comma when the numbers get into 4+ digits.
Example output:
[EMAIL PROTECTED]
I've been asking myself that question for a while, I'd say it seems like it
would be a better choice for the default value.
musachy
On 5/31/07, David Harland <[EMAIL PROTECTED]> wrote:
Hi,
How come the default setting for the includeParams attribute for the
s:url tag is not 'none' ?
___
I am using the following tag in my jsp
Currently, my map has two entries. The radios are displayed on the same
line...I would like them displayed on 2 separate lines...Is there an
easy way to do this???
Thanks,
Charbel
I tryed this problem with FireFox, IE6, IE7. Same results.
On 5/31/07, Mark Shifman <[EMAIL PROTECTED]> wrote:
I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.
I was wondering if this was a caching issue with your browser. I
ok, the problem has been solved. It was Sun App Server policy problem.
I added the following permission to the server.policy file and it solved the
problem.
permission java.security.AllPermission "createClassLoader";
--
View this message in context:
http://www.nabble.com/-S2--HTTP-Status-404
Hi,
How come the default setting for the includeParams attribute for the
s:url tag is not 'none' ?
__
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learnd
Yup, I think this is a JS issue,
Perhaps you should check if the DOM is loaded.
Torsten Römer wrote:
Couldn't you use the JavaScript "Load" event to know when the page has
been completely rendered, and postpone your reload until then?
Torsten
Greg Stasica schrieb:
hi,
My problem is that I
The problem is that it's trying to pick up the input result for the action
after the redirect from the action where the error occurred, so it's
basically trying to do the following in one step;
ActionB --input result redirect--> ActionA --input result--> Somewhere else
instead of what I would exp
--- Al Sutton <[EMAIL PROTECTED]> wrote:
> Anyone seen the same behaviour?
I think that if there are action errors it will try to
show the input result because, well, it thinks there
are errors.
d.
Mo
There is no new development going on in WW. You might see minor releases to
fix bugs, but that's all. I might be off on this one, but I think 2.2.5 is
the last release.
musachy
On 5/31/07, jiangshachina <[EMAIL PROTECTED]> wrote:
Hi,
Currently, WebWork is 2.2.5 released in April this year,
bu
Anyone seen the same behaviour?
-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED]
Sent: 30 May 2007 13:23
To: 'Struts Users Mailing List'
Subject: Wierd behaviour with redirect, result, and store interceptor
I have the following;
Action A --- forwards to ---> A.jsp --- subm
I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.
I was wondering if this was a caching issue with your browser. I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
Hello All,
I use sturt
Using the locale, you should be able to construct a SQL query to load
the correct data from the table structure I mentioned.
Or you could add language choice as a user selectable option on either
your login page (if you use a login) or on your "home" page.
Regards
Roger
-
Struts 2.0 Validations using Annotations By Krishna Srinivasan
"How easy it was to get fairly complex server side validation working
with Struts 2 by just using annotations. No XML whatsoever. Struts 2.0
comes with new set of Robust Validation Features. Most of the common
Validation Activities .
Hello All,
I use sturts 2. My web program work well but when i add a refresh link in my
page, starting a problem.
First i had use javascript:reload() function. When use this link, page
sometimes not get data. But sometimes get. I change my reload() function.
function refresh()
{
var sURL =
Hi,
Currently, WebWork is 2.2.5 released in April this year,
but Struts is 2.0.6 released in February this year.
Does it mean that just Struts uses WebWork's codes, but WebWork still has
its own roadmap?
Shortly, the two project isn't merged.
That's right?
a cup of Java, cheers!
Sha Jiang
Ted H
Interesting problem...
Using textfield as an example, the template (eg. text.ftl) takes the
literal name attribute from and writes it straight to the
html. You could create your own theme that replaces the '.' with a
different character in the html. You could then write your own
interceptor that c
Hi People,
I usually like to access form elements using their names ( rather than ids) as
I find it more readable.
So, if I had a field named 'street' on a form named 'addressForm' I can access
it using something like document.addressForm.street
Now, I am using struts 2 and its OGNL support
53 matches
Mail list logo