Hi,
I downloaded the struts source version. When I extracted the file, I got the
following folder structure.
--Jakarta-struts-1.2.4
--Contrib.
--Struts-el
--Lib
--Webapps
--Lib
--Webapps
Struts.jar file exist
hi
it downloads myaction.do as a file .?
but in its export example , this func does not work like this
below is my code
var table = document.getElementById("XXX");
var rows = table.getElementsByTagName("td");
Hi all,
even after scanning the doco, examples, source code and previous posts I
still can't get validation to happen for an indexed field in my Struts
(1.2.4) application working. I would really appreciate some help crafting
the appropriate validation definition.
My form is defined as
Hi,
If you can tell in detail what exactly is the servlet code doing, it'll
be easier to explain how can you incorporate it within struts framework.
In a struts framework the request processing is done by the Action
classes. So eventually, whatever task is being done by your current servlet
can b
Hello,
I downloaded the source version of the Struts software. How do I start the
Struts application.
Thanks,
Vijaya
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I would like to know how can we switch from one web
application to another web application in a struts
framework. I don't mean switching between the various
application modules within a web application.
What I intend to do is to restrict the user from
directly accessing the 2nd web applic
Not stupid at all Lucas :) Yes, I did try that, a couple of times with
some variables (one time I installed Python first, then Python and TCL,
etc.) I DID however get it running on Win2K under VMWare, so I could
always use it there. But, one thing I didn't realize is that you can't
actually
This might sound stupid... but have you tried reinstalling it?
- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "David G. Friedman" <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" ; "Commons User"
Sent: Wednesday, January 05, 2005 7:34 PM
Subject: Re: [OT] WinCV
It is because the action class execute method is only executed when the
form is submitted, not when it is displayed. If you want to pre-load the
form, you need to create an action and either forward or redirect to the
action which then forwards to the page that displays the form.
-Richard
At 11
I have 2 sets of programms running on Tomcat
1)one set is using normal servlet program architecture.
2)another is using struts technology.
This together makes whole application. Eventually the whole application will be
in struts, but currently i have half in servlet and half in struts.
Cur
Hi Nicolas,
I tried it but I am not getting it right, pls can u explain me in detail ?
Thanks & regards
Manisha
Nicolas De Loof <[EMAIL PROTECTED]> wrote:
When using cancel button, validation is automatically skipped. Use
isCanceled(request) in your action to see if cancel was clicked and
f
Hi all,
I am writing my experience in case somebody same like me (very very new to
struts) might get hint if they face the same problem.
1)First thing which i was doing wrong was making use of old
validation-rules.xml (downloaded from web while downloading example) along with
new jar files.
On Wed, 5 Jan 2005 17:16:46 -0800 (PST), ans <[EMAIL PROTECTED]> wrote:
> Hi,
> I am in the process of converting a webapp written
> using servlets in to struts actions.
>
> When I open the browswer and when I enter into an
> action class for the first time, then my
> 'request.isRequestedSessionId
Hi,
I am in the process of converting a webapp written
using servlets in to struts actions.
When I open the browswer and when I enter into an
action class for the first time, then my
'request.isRequestedSessionIdValid' is returning false
Before calling the
request.isRequestedSessionIdValid(),
I pe
Hi,
May be you can try to use the reset() in the Form.
Good Luck
Cliff
- Original Message -
From: "elisegev1" <[EMAIL PROTECTED]>
To:
Sent: Thursday, January 06, 2005 3:12 AM
Subject: Attributes Initialization
>
> I have a form that needs some initialization. The form is derived
>
Thanks for the reply, do not know why the same is not working properly for me
but will try it out again.
regards
Manisha
Vaclavik Radek <[EMAIL PROTECTED]> wrote:
Hi,
this works fine for me (in validation.xml file). I see no problem with using
datePattern...
depends="required,date">
datePat
Thanks a lot Erik, a very good start for me.
regards
Manisha
Erik Weber <[EMAIL PROTECTED]> wrote:
This is not a direct answer to any of your questions but perhaps it will
spur your thinking.
This is an example of using a custom ("pluggable") validator that makes
sure a date entry is not only
I had quite a similar problem, but I didn't wanted to put security
related code into my actions codes. I did that way:
- I created a new Digester RuleSet (declared in web.xml: "rulesets"
init-param of Struts servlet) to extend Struts configuration
(struts-config.xml) file with specific security
I have a form that needs some initialization. The form is derived
from DynaValidatorForm and its properties are defined in struts-
config.xml. I initialize an attribute in the 'execute' method of
my 'Action' class. For some reason when the servlet container
creates the page for the first tim
Indirectly I've thought about it... A lot of guys are using WASD at
work, which is of course Eclipse-based, but I've been resisting. I've
used a number of IDEs over the years, and I've always found that they
get in my way far more than they help. That's just me, but it's been my
experience.
Hi
is there a equivalent tag library in jstl for wrote:
> This document
> (http://struts.apache.org/faqs/struts-el.html) talks
> about
> the Struts-EL tag library, that is a port of some of
> the Struts tags to
> use the new JSP expression language. More relevant
> to your question, it
> ha
Frank,
Ever think of using Eclipse (v3.X) ? I use it for Java/Struts/Tomcat (Via
the Sysdeo plug-in) development and it includes a built-in CVS client.
Add-ons also allow for SVN.
Regards,
David Friedman / [EMAIL PROTECTED]
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTE
Glenn Wilson wrote:
Hi Frank,
I've run into this problem before myself. The problem I ran into was caused by
the focus of my directory browser (that left-hand side browsing area) being on
the root directory (C:\), and I had it set to recursively display all files in
the file browser (that right
Hi Frank,
I've run into this problem before myself. The problem I ran into was caused by
the focus of my directory browser (that left-hand side browsing area) being on
the root directory (C:\), and I had it set to recursively display all files in
the file browser (that right-hand side listing)
Ok, no free beer, I lied ;) Got your attention though!
I'm just now trying to use CVS for the first time, and I'm having a
problem I haven't been able to figure out, and I'm sure at least some of
you here are using WinCVS, so I hope no one minds an OT question (FYI, I
couldn't find a WinCVS sup
I may be working on a small privileged applet soon and the requirement
is to ensure that it will work across various browsers/platforms
(Mac/IE, PC/IE, Opera, etc. etc...). Since Java is pretty standardized
I don't foresee any big issues with the testing if I use 1.3 and set the
appropriate apple
Hi
If u want to escape characters in JSP use taglibs provided by
jakarta(ie http://jakarta.apache.org/taglibs/doc/string-doc/index.html#escape)
and if u want to escape String in java classes use commons-lang
package (api refeence is
http://jakarta.apache.org/commons/lang/api/org/apache/common
To the best of my knowledge, struts does NOT handle this. I have faced this
issue, as I'm sure many have. Here's the code I use to solve it... This is
simply a static method of a Helpers class I reuse throughout most of my
projects... I don't for a second claim it is the best answer, but it do
Wasn't sure this posted the first time, apologies if this winds up a
double-post...
To the best of my knowledge, struts does NOT handle this. I have faced this
issue, as I'm sure many have. Here's the code I use to solve it... This is
simply a static method of a Helpers class I reuse througho
Population of an ActionForm is done using Commons BeanUtils, which
has a method for registering converter classes which convert strings
to objects and back.
http://jakarta.apache.org/commons/beanutils/api/index.html
Specifically, the work is done by
o.a.struts.util.RequestUtils.populate(...), w
This document (http://struts.apache.org/faqs/struts-el.html) talks about
the Struts-EL tag library, that is a port of some of the Struts tags to
use the new JSP expression language. More relevant to your question, it
has a pretty good list of those Struts tags (mostly from the bean: and
logic
Hi
I am working on a project, need some suggestion on
using tag library
which do i use struts or jstl?
what is the difference , do jstl be to replace
tag of struts
Ashish
__
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
To my knowledge, the escape mechanisms in the Struts custom tags only
handle characters that have special significance in HTML textual
content, not JavaScript. It may only escape '&','<', and '>'. If it
does escape "'" and '"' (I think it does), it escapes them as '''
and '"' respectively, ra
ActionForm attributes are defined as Strings. In your case, a good solution
would be to define an adapter class that will do the conversion from String
to the appropriate type. Your business objects will use the converted data
types to execute the business logic. This approach is discussed in detai
On Tuesday 04 January 2005 12:55, Jim Barrows wrote:
> > From: Mark McWiggins [mailto:[EMAIL PROTECTED]
>
> > *Is AppFuse worth using as a basis for a real app? I tried
> > working through the tutorial and got it going,
> > but it is based on Hibernate and I was told that
> > Hibe
Depends... Do you want this all to happen on the client only, or do you want a
round-trip to the server?
If client-only, just wrap the optional elements in a tag, then use the
onChange event of the element to show the appropriate group (you'll
need to hide eerything else of course... I usuall
Hi all,
This is a javascript function that is being called when a button called
"Update" is pressed.
Now if the planTitle or verbalDescription has got any apostrophe(') then
it is throwing up a javascrit error that ) is expected.
Does not struts handle these type of characters like ',",/ etc.
D
Hibernate is mature because it works, unlike "mature" EJB,
--b
On Tue, 4 Jan 2005 09:55:34 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: Mark McWiggins [mailto:[EMAIL PROTECTED]
> > Sent: Monday, January 03, 2005 6:19 PM
> > To: user@struts.apache.o
hi there.
If I were to have a dropdown select (which I don't know yet also how to
populate from database), and I select an option say User.
I want something (part of a form or such) to show.
Example:
Adding useraccounts. There are 3 roles, User, Admin & Office.
Field Username, Password, Re-Enter
Jim Barrows wrote:
-Original Message-
From: Ritchie Warsito [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 4:36 AM
To: Struts Users Mailing List
Subject: I8N - Locale switch on any page
Hey there,
I'm studying the struts-mailreader example and as some of you
might know
(I ho
in article [EMAIL PROTECTED], Josh Cronemeyer at [EMAIL PROTECTED] wrote
on 4/01/05 18:02:
> J. Patterson Waltz III wrote:
>
>> Merci Guillaume,
>>
>> I had actually seen the references to the Filter solution in the comments of
>> Struts bug 16191 in Bugzilla:
>> http://issues.apache.org/bugzill
This is simply to enable and disable filters. The users don't want to write
something to search with a criteria, then erase it, search something else
and then rewrite the first thing he entered.
-
Jean-Francois Croteau
Se
hi Joe ,
Jakarta commons JEXL works perfectly with expressions ..
and this saved me from creating an 'expression builder' and saved a lot of
time ...
Thanks a lot .
cheers ,
Sachin Hegde
Software Developer
Paradyne Infotech Limited , Mumbai
09324546711
"The believer is happy. The doubter is w
This is not a direct answer to any of your questions but perhaps it will
spur your thinking.
This is an example of using a custom ("pluggable") validator that makes
sure a date entry is not only a real date, but that the date is within a
desired range (seemingly you are wanting to do something
I agree that if the "..." is long, or if there are lots of them, then
simply repeating the code is less than ideal.
On the other hand, if there are only, say, three conditions, and the
code is three lines, then duplication isn't horrendous. We've all done
uglier things in the push to get the j
Hi,
this works fine for me (in validation.xml file). I see no problem with using
datePattern...
datePattern
dd.MM.
Radek
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: We
On 05 Jan 2005 10:47:40 +0100, Guillaume Cottenceau <[EMAIL PROTECTED]> wrote:
> Neil Erdwien writes:
>
> > How about:
> >
> >
> >...
> >
> >
> >...
> >
>
> Are you serious? When "..." is longer than say 1 or 2 lines, this
Neil's answer was as well serious as
i don't know if this question applies to struts...
but im using this org.xmlmiddleware.schemas.dtds.DTDParser on my
console-based java application and works ok.
now i need to use it on a web application but during development i noticed
that it does not run properly. i did some debugging
and fou
The "..." is exactly one line, because it's only a flag:
... do the things you need to do.
But I fully agree that this is ugly, and should be done by a property of the
bean instead:
...
Alternatively feel free to make a nested "or" tag.
> -Ursprüngliche Nachricht-
> V
The "..." is exactly one line, because it's only a flag:
... do the things you need to do.
But I fully agree that this is ugly, and should be done by a property of the
bean instead:
...
Alternatively feel free to make a nested "or" tag.
> -Ursprüngliche Nachricht-
> V
Neil Erdwien writes:
> How about:
>
>
>...
>
>
>...
>
Are you serious? When "..." is longer than say 1 or 2 lines, this
leads to duplicated source-code, one of the thing I think
programmers should avoid with the most energy.
--
Guillaume Cottenceau
---
"J. Patterson Waltz III" writes:
> P.S. - I know how to view the headers of replies sent from the server to the
> browser, but am not sure how to get at those sent from the browser to the
> server, to make sure that they are indeed UTF-8. Any suggestions?
I usually temporarily modify the URL whe
Hi
I was facing problem in validating multiple Email Addresses given in a form field. As the validator-rules.xml in Validator Framework contains validation for only single Email Address. I tried to modify the code of the existing Email Validator in validator-rules.xml, but it didn't work.
So
I am testing struts validatior in one test program. Finally i could do some
date validation for user i/p. I could get javascript pop-up if i enter it
wrongly.
i wanted to test server side validation - so i switched off javascript and
tried to submit - it went through w/o throwing any error.
Hi,
use JSTL. Do not spend time with the Struts tags.
here is an example:
Error 1 has occurred.
Error 2 has occurred.
Chipix
On Wed, 05 Jan 2005 01:05:30 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
> Look into the expression language's Logical O
Hello,
^/LoginAction.do
could this be the problem? Shouldn't u use * instead?
Regards
Marco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
When using cancel button, validation is automatically skipped. Use
isCanceled(request) in your action to see if cancel was clicked and
forward to your index page.
Nico.
Manisha Sathe a écrit :
I am using struts cancel button. But when i click on that it goes to next page (w/o
even validation -
You should have a look at securityFilter that does such a job. It tries
to "look like" j2ee FORM security check, but allow you to use your own
authentication rules.
Nico.
Jim Barrows a écrit :
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January
I am using struts cancel button. But when i click on that it goes to next page
(w/o even validation - using validator). What i want to do is i want to
redirect it to index page. I tried using oncancel inside but
giving me error.
How i can do this ?
Thanks and regards,
Manisha
OK,
Thanks everyone for your help.
The correct approach is:
Java:
request.setAttribute("myThing", myThing);
JSP:
Thanks again
On Tue, 04 Jan 2005 18:22:32 -0800, Curtis Taylor <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You *cannot* directly add parameters to an http request inside an Action
> cl
Currently testing text box i/p for date. I do not want to make use of
"datePatternStrict" so i used "datePattern" but still it is validating as per
"datePatternStrict" only. It is not accepting 1/1/2005 as i/p
Do i need to set anything else too ?
--
61 matches
Mail list logo