-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Van,
> I’m trying to create a jsp page that can upload a file. Everything
> works, but I cannot apply my style to the “Browse” button:
Most browsers don't let you style the browse button for file input types
specifically.
> That displays the regula
YOU CANT CHECK B'COZ JAVASCRIPT DOSENT ALLOW U TO READ THE FILE ON DISC.
You can do
1.
//it causes that no user can enter data manually, rather he has to
select using brows button
2. check in javascript wheather that field is empty or not
-Original Message-
From: Abhimanyu Koul [mailto:[
On 9/20/06, Raghuveer <[EMAIL PROTECTED]> wrote:
/***
***
* Function name : checkFile
* Description : This function is to stop the user from entering a
file
name
* Input :
* Output:
**
/***
***
* Function name : checkFile
* Description : This function is to stop the user from entering a file
name
* Input :
* Output:
Hi Joscar,
In this occasion I can't help you, but as now I know that you are in
this list, I will try pay attention in all mails that I will receive.
Saludos tío.
To be fair, Derek, you are following a long tradition. I think there
was even a challenge on the Internet to do this. However, you are
wrong. I DO it all the time. You need to think out of the box. I
have given you the solution. I can give you code, but it is
interesting and instructive (to m
On Wednesday 22 December 2004 02:29, Dakota Jack wrote:
> There actually are a lot of things you can do with this that are not
> obvious and are consistent with what seems to be impossible. You can
> actually get around almost all of the restrictions on type='file'> without breaking security. Yo
, 2004 10:52 AM
To: uma.k
Cc: Struts Users Mailing List
Subject: Re: html:file value
Hi, Uma,
Let's start over. Forget about anything but telling me from a user's
point of view what you want to do. You have a user using a browser
and wanting to do something with files. If the file is o
There actually are a lot of things you can do with this that are not
obvious and are consistent with what seems to be impossible. You can
actually get around almost all of the restrictions on without breaking security. You just create GUI facades
with span styles. This can allow you to actually
Uma,
When your user submits the form that they've used to select the file
they want to upload, you'll have to upload it - right then. AFAIK,
there's not a way to, at some later point in time, poke a value into a
html:file input field -- per the HTML spec, I believe.
You have to upload the file w
Hi, Uma,
Let's start over. Forget about anything but telling me from a user's
point of view what you want to do. You have a user using a browser
and wanting to do something with files. If the file is on the server,
then we are talking about a download. If the file is on the client
(user machin
Hi Jack,
Thanks for the replies. I basically wanted to write a test programme where
in I have few
text fields and 3 html:file inputs. Before I send the "text" information and
"images" to the
server, I wanted to show a preview to the user.
What I am planning to do is, pass the values to the bean fo
Hi, Tim,
If you have been following uma's posts, you will find that she has
already discovered the Struts file upload classes.
Jack
On Mon, 20 Dec 2004 09:26:59 -0500, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:
> > How do I get html:file value in Action class without using javascript?
>
>
> How do I get html:file value in Action class without using javascript?
>
Have you looked at the struts-upload.jar in the Struts distribution zip
file? That's a full-functional file upload application, all the details of
using Struts to upload a file are there.
In a nutshell, you use in your
s no value"
Image path:" />
Uma
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 7:58 PM
To: Struts Users Mailing List
Subject: Re: html:file value
This is just an input type in a form, Uma, so you need some sort of
form submissio
This is just an input type in a form, Uma, so you need some sort of
form submission which "references" an action class, usually something
like "uploadAction.do".
Jack
On Mon, 20 Dec 2004 19:38:23 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> How do I get html:file value in Action class without using
I'm using html:file and it works just fine . In my previous reply I
made a copy&paste from the generated html.
The most important lines are these 2
document.forms[0].btnFichier.click();
document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value;
On Tue, 10 Aug 2004 12:21
At 10:14 AM 8/10/2004, you wrote:
Use something like this
function getNomFichier(){
document.forms[0].btnFichier.click();
document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value;
}
Will this work with ?
Use something like this
function getNomFichier(){
document.forms[0].btnFichier.click();
document.forms[0].nomFichier.value=document.form["frmFichier"].btnFichier.value;
}
Ovidiu
On Tue, 10 Aug 2004 08:27:49 -0700, Michael McGrady
<[EMAIL PROTECTED]> wrote:
> At 07:41 AM 8/10/20
At 07:41 AM 8/10/2004, you wrote:
Michael McGrady wrote:
Is there a way to hide the standard browse button and use an image for
the button instead?
Michael,
I don't believe this is part of the HTML spec, so in short, no. Every
browser uses a different button for browsing. I don't believe that eve
Michael McGrady wrote:
Is there a way to hide the standard browse button and use an image for
the button instead?
Michael,
I don't believe this is part of the HTML spec, so in short, no. Every
browser uses a different button for browsing. I don't believe that even
CSS can control this.
--
Brice
Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: 10 August 2004 11:11
To: Struts Users Mailing List
Subject: Re: html:file
Hmm well I'll give that a try. I am confused because there are actually
two objects involved -- the text field and the "browse" button, and the
Hmm well I'll give that a try. I am confused because there are actually
two objects involved -- the text field and the "browse" button, and the
attributes seem to apply to the text field . . . But, maybe I just don't
know enough about CSS. How can I refer to the button and not the text
field? H
According to the tld for (I think all) html elements :
style
false
true
styleClass
false
true
styleId
false
true
you can alter the style using css till your hearts content :)
Chris
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: 10 August 2004 10:23
To: Struts U
24 matches
Mail list logo