you can use javascript to do this job...
like this:
Enviar Formulário
where is the index of the form you want to submit (starts in 0 -
zero)
Henrique Viecili
- Original Message -
From: "cacau_braga" <[EMAIL PROTECTED]>
To: "user" <[EMAIL PROTECTED]>
White spaces are required after keyword PUBLIC in DOCTYPE declaration in some
xml (struts-config.xml or web.xml)
Henrique VIECILI
ps.: Did you read the stack trace?
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 07, 2004 7:19 AM
Su
dation.xml
...
...
minlength
6
...
...
Debugging my application I realized that the Object[] passed as param to
ActionMessage() has only the first [0] value different from null (in this case,
"Password").
Henrique Viecili
Properties
object
Properties props = new Properties();
props.load(new FileInputStream(new File("path_to_appResoureces.properties")));
[]´s
Henrique Viecili
- Original Message -
From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]>
To: "'Struts Users Mai
gt;
> 2)
>
> ---> Password
> ---> 6
>
> minlength
> 6
>
> ...
>
>
>
> > - Original Message -
> > From: "Henrique VIECILI" <[EMAIL PR
Hi Julia,
You can use javascript and/or server-side validation:
javascript:
isNaN(field.value); //verify if the value 'is not a number'
server side: (there are many ways)
try {
Double.parseDouble(getField());
} catch (NumberFormatException nfe) {
// if this exception is thrown the valu
^[\\d | \\s | \\. | \\-]*$
tested with java.util.regex
Henrique Viecili
- Original Message -
From: Tim Penhey
To: Struts Users Mailing List
Sent: Thursday, May 20, 2004 1:35 PM
Subject: RE: Simple Validator regex needed
> From: Eric Dahnke [mailto:[EMAIL PROTECTED]
> Sent:
want to do, would be more interesting to use some kind of
SIGNED Applet or ActiveX Control.
Explain what you wanna do and I can give you a better clue.
Henrique Viecili
- Original Message -
From: praveen kulkarni
To: [EMAIL PROTECTED]
Sent: Friday, May 21, 2004 1:55 AM
Subj
Hi Ding!
You can try this:
You may look into struts-bean API documentation to understand how this tag works.
[]´s
Henrique Andrade Viecili
- Original Message -
From: Ding Lei
To: [EMAIL PROTECTED]
Sent: Saturday, May 22, 2004 2:44 AM
Subject: How to get length of an array(
Ok, there isn´t an 'incredibly useful nl2br' but there is a 'marvelous regex-based
method' to do this using Java:
String nl = "String with \n new line";
String br = nl.replaceAll("\n","");
or you can try using Commons Lang and cc-* t
how do you declared this resource in your struts-config.xml ??
(place the code)
Henrique Viecili
PS.: Maybe your question is answered in the message titled 'Can I have multiple
ApplicationResources from the same locale?'
- Original Message -
From: ksitron
To: St
in 'constituencies', then you should use the 'collection' to specify
the collection with labels and/or values.
Try this:
where 'property' will render the 'value' attribute of and 'labelProperty'
will render the value shown to the use
this too: (I´m not sure it works)
struts-config.xml
in MyForm there is a method (getValuesAndLabels()) returning a collection containing
beans holding the label (getLabel()) and value (getValue()) for each option. Then:
, or maybe:
Just thoughts,
Henrique Viecili
- Original Message
Hi all,
every time I send a message to the [EMAIL PROTECTED] I receive the message bellow. I´d like
to know if you guys are receiving this message too.
Regards,
Henrique Viecili
- Original Message -
From: System
Administrator
To: viecili
Sent: Friday, May 28, 2004 8:53 AM
Ok, then the list moderator could take some attitude to avoid this, ok?!
Henrique Viecili
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List
Sent: Friday, May 28, 2004 9:30 AM
Subject: Re: Undeliverable Message
Yes so do I.
"Henrique VI
getLabel() and getValue()
Henrique Viecili
- Original Message -
From: Samuel Rochas
To: Struts Users Mailing List
Sent: Friday, May 28, 2004 2:47 PM
Subject: Re: only with bean?
Hello Henrique,
Thanks for your answer.
Your solution suppose I maintain two lists of
e.getOutputStream();
out.write(data);
out.flush();
out.close();
Ok, i´m sure it works with Acrobat4+ and IE5+. I did not tested in Linux and other
browsers.
Henrique Viecili
- Original Message -
From: Dean A. Hoover
To: [EMAIL PROTECTED]
Sent: Friday, June 04, 2004 9:37 AM
Su
Hi Riyad,
here is a simple example:
BTW, you are doing a very good job on MyEclipseIDE Team!
Henrique Viecili
- Original Message -
From: Riyad Kalla
To: Struts Users Mailing List
Sent: Saturday, June 05, 2004 9:15 PM
Subject: Taglib: how do you call a method like
more
parameter ids and corresponding values."
At struts-doc you will find out how to do this.
Henrique Viecili
- Original Message -
From: Kies, Daniel
To: '[EMAIL PROTECTED]'
Sent: Tuesday, June 08, 2004 4:52 PM
Subject: Putting Multiple Parameters in the
object
argument for function call
Does anyone know what does it mean? I have searched google and it says that the
container is creating the instance of my.pkg.MyBean incorrectly, but it seems a
*little* weird. I am using Tomcat 4.1.27
Henrique Viecili
Viecili
- Original Message -
From: Henrique VIECILI
To: Struts Users Mailing List
Sent: Wednesday, June 09, 2004 2:29 PM
Subject: [Semi-OT] Incompatible object argument for function call
Hi All,
I use a bean in the application scope doing like this:
then i set some
Does anyone know howto use the tag with the values and label inside a
Map?
I´ve tried this:
but it didnt work...
Any sugestions?!
Henrique Viecili
uot;Santa Catarina");
states.put("PR","Paraná");
and i want to render something like this on my html
Rio Grande do Sul
Santa Catarina
Paraná
I guess that is it,
Henrique Viecili
- Original Message -
From: Barnett, Brian W.
To: 'Struts Users
Ok, thanks. I just thought that could be some way of doing this with java.util.Map
instead of any collection.
Henrique Viecili
- Original Message -
From: Barnett, Brian W.
To: 'Struts Users Mailing List'
Sent: Tuesday, June 15, 2004 3:44 PM
Subject: RE: using jav
urns a Set (collection) of Map.Entry wich is like a bean, with
methods getKey() and getValue(), so i can use it normally with .
Thank you all for the contributions,
Henrique Viecili
- Original Message -
From: Ron Grabowski
To: struts
Sent: Wednesday, June 16, 2004 12:11 AM
S
You must initialize the correspondent variable in ActionForm (inside 'reset' method)
with the value you want to be checked, Struts will render the checked 'automagicly'.
Henrique Viecili
- Original Message -
From: Asim Ghosh
To: StrutsUsers
Sent: Monday, J
uot;M";
if you like, you can set the default value inside the reset method too.
Henrique Viecili
- Original Message -
From: Asim Ghosh
To: Struts Users Mailing List
Sent: Monday, June 21, 2004 8:31 AM
Subject: Re:
hello Henrique,
can you give me an example...
it shows me the server certificate but
doesnt ask for the client certificate.
Somebody can give me some light on this?! And, later, how to know the client
certification attributes after authentication?
Thanks,
Henrique Viecili
You can try www.myeclipseide.org
Henrique Viecili
- Original Message -
From: Shabalov, Igor
To: Struts Users Mailing List ; e-denton Java Programmer
Sent: Friday, June 25, 2004 2:31 PM
Subject: RE: Recommend Struts Plugins for Eclipse?
Struts Studio. The best
the modal.
Henrique Viecili
- Original Message -
From: Srinivas Rao
To: Struts
Sent: Wednesday, June 30, 2004 7:12 AM
Subject: Getting the values from Popup window to Parent window if Multiple text
fields in parent window
Hi guys,
I am facing samll problem , it
Hi Deepak,
You should create a field in your ActionForm of type FormFile[]. But, i´m not
sure, still there is a bug in struts when you upload multiple files and you have to
change the code, if you change google you will find it!
Henrique Viecili
- Original Message -
From
'change' google would be a great job that should not be done!!!
you can SEARCH google (or i could simply use the verb 'to google')
Henrique Viecili
- Original Message -----
From: Henrique VIECILI
To: Struts Users Mailing List
Sent: Thursday, July 01, 2004 8
use the method saveErrors(ActionErrors);
In you Action:
ActionErrors errors = new ActionErrors();
// validation
errors.add("property", new ActionError("key"));
saveErrors(errors);
Henrique Viecili
- Original Message -
From: [EMAIL PROTECTED]
To: Strut
I think it will work:
XX
or in javascript:
document.getElementById("xxx").disabled = 'true';
Henrique Viecili
- Original Message -
From: Kris Schneider
To: Struts Users Mailing List
Sent: Friday, July 02, 2004 1:16 PM
Subject: Re: Why http:/
for error messages, notice the use of bundle in
Henrique Viecili
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 05, 2004 12:23 PM
Subject: Message Resources Confusion
Greetings,
I am somewhat unclear with the Message Resources.
Hi all,
is there any struts or non-struts taglib wich converts normal text into HTML?
I want to add after each new line one to present correctly some text typed in a
textarea in previous page.
Thanks,
Henrique Viecili
Thanks Niall,
I downloaded the Lang2.0 but i couldn´t find any .tld files to download (specially
string.tld). Do you know where to download these files? They don´t come with distro.
Henrique Viecili
- Original Message -
From: Niall Pemberton
To: Struts Users Mailing List
Sent
If your filefields have all the same id or name you will get an array of them, then
you should access them like an array.
By example:
HTML:
File 1:
...
File n:
JAVASCRIPT
var files = document.getElementById("myFile");
for( i = 0; i < files.length; i++)
alert(files[i].valu
Hi all Eclipse and Struts fans,
What free plugins for eclipse 3 do you recommend to build a complete enviroment to
develop J2EE applications using Struts?
A complete enviroment includes:
UML modeling
DataBase connection
J2EE development
Struts framework
Thanks,
Henrique Viecili
Gonzalez Pearson
To: Struts Users Mailing List
Sent: Monday, August 30, 2004 4:27 PM
Subject: Re: [OT] Good luck Dream Team
Uruguay = 2nd place
Italia = 3rd place
IRAK = 4th place
BRASIL = ... OUT ? ..
LOL
- Original Message -
From: "Henrique VIECILI&quo
;;
newInput.name = "values";
container.appendChild(newInput);
}
After submitting the page you can access the values array containing all the fields
values.
Henrique Viecili
- Original Message -
From: Hadeel Rashad
To: 'Struts Users Mailing List'
Sent: W
Well, this is what we call CROSS-POSTING
- Original Message -
From: Dao Xuan Nam
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
[EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Thursday, September 0
Henrique Viecili
- Original Message -
From: Seaman, Sloan
To: 'Struts Users Mailing List'
Sent: Thursday, September 09, 2004 9:49 AM
Subject: [OT] Java Charting API's
Sorry to go off topic, but can anyone suggest a good free charting package
for Java?
Well, if some invitation has left at this moment, I am interested on it...
Thanks,
Henrique Viecili
- Original Message -
From: Matt Bathje
To: Struts Users Mailing List
Sent: Friday, September 10, 2004 12:48 PM
Subject: Re: [FRIDAY] GMail invites
The invitation rules
nly occurs when the file is 44 bytes long.
Java reads the file normally.
Maybe something to do with character encoding?! but does notepad handle character
encodings??
Does anyone here knows whats going on?
Henrique Viecili
I don´t think it worth the effort but you can encode the string in base64 and it will
work for sure!!
Henrique Viecili
- Original Message -
From: Philipp Roethl
To: [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 5:01 PM
Subject: German Umlaute
Hi,
I.m currently
.
Henrique Viecili
- Original Message -
From: Paulo Alvim
To: [EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 6:19 AM
Subject: Browser page break with ms/word myme
Hi!
I've read that the easier way to print using page break and Browser is to
send the ordinary text
ave a solution?
Henrique Viecili
Pemberton
To: Struts Users Mailing List
Sent: Tuesday, October 26, 2004 9:56 AM
Subject: Re: Vector of array in session
Try
Niall
- Original Message -
From: "Henrique VIECILI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAI
- Original Message -
From: "Henrique VIECILI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 26, 2004 2:20 PM
Subject: Re: Vector of array in session
It threw
javax.servlet.ServletException: Cannot
Hi,
I need to pass 2 parameters in the html:rewrite tag but i didn´t find out the
correct sintax. Can anyone help me?
[]´s
Henrique Viecili
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
have you tried changing your ApplicationResources to
err.name.required=The {0} field is required (whitout the quotes') ?
it should work.
[]´s Henrique Viecili
- Original Message -
From: "bOOyah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Apr
Hi Marc,
if you have a collection, it would be nice to use the tag, which
iterates over a collection rendering tags (you shall place inside
or to make sense)
in your case:
i guess it will work!
[]´s
Henrique Viecili
- Original Message -
From: "Marc Tinnemeyer" <[EM
objects from the collection that all have
> the same "property"-field.
>
> Marc
>
>
>
> On Thu, 22 Apr 2004 11:52:39 -0300
> "Henrique VIECILI" <[EMAIL PROTECTED]> wrote:
>
> > Hi Marc,
> >
> > if you have a collection, it would be nice
or you can do this:
in the Validation:
errors.add(new ActionError("topForm","app.resource.str")); //for the top form
errors.add(new ActionError("bottomForm","app.resource.str")); //for the bottom
form
in JSP:
//put above topForm
//put abo
use the same name you assigned to the form in struts-config.xml form-bean
in struts-config.xml
in the jsp file
note the form.myForm must be assigned to the action in the
Henrique Viecili
- Original Message -
From: "Julia Weaver" <[EMAIL PROTECTED]>
To: "Stru
Ae Alessandro,
Na ActionForm que contem este campo, vc deve inicializar o valor da propriedade
'numAgencia' com o valor que vc deseja que esteja selecionado inicialmente na
sua combo (no seu caso: numAgencia = 61 )
Abraços,
Henrique Viecili
- Original Message -
From: &q
*Don´t flood our mailboxes*
If I had the answer I would not collaborate because you are flooding... XP
Thanks
Henrique
- Original Message -
From: "ganesh g" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 9:37 AM
Subject: convert loc
Hi,
Does exist a free solution in Java to convert rtf documents to pdf documents
(using XSL:FO and FOP - or not), or the only one is the www.rtftofo.com ?
[]´s
Henrique Viecili
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
sorry for this bogus email, but does anyone have some extra gmail invite
to give me?
if so... please send to [EMAIL PROTECTED]
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Thank you Sudhakar
Henrique VIECILI wrote:
Hi,
sorry for this bogus email, but does anyone have some extra gmail
invite to give me?
if so... please send to [EMAIL PROTECTED]
thanks
61 matches
Mail list logo