Hi all,
Can someone please attach a sample of an ApplicationException,
BaseException & SystemException classes?
An example of catching them in an Action class will be very helpful too.
Thanks a lot
Rivka
**
On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Ed Griebel wrote:
> > So it seems like you want to a) render untrusted HTML, and b) render
> > secure html. Sounds like the basic requirement is at odds? You could
> > do something like slashdot and other BB systems do: restrict the
> > amount
Ed Griebel wrote:
So it seems like you want to a) render untrusted HTML, and b) render
secure html. Sounds like the basic requirement is at odds? You could
do something like slashdot and other BB systems do: restrict the
amount of valid markup to make your parsing job easier.
Ultimately, restri
I ran into an issue similar to yours where I had a "search" form and a
"results" form. What I did was to use a nested form bean, with one
nested form bean being the search parameters, and another nested form
bean being the results. Both actions knew that the form was nested (as
did the two separate
So it seems like you want to a) render untrusted HTML, and b) render
secure html. Sounds like the basic requirement is at odds? You could
do something like slashdot and other BB systems do: restrict the
amount of valid markup to make your parsing job easier.
Another idea, one single regexp won't d
Is there any way in Struts 1.1 to have session-scoped ActionMessage?
On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> I used to do a lot of this back when I wasn't as clear on why Actions
> shouldn't contain actual code (this started when I was using a custom
> framework my company build that had examples that didn't make it clear
> you shouldn't do this).
Michael Jouravlev wrote:
I am not convinced that UI should be *that* different from domain
model.
+1.
Example: You make a html mock up an go to contract, then do ren *.html
to *.jsp for prototype.
Beased on your approved prototype your most senior desigs a domain model!
Domain Model is m
On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev on 18/07/05 20:52, wrote:
> > I am not convinced that UI should be *that* different from domain
> > model. Do you have examples?
>
> I'm not sure that I can conjure up something convincing (being a techie
> myself!) because you
I am going with the helper classes.
Thanks to all who replied!
On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> I used to do a lot of this back when I wasn't as clear on why Actions
> shouldn't contain actual code (this started when I was using a custom
> framework my company build that
If you're doing "request.setAttribute("CLASS_NAME", myActionForm)" to
store the form bean you should be able to call
"request.getAttribute("CLASS_NAME")" to retrieve the myActionForm from
your JSP.
However, I am not sure about the cleanest ways to access myActionForm
from your JSP in this man
Michael Jouravlev on 18/07/05 20:52, wrote:
On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
While the business domain is normally modelled using OO techniques, the
view or user interface should be modelled using human behaviour analysis
techniques that produce the best interface for users to
Fei Jiangnan wrote:
I am newbie to struts, and tried current release of struts with
Eclipse 3.1, they seems not working together, coule you please make me
some sense from the versions between struts and eclipse?
What do you mean by "they don't work together?"
Dave
Hi there,
I am newbie to struts, and tried current release of struts with Eclipse 3.1,
they seems not working together, coule you please make me some sense from
the versions between struts and eclipse?
thanks in advance.
Fei
Frank W. Zammetti wrote:
Yeah, wouldn't help you filter on output, but I pointer that out before :)
True enough :)
Note that it does allow you to specify your own regex, so in reality you
can filter for whatever you want. I did this specifically so when
someone spots something I didn't thin
Craig McClanahan wrote:
While the code in question here might not help you, the concept of a
Filter still can. You can use Filters to monitor (and potentially
modify) the output stream by providing a wrapper around the
HttpServletResponse that the container hands you, with custom
implementations
Mike Elliott wrote the following on 7/18/2005 3:18 PM:
I came up with another solution which might be worthy of
consideration. Instead of using arrays, extend a list with the
desired get( int ) method and use that list instead:
public class SkillActionForm extends ActionForm {
protecte
I've stumbled across a similar problem that I'm trying to find the
Struts solution for.
I have a form which allows users to add a dynamic amount of rows (via
a button that says "Add Row") and then submit the form with as little
or many rows as they wish. Can a form bean be setup using collections
I have one as part of Java Web Parts
(http://javawebparts.sourceforge.net). Let me know if it suits your needs
(and if not, let me know the shortcomings so I can expand it!)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, July 18, 200
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> I'm still not totally clear where the problem is, since I'm not sure
> what Session has to do with the initial setup of the form.
The difference is unobvious, I admit, but this is what I was thinking
of: If I use a session bean, I can do some
Andrew Tomaka wrote the following on 7/18/2005 2:13 PM:
I have a form which allows users to add a dynamic amount of rows (via
a button that says "Add Row") and then submit the form with as little
or many rows as they wish. Can a form bean be setup using collections
instead of other object types
I used to do a lot of this back when I wasn't as clear on why Actions
shouldn't contain actual code (this started when I was using a custom
framework my company build that had examples that didn't make it clear
you shouldn't do this).
One Action instantiating another I think is sometimes not a
Anyone in the mood to kick the dead horse again? I decided to compare
two approaches to use/update data from Struts. I am obviously biased
towards nested VO/BO, so maybe I left something out.
[I] Property copying
This one seems to be the default and "officially endorsed" Struts practice.
1) Crea
Still, mnemonics are non-standard for web applications, no? This
doesn't seem right.
Glen
Niall Pemberton escribió:
The short and not v.helpful response is you can't submit - its
just a JSP tag that renders a HTML element and has nothing to do with
the submit process.
Some of the Struts ta
Michael Jouravlev wrote the following on 7/18/2005 3:59 PM:
ActionForm.reset() for session-scoped forms, ActionForm.ActionForm()
for request-scoped forms. I do not remeber, if reset() is called for
request-scoped forms.
Yes, reset is always called when the form submits. I know I mentioned in
And if you can't find that compression filter in Tomcat, JWP has one too
:) Does GZip and Deflate actualy :)
Frank
Craig McClanahan wrote:
On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
Frank W. Zammetti wrote:
Not a problem...
http://javawebparts.sourceforge.net/javadocs/index.ht
Yeah, wouldn't help you filter on output, but I pointer that out before :)
Note that it does allow you to specify your own regex, so in reality you
can filter for whatever you want. I did this specifically so when
someone spots something I didn't think of it's easy to make it catch
those too.
Adam Hardy wrote:
Not all users can think like geeks!
And the (probably more important!) corollary: Most geeks can't think
like users.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Frank W. Zammetti wrote:
>
> > Not a problem...
> >
> > http://javawebparts.sourceforge.net/javadocs/index.html
> >
> > In the javawebparts.filter package, you should see the
> > CrossSiteScriptingFilter.
> >
> > This will filter any incoming
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote:
> If I use a session bean, I can do some sort of setup (from an
> Action) on its initial creation, including creating the list of
> contained objects. That can't happen if it's in request scope because
> there is no chance to invoke the setup bef
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 18. Juli 2005 23:36
> An: Struts Users Mailing List
> Betreff: Re: Manually Instantiating Action classes
>
> On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> > First choice action
> -Ursprüngliche Nachricht-
> Von: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 18. Juli 2005 23:36
> An: Struts Users Mailing List
> Betreff: Re: Manually Instantiating Action classes
>
> On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> > First choice action
Having a VO/BO with string- & strong-property getters and setters is
IMHO a short cut through the UI / business domain interface.
While the business domain is normally modelled using OO techniques, the
view or user interface should be modelled using human behaviour analysis
techniques that pro
Not a problem...
http://javawebparts.sourceforge.net/javadocs/index.html
In the javawebparts.filter package, you should see the
CrossSiteScriptingFilter.
This will filter any incoming parameters, and optionally attributes (good
for if your forwarding somewhere) for a list of characters (you can
Mike Elliott wrote the following on 7/18/2005 10:55 AM:
I've been beating my head against this all weekend to no avail. I
understand how to do this in session scope, but don't know if it's
even possible in request scope.
As I understand things (which may be wrong), when the form is
submitted (
On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> While the business domain is normally modelled using OO techniques, the
> view or user interface should be modelled using human behaviour analysis
> techniques that produce the best interface for users to get their work
> done efficiently, reflect
I have a Cancel Button in my page... when it's submit, populating error
occurs...
In jsf, it's solutionated by the immediante attribute to false. How is in
struts?...
(When Cancel, i want forward to another page... nothing more :) )
--
Mariano G. Petrakovsky
Programmer · Software Factory
A
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote:
> > Well I could see for large forms with nested data it might not be a
> > great idea to keep these around in the Session. I 'try' to stick to
> > using the Request when I can but I don't bend over backwards like
> > some do on this list to a
Harland, David wrote:
I have three checkboxes that can all either be unchecked or only one can
be checked.
How do I create a Validator rule for this. I don't think it is possible
to do this neatly as I think you will always get more than one of the
same error message. Can someone please tell me
On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> First choice action hierarchy
> Second choice helper classes
> Or maybe a good combination of both :-)
Chaining? ;-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addition
> Well I could see for large forms with nested data it might not be a
> great idea to keep these around in the Session. I 'try' to stick to
> using the Request when I can but I don't bend over backwards like
> some do on this list to avoid the Session.. I'm in "The Session is your
> friend" ca
I need to instantiate a form that is not associated with my particular
action and place it on the request before forwarding...
Right now I have to hardcode the name of the form as the key into the
request scope. I know that you can get the configured name of the form
that IS associated with your a
Thanks; I had a quick hunt through the Javadocs but couldn't see anything
relevant. Can you give me a push in the right direction? ;-)
L.
Frank W. Zammetti wrote:
I have one as part of Java Web Parts
(http://javawebparts.sourceforge.net). Let me know if it suits your needs
(and if not, let m
How can I submit html:form by pressing CTRL+S ?
--
regards,
Sergey mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sergey try
"javascript:testKeyCode(evt)" onclick = "javascript:testKeyCode(evt)" />
The short and not v.helpful response is you can't submit - its
just a JSP tag that renders a HTML element and has nothing to do with
the submit process.
Some of the Struts tags have the "accesskey" attribute which defines a key
that can be used with the accelerator key (usually ALT) to invoke a
In the process of writing an Action class, I realized that it needs
some application functionality (not general utility kinda
functionality) that is already part of a method in a different Action
class.
So, Action MyAction1 needs to access method myMethod2 in Action
MyAction2. Here are the options
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev wrote the following on 7/18/2005 3:59 PM:
>
> > ActionForm.reset() for session-scoped forms, ActionForm.ActionForm()
> > for request-scoped forms. I do not remeber, if reset() is called for
> > request-scoped forms.
>
> Yes,
Craig McClanahan wrote the following on 7/16/2005 1:03 AM:
For maximum positive benefit to the world, please cc your responses
both here
Asked someone on our team (not on the Struts list) who handles the
authentication stuff for our applications and he came up with:
a k wrote:
What is a better way in this scenario? In particular, is it bad to
manually instantiate Action classes?
I don't know if it's "bad" per se, but if it's shared functionality then
from an architectural standpoint I would think it'd better to move it
into a helper class.
Dave
--
Agreed with dave,
But maybe another point,
You said you already have a class all actions extend, right?
Is it said somewhere that the actions can extend one class only? I mean, if
it's needed by the architecture, you can create a whole action hierarchy...
And if you'd need multiple inheritance -
Agreed with dave,
But maybe another point,
You said you already have a class all actions extend, right?
Is it said somewhere that the actions can extend one class only? I mean, if
it's needed by the architecture, you can create a whole action hierarchy...
And if you'd need multiple inheritance -
Does anyone know of a good, complete implementation of a cross-site
scripting filter for pre-processing user entered text that needs to be
rendered as HTML? Obviously / ${fn:escapeXml()} / etc. aren't the
right solution ;-) but there's nothing in standard JSTL or Struts (that I
know of) that i
Mariano Petrakovsky wrote:
I have a Cancel Button in my page... when it's submit, populating error
occurs...
In jsf, it's solutionated by the immediante attribute to false. How is in
struts?...
(When Cancel, i want forward to another page... nothing more :) )
What error do you get on sub
Mariano-
I take you have already identified your ActionForwards with something like
this in your struts-config.xml?
Saludos Cordiales,
M-
- Original Message -
From: "Mariano Petrakovsky" <[EMAIL PROTECTED]>
To: "Lista de correo de Struts"
Sent: Monday, July 18, 2005 2:52
At 1:36 PM -0400 7/18/05, Laurie Harper wrote:
Harland, David wrote:
I have three checkboxes that can all either be unchecked or only one can
be checked.
How do I create a Validator rule for this. I don't think it is possible
to do this neatly as I think you will always get more than one of the
Frank W. Zammetti wrote:
Not a problem...
http://javawebparts.sourceforge.net/javadocs/index.html
In the javawebparts.filter package, you should see the
CrossSiteScriptingFilter.
This will filter any incoming parameters, and optionally attributes (good
for if your forwarding somewhere) for a
There could be several poteintal problems.
1) make sure the JSP does not have the session=false page directive set.
2) Make sure you are referencing the form using the same name as you have it defined in the struts config (remember capitalization does count).
3) Make sure you are accessing the
Have you considered using radio buttons instead of checkboxes? From a
UI standpoint, I think that would make more sense.
That aside, I do not know of any easy way to do this sort of
validation using the Validator plugin. I would override the validate
method in my action form for just those prope
Dewitte Rémi wrote:
Hello !
I uses LazyDynaForm to gather user results.
Now I'd like to save those results. All persisence framework are for POJO, do
you know a common solution ?
May I create a POJO to make the transition/link ?
It all depends on your requirements and what persistence techno
Stéphane Zuckerman wrote:
First of all, you should understand that using JBoss, Tomcat (which
implicitly is run under JBoss), or any other application server doesn't
change anything. If you embed the right libraries (jar, ear, war,
whatever), everything should work fine for your server. Anythin
Hi to all,
I use a formbean within session-scope (declared in
struts-config.xml). However it behaves like it would
be within request-scope. Every new page it gets
instantiated again. I checked the sessionid and
it is every page the same, so I guess am within the
same http-session.
Does anyone ha
Pardon the non-answer (and I would encourage anyone who knows how to
validate interdependent checkboxes to respond), but ordinarily using
four radio buttons (the fourth being a "none" radio button, selected by
default) would be the more standard GUI choice, and one for which you
can forgo valid
Good Morning Mike
There are a Number of options for implementing with request scope and manual
validation explained by Rick Reumann
http://www.reumann.net/struts/articles/request_lists.jsp
I think its worth noting what Thomas Edison said of weekend warriors
"I have not failed. I've just found
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> To me, this is very confusing. Why doesn't the html:property tag perform
> the same kind of logic as JSTL does? I would think I should be able to
> just do...
>
>
>
> and not need to create a new accessor method name and the odd syntax (x) ?
On 7/18/05, Scott Purcell <[EMAIL PROTECTED]> wrote:
> So my question is as follows:
> When using struts, is a nested bean common? And if so, how do you validate
> just one bean from the parent?
>
> eg: Lets say that the bean lets call it "checkout" and inside it has the
> users shipping informa
There are ways to resolve this, see this page on the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList
Niall
- Original Message -
From: "Mike Elliott" <[EMAIL PROTECTED]>
Sent: Monday, July 18, 2005 3:55 PM
On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote:
> thanks for the
Rick Reumann wrote the following on 7/14/2005 4:26 PM:
Rick Reumann wrote the following on 7/14/2005 4:20 PM:
From the FAQ I'm going to try this in my ActionForm..
public Object getStringMapped(String key) {
return map.get(key);
}
public void setStringMapped(String key, Obj
Hello,
I would like some input into the following situation. I am diagraming a bean
that will hold data for a checkout. Basically it will be a bean that will hold
user_information, shipping_information, etc. So in effect the bean will hold
other beans.
So my question is as follows:
When using
Thanks for this. I think Im going to have to go a bit outside of
standard Struts functionality to do what I need to do but the validator
is part of commons now of course so I can make code level calls that
way.
Quoting Martin Gainty <[EMAIL PROTECTED]>:
> Good Morning Charles
> >From what
On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote:
> thanks for the hint and example. I've choosen the nested way to do this,
> because i
> think this makes the jsp code more readable.
>
> I there a way to do the same using request scope?
> When i do this i get an exception because the collecti
Rémi
The Base Class of LazyDynaForm is ActionForm .. to quote the doc on
ActionForm
ActionForms are JavaBeans, subclasses should also implement Serializable, as
required by the JavaBean specification
Implementing Serializable interface would effectively 'save' your
LazyDynaForm attributes
Anyo
Thanks Niall for your time and patience.
- Glenn
"Niall Pemberton" <[EMAIL PROTECTED]>
18/07/2005 10:33 AM
Please respond to
"Struts Users Mailing List"
To
"Struts Users Mailing List"
cc
Subject
Re: Token element wrapped with a div tag
Sorry, my reply wasn't very verbose. That bug i
I have three checkboxes that can all either be unchecked or only one can
be checked.
How do I create a Validator rule for this. I don't think it is possible
to do this neatly as I think you will always get more than one of the
same error message. Can someone please tell me if I am right.
Thanks
Sorry, my reply wasn't very verbose. That bug is fixed in Version 1.2.7 -
which is why you're seeing the elements.
Generally we're not very good at actually "closing" bugs - once they're
marked as "RESOLVED" they don't generally get any more attention. So if you
see "RESOLVED FIXED" then it means
1) Struts 1.2.x
==
There isn't a current beta to download, but we recently (May 2005) released
version 1.2.7 which has been classified as "ga" quality. Details of changes
since Version 1.2.4 are available in the release notes:
http://struts.apache.org/userGuide/release-notes.html
2) Stru
Hello !
I uses LazyDynaForm to gather user results.
Now I'd like to save those results. All persisence framework are for POJO, do
you know a common solution ?
May I create a POJO to make the transition/link ?
Thanks
-
To unsubsc
Certainly Struts has a larger production base
But as JSF is built on a 'Page Controller Pattern' model instead of 'Action
Controller Pattern'
(Component Action Handlers are supported)
I would encourage you to read Implementing in JSF vs Struts article
available from Roland Barcia
http://websp
Have you looked at the html:link tag?
(http://struts.apache.org/userGuide/struts-html.html#link)
Link text
On 7/18/05, Senthilrajan VS <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am calling the action directly using the hyper link, for example
> /sample.do?table=test. The values for this action
- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To:
Sent: Monday, July 18, 2005 8:41 AM
Subject: whats new with struts?? no beta for download
Hello
I have been using struts for a while now, i did some
upgrade to 1.2.4 few months ago(may be 6 i dont
remmember) since
Ashish Kulkarni wrote:
Hello
I have been using struts for a while now,
when will be the next release of struts
I belive that you have been using Struts for a while. That's why you
know the answer to you question as to when.
You can get any version or variation of Struts using T
Hi all,
Can someone please attach a good sample of an ApplicationException,
BaseException & ServiceException classes?
An example of catching them in an Action class will be very helpful too.
Thanks a lot
Rivka
Thanks Niall.
It did not occur to me to check the ASF Bugzilla for Struts [I will
remember for the next time].
I'm not familiar with the Status... since it is not yet closed.. this
means that the bug is not yet fixed in version 1.2.7 ?
- Glenn
"Niall Pemberton" <[EMAIL PROTECTED]>
18/07/20
Hello
I have been using struts for a while now, i did some
upgrade to 1.2.4 few months ago(may be 6 i dont
remmember) since then i was busy with some thing else
so lost touch with whats happening in struts.
I went to http://struts.apache.org to find out more
and was surprized to see that there is n
Good Morning Charles
From what I can gather there are 4 scenarios to instantiate a form and
handle validation
http://mail-archives.apache.org/mod_mbox/struts-user/200407.mbox/[EMAIL
PROTECTED]
If you decide to use option D) DynaValidatorForm then
Take a look at Rick Reumann's site for example
http://issues.apache.org/bugzilla/show_bug.cgi?id=32016
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
Sent: Thursday, July 14, 2005 4:11 PM
> Hi,
>
> Just curious as to why in the JSP the token is wrapped in a div tag?
>
> value="383952ea7a0093448e02f3f0d635865b">
>
> I'm us
Mohamed,
First of all, you should understand that using JBoss, Tomcat (which
implicitly is run under JBoss), or any other application server doesn't
change anything. If you embed the right libraries (jar, ear, war,
whatever), everything should work fine for your server. Anything else is
a pro
This is the JSP code snippet:
Here is the HTML source:
Here is code in my Action class:
// set the synchronization token
String token = generateToken(request);
httpSession.setAttribute(Globals.TRANSACTION_TOKEN_KEY, token);
- Glenn
Laurie Harper <[EMAIL PROTECTED]>
Sent by:
Use java.net.URLEncoder.encode method.
On 7/18/05, Senthilrajan VS <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am calling the action directly using the hyper link, for example
> /sample.do?table=test. The values for this action is generated dynamically. I
> want to Encode this URL. Is there an
Hi,
Using Tomcat 5, I have an application which builds a multipage web
form based on data from a database and user input. Id like to be able
to use the validtator to it but cant determine the required fields
until run time. I was wondering how I could use the pre-build
validator rules in
Hi All,
I am calling the action directly using the hyper link, for example
/sample.do?table=test. The values for this action is generated dynamically. I
want to Encode this URL. Is there any way to encode this URL.
Thanks & Regards,
SenthilRajan VS
Hello,
Probably you weren't logged in as 'Administrator'
Don't know details of why, since I don' tknow theapplication, but I am
Sure the instructions or readme file for the application will tell you
What to do..
Regards
marco
-Original Message-
From: Mohamed Fathi [mailto
Hi
I am new to Struts framework and I was trying to run a simple example
downloaded from "sourceforge" called "car-rental-system" it worked
fine on JBOSS except of a single problem. all buttons are disabled
when I opened the JSP file containing a submit button I found this
piece of code
I
93 matches
Mail list logo