Hi,
I've read various threads on this mailing list about uploading files, and
uploading MULTIPLE files. There seems to be some shortcomings.
Especially as I want to offer a theoretically infinite number of file
uploads in one form. 0 to 5 files is realistic. But I don't want to limit
it.
My und
Did you every find a server-side solution for this?
"koen boutsen" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> hi
>
> In my form, a user enters data for an organisation. Via a save button,
> these data are saved in the database. My problem is : when the user
> clicks on a
I just did a quick check and noticed that the session object is not
serializable. Have you checked out the RequestInfo object and its
ilk? Why don't you replace the current sessions with a set of session
objects like the EJB 2.0 CMP entity beans?
At 11:27 PM 4/15/2004, Johan Wasserman - CPX M
Johan Wasserman - CPX Mngd Services wrote:
I need to serialize the session and save it to a blob in MySql (i use
Hibernate).
I have tried, for example;
...
ByteArrayOutputSream baos = new ByteArrayOutputstream();
ObjectOutputStream oos = new ObjectOutputStream(boas);
oos.writeObject(session); //<
I don't know you and there is not enough code here to tell how much you
know, but do you know that you have to get the output stream to write to
from wherever you are sending it to? Thus, you might have something like:
URL url = new URL(/* some destination */);
HttpURLConnection con
I need to serialize the session and save it to a blob in MySql (i use
Hibernate).
I have tried, for example;
...
ByteArrayOutputSream baos = new ByteArrayOutputstream();
ObjectOutputStream oos = new ObjectOutputStream(boas);
oos.writeObject(session); //<-- it fails here, nothing in the logs
byte
Joe Hertz wrote:
Craig McClanahan writes:
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 7:48 PM
To: Struts Users Mailing List
Subject: Re: Locale="true" in html:html tag
Joe Hertz wrote:
This has been deprecated in 1.2.
My i
Harikrishnan,
here are two links. one from sun it shows howto use
j2ee-patterns with struts
http://developers.sun.com/events/techdays/codecamps/
(the third element in page)
the other is an opensource-project, called 'StrutsEJB'
https://strutsejb.dev.java.net/
Cheers,
matthias
> -Original Me
--- Begin Message ---
HI All,
"Another nuance, which I find comes in handy quite often, is that
responding to a form submit with a redirect will prevent the browser
from offering to re-post the parameters for the user."
Even I observed this..This is very much useful..But, I dont understand why th
Hi,
Does some body throw me light on how to architect an application with
EJB+STRUTS for Websphere+Oracle environment. It would be very much of
help to me if anybody has some sample architecture or sample
application. If you have some sample app, please send the same to
[EMAIL PROTECTED]
Thanks f
Craig McClanahan writes:
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 15, 2004 7:48 PM
> To: Struts Users Mailing List
> Subject: Re: Locale="true" in html:html tag
>
>
> Joe Hertz wrote:
>
> >This has been deprecated in 1.2.
> >
> >My
On Thu, Apr 15, 2004 at 04:33:42PM -0700, Craig McClanahan wrote:
> Christian Bollmeyer wrote:
> >1. You've reached the end of a processing chain
> >and want to leave the user at a determined
> >application state, a point from which he may
> >start another interaction with the application,
> >but e
Joe Hertz wrote:
This has been deprecated in 1.2.
My internationalized pages appear not to need this at all with 1.2. The
Locale seems to get detected from the browser just fine without it.
Since, I never got around to serious internationalization while I was
using 1.1, I thought this was necessa
Nathan Maves wrote:
I am just a newB but couldn't you call the validate method from your
execute method. This way the validator will catch any of the easy
validations and your validate method will get the complex ones.
Are you remembering to call super.validate() somewhere in your
validate()
Christian Bollmeyer wrote:
[snip]
1. You've reached the end of a processing chain
and want to leave the user at a determined
application state, a point from which he may
start another interaction with the application,
but everything else is done and finished.
Such as redirecting to the starting pa
This has been deprecated in 1.2.
My internationalized pages appear not to need this at all with 1.2. The
Locale seems to get detected from the browser just fine without it.
Since, I never got around to serious internationalization while I was
using 1.1, I thought this was necessary for the jsp pa
Here is the solution I think
In section 12.10.5 of Struts in Action by Ted Husted
There is an example of how to combine validator with the validate
method.
try this code
public ActionErrors validate(.) {
ActionErrors errors = super.validate(mapping, request);
if(errors == null) err
You can implement the validate method and user the validator too.
Call super.validate(mapping, request) in your validate method, and it
will return to you the ActionErrors the validator framework generates.
> -Original Message-
> From: Nathan Maves [mailto:[EMAIL PROTECTED]
> Sent: Thurs
Ahh after a little research I think I might have answered that wrong.
What is your action form extending?
Nathan
On Apr 15, 2004, at 3:37 PM, Nathan Maves wrote:
I am just a newB but couldn't you call the validate method from your
execute method. This way the validator will catch any of the e
I am just a newB but couldn't you call the validate method from your
execute method. This way the validator will catch any of the easy
validations and your validate method will get the complex ones.
Again just a newB answer.
Nathan
On Apr 15, 2004, at 2:40 PM, [EMAIL PROTECTED] wrote:
Hi fol
Hi folks,
I've gotten myself sorely confused here...
I've set up the validator to do simple validation on my forms. By "simple
validation" I mean checking for required fields and integer input, etc.
I need to use the validate() method to do more complex validation on one
form, I need to verify
It's [EMAIL PROTECTED] now, the docs haven't been updated.
Slattery, Tim - BLS wrote:
I'm trying to unsub from this list, since I'm going away for a week.
Unfortunately, when I send email to
[EMAIL PROTECTED], as directed by the welcome
message I got when I subscribed, as well as the footers to n
At 1:19 PM -0600 4/15/04, Nathan Maves wrote:
When is this release coming?
Struts 1.2.0 was "cut" about two months ago. Beginning with the
1.2.x line, Struts is using the Apache httpd-style release numbering,
where releases are made and then subsequently evaluated as either
"alpha", "beta", or
take another look at the footer
> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 15, 2004 3:38 PM
> To: Struts User List ([EMAIL PROTECTED])
> Subject: Unsub
>
>
> I'm trying to unsub from this list, since I'm going away for a week.
> Unf
I'm trying to unsub from this list, since I'm going away for a week.
Unfortunately, when I send email to
[EMAIL PROTECTED], as directed by the welcome
message I got when I subscribed, as well as the footers to numerous
messages, I get back a bounce message telling me that address does not
exist!
C
On Thursday 15 April 2004 15:36, Diego wrote:
I admit having but limited experience with Validator,
and DynaActionForm, and the reason for that is
not that it's bad in itself, but I found that complex,
in particular application specific 'dependant' validation
can be performed much easier by using
On Thursday 15 April 2004 04:43 pm, Craig McClanahan wrote:
> >
> >
> OK. So, what happens if you do *not* make the validation.xml change
> above? (Trying to narrow down the possibilities here).
>
> FWIW, I've been testing struts-faces against the Struts 1.1 release, not
> the HEAD of CVS, s
I'm not sure about the best practice,but I would use
an application specific Controller
(Controller/Mediator pattern)class to perform the
logic. I use a controller class for all related
operations in use case(s) /subsystem.It controls all
interactions between the UI and business layers.
In my Actio
On Thursday 15 April 2004 11:30, Mu Mike wrote:
Simple 'rule of thumb': whenever possible, use
a forward. Use redirects only if:
1. You've reached the end of a processing chain
and want to leave the user at a determined
application state, a point from which he may
start another interaction with t
When is this release coming?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
We have been using http://ibatis.com/ for both sql mapping and it DAO
framework. Might be worth it to check it out. It has good examples of
both DAO's and Service layers.
Nathan
On Apr 15, 2004, at 11:13 AM, Paul Barry wrote:
I have a question about business logic. The best way I can thin
Josh Holtzman wrote:
Module 2 obviously needs to be secure. To secure Module 2 I intend to build
2 measures into take the following steps: a) Before any action is executed
check that the user is logged in by looking for a "User" object in the
session. b) check that all connections are via the htt
Thanks Joe.
I'll look into the "ComposableRequestProcessor" for future projects. This
seems like it could be a very powerful feature, if used correctly.
Since we are on the subject of Control and security, let me throw in another
question.
My application has three different user permission le
You can use the dynaValidatorForm and instead extend RequestProcessor to
create a custom processor and do you session handling stuff in the
preProcess method.
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 1:55 PM
To: Struts Users Mailing
I like that idea. But how does it address the
validator problem? I'm thinking I'm going to
have to pitch the DynaValidatorForm usage
and do something else.
Dean Hoover
Franz-Josef Herpers wrote:
Dean A. Hoover wrote:
I am using struts 1.1 and tomcat 5 for
an application. I am also using DynaVali
I'll research that, thanks.
Doug wrote:
How about servlet filters instead? We've started using them for
things we want to handle for all URLs, outside of the normal
application logic, including session timeout.
Dean A. Hoover wrote:
I am using struts 1.1 and tomcat 5 for
an application. I am
As a novice, but rapidly learning, Struts developer, I believe the logical
place to put these checks is to subclass the RequestProcessor and override
the processPreprocess() method with this logic?
I think your analysis is right on; it's not *wrong* to implement the
security with a base abstract a
One option is to use "service" objects that sit between the DAOs and the
Actions. Following your example, one service class might look something like
this:
public class WidgetService {
public void delete(int id) {
WidgetDAO w = new WidgetDAO();
try {
Hello all,
I'm working on a Struts application that contains 2 modules.
Module 1 (default): a public website.
Module 2: a user and administrative login.
Module 2 obviously needs to be secure. To secure Module 2 I intend to build
2 measures into take the following steps: a) Before an
Hi Paul,
I would implement "BusinessRule"s (make that "UseCase"s?) objects that
encapsulate the BL behind your app. Then, in an "upper" layer, I would
implement "TransactionalOperation"s objects that define a transactional
operation (thus encapsulating the begin and the end of your
transaction), w
Take at look at:
http://www.corej2eepatterns.com/Patterns2ndEd/PatternRelationships.htm
More specifically the Application Service pattern
http://www.corej2eepatterns.com/Patterns2ndEd/ApplicationService.htm
BTW, its a great book!
robert
> -Original Message-
> From: Paul Barry [mailto:[E
I have a question about business logic. The best way I can think to
explain this is with an example. I know this is kind of long, but I am
trying to keep this as simple as possible while still being able to
illustrate the point. Let's say I have Users and Widgets. I would have
Business Obje
snpe wrote:
On Thursday 15 April 2004 01:04 am, Craig McClanahan wrote:
snpe wrote:
I compile struts-faces2 from cvs and i get next error when I try log in
(I register, log off and try log in) :
You would get an exception like this if the custom renderers in
struts-faces.jar wer
Personally, I think you are better off providing a flat ActionForm that
has String getters/setters for the values from the DTO. This way you can
do the massaging as you need to/from the view and the DTO can use the
correct types. You could put the -999 handling in a utility method.
Barnett, Br
Validator does not provide client-side (JavaScript) validation for
"requiredif" and "validwhen". It is my understanding that it is not
practical to create a JavaScript reusable, generic function for these
validations that plays in the Validator framework.
However, if you really need this valid
Wondering if anybody has a slick way of dealing with nullable database
columns. We have a data transfer object that has member variables, one for
each database column, and of course all the getters and setters.
For View layer purposes, we have a class which extends Struts'
ValidatorForm. This F
YOUSFI wrote:
I found the problem. The Object passed to getLibelle was in fact a String.
I love it when I'm right 8^) Seriously, I am glad you were able to
solve the problem.
Bill Siggelkow
-
To unsubscribe, e-mail: [EMAIL PROT
Take a look at a plugin I wrote: http://www.rabago.net/struts/formdef. It
helps with the formatting and parsing of your form data.
--- Paulo Rezende <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> My ActionForm has a Date property.
>
> First I need to renderize it formatted. Since the html:text
Dean A. Hoover wrote:
I am using struts 1.1 and tomcat 5 for
an application. I am also using DynaValidatorForm
for validation of form data. Here is my problem:
I want to test for (tomcat) session timeout and
output a message on the users brower stating that
their session timed out. I want to catch
I haven't used it (yet!), but I recently discovered this:
http://www.trita.com
which looks pretty awesome, at least going from the web site.
--
Martin Cooper
"walkrustin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone know of any good tool for formatting HTML/JSP cod
HI,
Pls check the Syntax and More important case sensitive .
Pls go through the casesensitive aspects.
Bye
Jbalaji
"Prasad, Kamakshya" <[EMAIL PROTECTED]> wrote:
Hi,
I have this line in my jsp
property="courseDetailsArray" indexId="ctr">
"courseDetails[" + ctr + "].name" %>'>
When I
Hi,
I have a session object with is an ArrayList of String arrays, all of length 2.
Basically just two strings 'code' and 'description'.
I want to iterate of the ArrayList for option tags in a dropdown list.
I have been using a For Loop, getting each element, casting it to String[] and
then pu
This thread started on the dev list and I am continuing it on the user list.
My biggest problem in doing this is that the "official" release of
Commons Validator is so old, and I require features in 1.1.2 dev. The
company I work for has a policy concerning use of non-official
software release
I've got a site that we're trying to deploy in Japanese. We're using struts
message tags everywhere with property resource bundles for all the labels
and text. The only text that doesn't come from the resource bundles comes
from the database.
The problem is that IE doesn't display the text prop
You can use the "length" and "offset" attributes in to
control this. Length limits the number to display and offset tells iterate
at which occurance to start at.
Display first ten:
Display second ten:
Niall
- Original Message -
From: "Iwan Soenarto (IT)" <[EMAIL PROTECTED]>
To:
There is a parallel discussion that gave a good link:
http://jakarta.apache.org/struts/faqs/indexedprops.html
I was talking about the nested tag library.
sandeep
-Original Message-
From: Scherger, Derek [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 10:19 AM
To: 'Struts Users
There was a discussion on this a while back:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg95747.html
Niall
- Original Message -
From: "Marcelo Epstein" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, April 15, 2004 4:07 AM
Subject: Reporting T
I don't follow you...
I am using nested beans and they aren't getting values set on them. The path
being used in the call to BeanUtils.populate doesn't have the required
prefix and this is because I'm using the property exported by the iterator.
-Original Message-
From: Takhar, Sandeep [
You could use the "Lazy" stuff I wrote.
I only have "validator" versions of Lazy Forms - you could use them and set
validate="false" on the Action in struts-config.xml or put a LazyDynaBean in
your action form.
http://www.niallp.pwp.blueyonder.co.uk
Niall
- Original Message -
From: "A
Glad that could help. I have been using it for over a month now all over my system and
it seems to be working like a charm.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 2:33 AM
To: [EMAIL PROTECTED]
Subject: RE: redirecting XML/XSLT t
You should keep all your form types as string - then you do not get
conversion problems. Do your validation in the validate() method. Format
your date using a DateFormat object before redisplaying.
-Original Message-
From: Paulo Rezende [mailto:[EMAIL PROTECTED]
Sent: 15 April 2004 14:57
Hi friends,
My ActionForm has a Date property.
First I need to renderize it formatted. Since the html:text has no format property, i
did this:
">
Another way?
Second I need to submit the value inserted in the html:text by user, to this same Date
property.
But when i submit the page, de Bea
How about servlet filters instead? We've started using them for things
we want to handle for all URLs, outside of the normal application logic,
including session timeout.
Dean A. Hoover wrote:
I am using struts 1.1 and tomcat 5 for
an application. I am also using DynaValidatorForm
for validati
Hi everyone. I need to perform conditional validation in one of my forms. I have
a drop-down list and a text field. The validation applied to the text field
should be dependent on the value selected on the drop-down list. Is this
possible, using the Struts validator? I've taken a look at the "valid
If you forward a request, you forward the original request object to a new
url, with its original content. If you redirect an request, you redirect
the request to a new url, without the old content.
-
To unsubscribe, e-mail:
Use redirects when you don't want the contents of your request to be
present while accessing the next resource. i.e. when you access a login
page, when you access an external resource.
Use forwards when you want the contents of your request to be handled or
present by the next resource you forwar
You need to use a forward if you are using Action.setMessages() or
Action.setErrors() in your action implementations. For example, I have
a BeanDeleteAction class. If an error occures in the action (an
exception being caught, wrong information being processed, database
down, etc) then I use setEr
As a rule of thumb... Normal workflow would use a forward. Abnormal
workflow, such as session timeouts requiring the user to be passed back to
the login page, or notification of moved pages where you want the user to
rebookmark would be redirects.
Redirects are slower because of the extra round-tr
Hi,
when you use redirect , what ever data you have stored in the request will no
longer be available as you are making a new request.
where as if you use forward the request scope will be continued and all the objects
you stored in the request will be available..
-Sateesh
-Original M
I am using struts 1.1 and tomcat 5 for
an application. I am also using DynaValidatorForm
for validation of form data. Here is my problem:
I want to test for (tomcat) session timeout and
output a message on the users brower stating that
their session timed out. I want to catch and process
this situa
Hi,
I basically understood the technical diffence between forward and redirect,
but from webapplications point of view, when do I use forward or redirect.
On which circumstances should I use a redirect for example?
Wolfgang
Sanoj, Antony (IE10) wrote:
>Mike,
>
> forward is carried inside the
Hi all,
I have a tiles jsp named "main" containing :
the SaisiPB.jsp is validated in the FormAction.
When errors are detected, I receive a forward to SaisiPB.jsp (witch is the unique page
displayed in the Window), not to Main.jsp.
How to solve this problem.
Thanks...
Mike,
forward is carried inside the servlet engine, whereas the redirect goes to
the browser, and then the browser sends the request to the resource
forward preserves the request state, but redirect destroys the original
request as it completes a request/response cycle
when the browser re
Struts Console version 4.5 is now available.
http://www.jamesholmes.com/struts/
Download Now:
http://www.jamesholmes.com/struts/struts-console-4.5.zip
-- OR --
http://www.jamesholmes.com/struts/struts-console-4.5.tar.gz
--- BIG ENHANCEMENT ---
The Eclipse and JDeveloper plugins now give you th
Excellent link!
There is another option:
1) LazyValidatorActionForm:
http://www.niallp.pwp.blueyonder.co.uk
sandeep
-Original Message-
From: Oswald Campesato [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 11:39 PM
To: Struts Users Mailing List
Subject: Re: when
You can manually create the property or use nested beans.
sandeep
-Original Message-
From: Scherger, Derek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: Logic:iterate with html:text indexed properties
I'm having a bit of a problem wit
Another difference that has to be taken into consideration is that a
forward keeps all the request scope parameters and attributes, whereas
in a redirect, the request scoped parameters and attributes are lost.
JDG
--
Jay Glanville
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailt
The implication is very important here:
As a redirect causes the browser to issues a completely new
request, any objects stored as request attributes before the
redirect will be lost.
Best,
Xuemin
>The main difference is that the forward takes place on the server, whereas
>the redirect results
Using smaller, multiple files is no different that using one large one. The servlet
just loops and loads each one in turn. They are specified as a comma-delimited list in
the same placed as a single file. It's all one configuration, there's no specific
linkage between the tiles-def and the strut
The main difference is that the forward takes place on the server, whereas
the redirect results in another HTTP request from the client. A forward is
therefore invisible to the client, whereas the redirect is something they
would see.
Example 1: user types in http://myserver.com/page1
/page1 forwa
As Christian and James have already alluded, Oracle JDeveloper 10g is
now out of the door and available for download from the Oracle
Technology Network:
http://otn.oracle.com/software/products/jdev/index.html (And from the
OTN front page http://otn.oracle.com)
In this new release Struts plays
On Thursday 15 April 2004 01:04 am, Craig McClanahan wrote:
> snpe wrote:
>
> >I compile struts-faces2 from cvs and i get next error when I try log in
> >(I register, log off and try log in) :
> >
> >
> >
> You would get an exception like this if the custom renderers in
> struts-faces.jar were
when forward, what do we foward?
when redirect, what we do different?
Thanks&Regards
Mike
_
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
-
To unsubs
> I'm using struts validation in my project,
> my problem is:when i return from my validationForm,
> all the form data in the jsp page have been
> cleared.Can't i return to the jsp page with all the data
> there,so i can just correct the wrong data.
> For example,in the registration page,my valida
In fact, the problem I forgot to mention is that this CGI script will
himself contact the banking site responsible of a payment
and present an HTML page to the end-user ...
What do I have to do in my action ? because my action needs an
ActionForward return value ...
I think the solution should
Hi
Add the formdata back into the request, before you return from the
validation routine. Alt. have the formdata in sessionscope.
Hermod
-Opprinnelig melding-
Fra: dream_and_yang [mailto:[EMAIL PROTECTED]
Sendt: 15. april 2004 09:54
Til: struts-user
Emne: using validation,can i return wi
I'm using struts validation in my project,
my problem is:when i return from my validationForm,
all the form data in the jsp page have been
cleared.Can't i return to the jsp page with all the data
there,so i can just correct the wrong data.
For example,in the registration page,my validationForm fin
I'm using struts validation in my project,
my problem is:when i return from my validationForm,
all the form data in the jsp page have been
cleared.Can't i return to the jsp page with all the data
there,so i can just correct the wrong data.
For example,in the registration page,my validationForm fin
Thanks Maru...
little problem with sellin the client the concept that JSTL is not a risk :(
--alan
-Original Message-
From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 14, 2004 8:24 PM
To: Struts Users Mailing List
Subject: RE: redirecting XML/XSLT to JSP or Vice
89 matches
Mail list logo