Hello,
Is there a way to upload a directory (recursive if flagged), using
fileupload. Are there another ways of doing it ?
Thanks
Shishir
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
I generally create resources directory under /WEB-INF/classes
And qualify the properties file as "resources.myfile" (no extension).
This way all of the properties file live under one roof
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 2:07
You may want to look at LookUpDispatchAction or ImageButtonBeansManager
(if using images).
Shishir
-Original Message-
From: Parag Marathe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 10:57 AM
To: Struts Users Mailing List
Subject: Designing for various Actions on JSP
E
Providers: Select solutions
Hi,
correct the web.xml
The error-message is quite clear...
regards
Alexander
-Original Message-----
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 20. Januar 2004 02:43
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [ANNOUNCE] Provide
Well,
a) I have not used logic:iterate for these purpose, hence won't be able
to help you out much there. I use the JSTL tags and try to keep away
from the struts tag as much as possible.
b) I would use ArrayList instead of Vectors.
What I would do if I were you would be something like this:
Can you pls post your full web.xml and struts-config.xml (I seem to have
deleted your earlier posting). Also, can you list your directory
structure with the list of files in them.
Shishir
-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 10:
Hi,
I am getting XML parser error when running it on Tomcat 4.1.27 and
jdk1.4.0.
Can you tell what needs to be done ??
---
SEVERE: Parse Error at line 44 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,co
I think you are missing this :
Where resources is the directory within WEB-INF and
application.properties is the properties file.
You may put the null = "true" to get null value if there is a message
missing. I personally prefer "false" as I can catch any errors that may
not hav
Aaah...but these are not related to form actions and are more like query
strings. I guess in this case, request.getParameter would still be the
best bet, rather than trying to go for an overkill with the hidden id
field etc etc ...just my thought.
If you still don't want to request object, you
valid.
Or, you could try using a ForwardAction.
--- "Shishir K. Singh" <[EMAIL PROTECTED]> wrote:
> Hmmm..strange...can you send a screen shot of how the page looks
> before and after the submit.
>
> -Original Message-
> From: Leticia Golubov [mailto:[
To add onto that
Using resuest.getA in the action does not make any sense since struts
already does that for you by populating the form from the request param
after the reset method on the form is called.
Form should be the only data repository for you to consider between
your view and mod
pages/disco/config_toolbar.jsp"
thanks
-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 16:31
To: Struts Users Mailing List
Subject: RE: Displaying same page after submiting a form
I think you need to add the forward to your action definition
I think you need to add the forward to your action definition
In your action, when your forward to success or failure, your will be
brought to the specific jsp that you want (in your case the same )
Shishir
-Original Message-
From: Leticia Golubov [mailto:[EMAI
I assume that you have a bean that stores all the relevant data and you
read the bean to render the jsp. If so, I generally a flag attribute
(display only) to the bean that I can set up in my action. In the jsp,
if the flag is on, I just render it as a simple text else
Would that work for yo
You may subclass DynaValidatorForm and override the reset function. As
far as I am aware, the reset is handy for boolean values like checkboxes
wherein you need to reset them back to false or true .
Shishir
-Original Message-
From: Sheldon Hearn [mailto:[EMAIL PROTECTED]
Sent: Wednesda
I think there are examples related to Upload in the struts src distribution. Download
the src and go through that. That should get you started.
Shishir
-Original Message-
From: Honza Spurný [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 12:41 PM
To: [EMAIL PROTECTED]
Subj
Ooops..I am sorry.
I think you can do
MessageResources resource = (MessageResources)
servlet.getServletContext().getAttribute("PORTAL_RESOURCES");
servlet is a protected field in ActionForm and hence accesible.
Shishir
-Original Message-----
From: Shishir K. Singh
Sent:
I think the messageresources is stored in the the application context.
Don't know if you can access the application context in the form.
One way would be to subclass RequestProcessor, put a static function to
get the resource and use that.
I would have been happier if an extra function could h
nuary 07, 2004 9:28 AM
To: Struts Users Mailing List
Subject: AW: array-input form ?!
ok, yes this is what i want...
but don?t use JSP ...(use velocity-framework)
but thanks so i now know where i have to search (DynaActionForm)
many thanks ,
Andi
> -Ursprungliche Nachricht-
> Von
Do you want to store all the rows in each bean as array of Bean. In
other words, if you have two rows, then have an bean Array of size 2.
The bean will be off course having the first name last name and data...
If so , this is certainly possible.
Try looking at the DynaActionForm. Define the prop
hinking of reloading it then separating the apps makes
sense. If something goes wrong, you can manage it. Otherwise if the app
bails it bails and its game over.
On 7 Jan 2004, at 14:28, Shishir K. Singh wrote:
> Isn't there a way to reinitialize the ActionServlet (or any Subclass
> th
Would you be looking for something like this
http://www.openroad.ca/opencode/
Looks intriguing. I am in the process of evaluating this. Would
appreciate any feedbacks/comments from anyone using this extension.
Shishir
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECT
Isn't there a way to reinitialize the ActionServlet (or any Subclass
that you may be using) at runtime. I think there is something to this
effect in the Orielly Struts book. If I remember correctly , the book
list two ways of doing it. Can't recollect it right now :(.
-Original Message-
F
's
messing.
-Original Message-
From: Lobello Jeffrey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 12:57 PM
To: Shishir K. Singh; Pitchko, John SCAN--; Struts Users Mailing List
Subject: RE: Html:input help
Generally, CSS (such as text-transform) will alter the visual
displ
t: Tuesday, December 23, 2003 9:02 AM
To: Shishir K. Singh; Struts Users Mailing List
Subject: RE: Html:input help
IMO, you're probably better off doing this kind of data transformation
inside of an Action. Would it be at all possible to do this within your
application?
-Original Me
Why don't you design your bean like this:
If it's a one time set of the collection,then
public class NestedParentBean extends ActionFormBase{
private String parentName = null;
private String parentId = null;
private java.util.ArrayList childBeanCollection = null;
public
Use
ResourceBundle resource =
ResourceBundle.getBundle("resources.application");
Else :
If you are in Action/Lookup Dispatch Action class
MessageResources resource = getResources(request);
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23
Hi,
I have two html:input (type text ) fields on my form and I am converting
them to upper case using inline css style. I have included the rendered
html page snippet. If you see, the PartNo retains the value uppercase
value (TEST1). However, the Part Description is not correct even though
the s
uot;action" seems to conflict with the
property "action"
on the form and I kept getting errors.
--- "Shishir K. Singh" <[EMAIL PROTECTED]>
wrote:
> I am getting the same error.
>
> The name of the button that I want to emulate is "action" and
ED]> wrote:
> If you do a System.out on action, you will find it's null right now.
> You need to pass a valid action to the your dispatch Action so that it
> knows which handler to call.
>
> >document.form.action='continue';
>
>
> -Original Mess
that it
knows which handler to call.
>document.form.action='continue';
-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: lundi 10 novembre 2003 15:33
To: Struts Users Mailing List
Subject: Form submission through java script
Hi,
I have a f
call
document.form.submit() - the JavaScript will automatically know what to
do and where to submit to.
Shishir K. Singh wrote:
>Hi,
>
>I have a form with one drop down menu list and two buttons (continue
>and previous ). The two buttons are hooked up to the
>LookupDispatchAction
Hi,
I have a form with one drop down menu list and two buttons (continue and
previous ). The two buttons are hooked up to the LookupDispatchAction
where
I process the code as required by the action of the button. Everything
works fine if I use the buttons.
My requirement is that when I click
Hi,
I am reposting this question.
How can I use runtime variable with the property attribute of html:image
tag.
Eg,
My intent is :
However, the value for property is not substituted. I get the property
as "".x and y instead of the value of .
Am I missing something here ?
Hello,
How can I use runtime variable with the property attribute of html:image
tag.
Eg,
My intent is to do the following.
However, the value for property is not substituted. Am I missing
something here ?
TIA
Shishir
ould be even more
> efficient to load them into servlet context with a plugin at startup)
>
> We thought you needed to do some really complex db lookup based on
> other fields in the same form that was too dynamic to effectively
> preload results for.
>
> -----Original Mess
some really complex db lookup based on other
fields in the same form that was too dynamic to effectively preload
results for.
-Original Message-
From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 October 2003 12:35
To: Struts Users Mailing List
Subject: RE: Servlet call
mean like this?
http://www-106.ibm.com/developerworks/library/wa-resc/
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx
> -Original Message-
> From: Shishir K. Singh [mailto:[EMAIL PROTECTED]
> Sent: Wednesda
Hi,
Is there anyway that I can call a servlet from a Select Input type. The
idea is that the moment user clicks on the drop down of an
type, the option is populate by data queried from database
( this logic resides in a servlet). I think that I may have to use the
onClick attribute, but I am n
Hello,
Is there a way that I can create a form dynamically based on some XML
configurable file. The configurable file will say what kind of input
type it is. Eg "text", "checkbox" etc and accordingly, I create the
form input types and then display the fields.
Eg
My JSP looks like this righ
Hello,
I am trying to use DynaActionForm. However, I would like to have the
reset() and validate() functionality using DynaActionForm. Any pointers
as to how to get around this without going back to ActionForm.
TIA
Shishir
-
Hello,
I am new to struts and kind of working on my first struts project. One
of my requirement is that based on a user input on a user form, the same
form is displayed but with additional/different input field.
These input fields are kind of conditional fields. Based on the value of
the previo
42 matches
Mail list logo