How can we send parameter's value to javascript function ??

2005-05-20 Thread minhnguyet
Hi all, I want to send parameter 's value to javascript function . When I use , the value is not send and this is a result in IE But when use everything is work right : . I don't see what is different in html code . So , how can we directly send paramet

Re: [HELP] Couldn't include tag in onClick in

2005-05-20 Thread Pham Anh Tuan
Thanks Nandan, Ex: loop set MESSAGE = "somevalue" set MESSAGE to be value of 1 radio button end loop If there's 2 or more radio buttons in 1 loop, so we will have two or more values for only 1 MESSAGE variable?, so, the last value which is set to MESSAGE variable will be the common value fo

Re: DownLoad Action - exceptions

2005-05-20 Thread Lucas Bern
What I mean is, I have to implement a getStreamInfo method that returns an instance of an implementation of StreamInfo, if during the execution of this method some exception is thrown, what to do??? Should I override the "execute" method surrounding a call to "super.execute" with try catch???

Re: [OT] Help with REgular Expressions in Validate()

2005-05-20 Thread Brady Hegberg
I have a small swing application (setup on webstart) for testing regular expressions here: http://lili.net/java/test-regex.jnlp Or I can send you the code to test it yourself if you wish. it won't fix your problem but it's a handy tool for narrowing it down. Brady > Hi all > I markled this OT b

[OT] Help with REgular Expressions in Validate()

2005-05-20 Thread David Johnson
Hi all I markled this OT because it's not a Struts question strictly speaking. what I'm trying to do is disallow names that contain spaces or special characters in the validate() method of my ActionForm Code: String pattern = "\\W+"; log.debug("Testing validity of name "+name+ " against "+patter

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: I'm not sure I think that would be nice ;-) Seems kind of risky, in that it adds a lot of indeterminacy. That's the main reason why lots of us are down on request chaining too. Just talking about the chain pattern generically... think about trying to implement a recursive p

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
At 3:23 PM -0400 5/20/05, Frank W. Zammetti wrote: It's interesting to have some more complex use cases to test the chain model against... Absolutely. One thing that would be nice, and maybe it already is and I just don't know enough yet, is to be able to essentially restart the chain at any gi

Re: problem in installing struts

2005-05-20 Thread Laurie Harper
Check you have the right version of Ant installed -- or just download a pre-built binary. L. sharad singh wrote: Hello Prashant I am sharad from IIT-Kanpur.I have just started work on struts .I am going to install struts .but facing a lot of problem in installing struts.i have down load str

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: Well, the difference between extending PopulateForm and putting a command after it which re-populates in the case of a SOAP request is small; the only caveat being that in the add-a-command-after model you must do it after or the existing PopulateForm action would clobber you

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
I'd suggest adding a preprocessing command which recognizes the SOAP header, as Frank described, and instead of forwarding, simply sets a key/value pair in the ActionContext which other commands can interpret. Then later, you could extend the PopulateForm class to look for the flag and to do i

Re: Nested Beans

2005-05-20 Thread Hubert Rabago
Works for me. If you want, I can send you code later in the day. (Will be busy for most of the afternoon). Or, you can post more of your code and maybe someone else will spot something. Hubert On 5/20/05, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote: > > >You might find the

Re: Submitting form data via redirect

2005-05-20 Thread erikweber
Sorry, the word is idempotent, not indempotent. http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html Erik -Original Message- From: [EMAIL PROTECTED] Sent: May 20, 2005 2:54 PM To: Struts Users Mailing List , Andrew Thorell <[EMAIL PROTECTED]> Subject: Re: Submitting form data

Re: Submitting form data via redirect

2005-05-20 Thread erikweber
I don't know anything about the logic:redirect tag, but trying to redirect a POST transaction brings up other issues. The HTTP RFC, as far as I know, doesn't prohibit this behavior, but you are probably going to find browser compatibility problems. The reason is that GET is mainly for indempote

Re: Can a servlet receive its own request?

2005-05-20 Thread Dakota Jack
Not something like "browsers" but browsers. I am not sure why you find that difficult. On 5/20/05, li yanjing <[EMAIL PROTECTED]> wrote: > sorry bothering you:) > do you mean you are writing something like "browsers" in java? > I really interested in that.I want a browser (can be without a GUI) >

Submitting form data via redirect

2005-05-20 Thread Andrew Thorell
Greetings all, I was wondering if anyone knows of a way to submit form data via a action. The fields are auto populated so the user doesn't need to see anything. Does the redirect tag already do this? Any thoughts? Thanks, Andrew ---

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
Joe Germuska wrote: I do think that it would be much easier in 1.3 than in 1.2 to solve this without doing a forward and re-engaging the request processor; I can see where the complexity of intervening in arbitrary spots in the request process in the "template pattern" approach of the RequestPro

RE: JSTL and Struts together

2005-05-20 Thread Suresh Khatri
Thank You. found EL jar and tld in contrib folder. Original message >Date: Fri, 20 May 2005 06:23:18 -0700 >From: "Karr, David" <[EMAIL PROTECTED]> >Subject: RE: JSTL and Struts together >To: "Struts Users Mailing List" > >If you look in the "contrib" folder of the Struts distri

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
However, just to level-set as far as the current 1.2.x version goes... Thanks, Frank. That helps a lot. I do think that it would be much easier in 1.3 than in 1.2 to solve this without doing a forward and re-engaging the request processor; I can see where the complexity of intervening in arbitra

Re: Template Library? What is it??

2005-05-20 Thread James Mitchell
The template library, originally developed by David Geary, was sort of a launch pad for the Tiles Project. Cedric or others can verify if I've missed anything. Basically, the template library was not kept around or supported after 1.0 (Jeez, that seems like ages ago ;). Tiles is the preferred

Re: How to I check what version of struts I have?

2005-05-20 Thread David Johnson
ty all :) On 5/20/05, Nitin Mandolkar <[EMAIL PROTECTED]> wrote: > > You can find it read me file. > > If you have only struts.jar file. Then unzip it with winzip and look for > manifest file. > > This my manifest file reading. > Look for your. > > Manifest-Version: 1.0 > Implementation-Versi

Re: [struts-faces] Empty Form in Action

2005-05-20 Thread Markus Koivisto
Now, the action is executed all right, but the form that is sent to the action is completely empty. Every field is null. Does anyone have any idea why this happens and how to fix it? It sounds like you are not returning an ActionForward from your action execute method. Make sure that you

Re: Nested Beans

2005-05-20 Thread Brandon Mercer
Hubert Rabago wrote: >You might find the nested tags interesting: > ><%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> > > > > > > > > > > > > Still a bit miffed. I'm not sure if it's beanutils that is not copying the List into the new bean... or i

Re: DownLoad Action - exceptions

2005-05-20 Thread Frank W. Zammetti
You mean as far as what the user sees goes? I wouldn't think you would handle it any differently than you would any other exception that might happen in an Action. I personally use the GlobalExceptionHandler mechanism in Struts... after the handler writes out some log info and such, I forward

RE: How to I check what version of struts I have?

2005-05-20 Thread Nitin Mandolkar
You can find it read me file. If you have only struts.jar file. Then unzip it with winzip and look for manifest file. This my manifest file reading. Look for your. Manifest-Version: 1.0 Implementation-Version: 1.0.2 Specification-Title: Struts Framework Specification-Version: 1.0 Implementation

Re: sTRUTS 1.3 - chain flow

2005-05-20 Thread Frank W. Zammetti
I don't want to comment much, if at all, on the chain-based implementation Marco is trying to accomplish because I am frankly not up to speed on the 1.3 code base and so am not in a position to comment intelligently. I'm trying to help him off the list as best I can, but I'm actually having tr

RE: Using html:text with java.util.Date property

2005-05-20 Thread Freddy Villalba A.
Hello Nestor, Personally, I consider it a good practice - and simpler - to handle dates as String objects (in the presentation layer, that is). This will save you lots of server-side-headaches and ease your way, especially when you have to face internationalization issues (for instance, different

DownLoad Action - exceptions

2005-05-20 Thread Lucas Bern
Hello, I'm lookig for advise... How should be managed the exceptions by an acton that extends DownLoadAction Thanks Lucas - A tu celular ¿no le falta algo? Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular. Más información aquí.

Re: [struts-faces] Empty Form in Action

2005-05-20 Thread gvanmatre
> Hi! I converted a page from struts to jsf, and I'm running to no end of > problems using it. > > I previously posted a question about getting LookupDispatchActions to > work. Since I received no replies and couldn't figure it out for myself, > I made a new action that is specific to this page

Re: Validator inheritance

2005-05-20 Thread Riyaz Mansoor
i asked this same question and the answer i got here is: this was added to Validator but not public release has been made after this. u can download a source distro of validator and compile and use it. > the above should work as is - i am using it :) riyaz Yaroslav Novytskyy wrote: Hi! Does anyone

Re: Using html:text with java.util.Date property

2005-05-20 Thread Rick Reumann
Néstor Boscán wrote the following on 5/20/2005 10:52 AM: I'm trying to use the html:text tag with date properties and I'm getting java.lang.IllegalArgumentException: type mismatch. Any ideas? Where are you getting this error, when trying to put your form bean properties into a value object? Are yo

Re: How to I check what version of struts I have?

2005-05-20 Thread Wendy Smoak
From: "Rafael Taboada" <[EMAIL PROTECTED]> > Yes but which MANIFEST.MF??? In the war files???. Because it shows: The one in struts.jar (if you're trying to figure out which version of Struts you're using, that is.) -- Wendy Smoak --

Re: How to I check what version of struts I have?

2005-05-20 Thread Hubert Rabago
You said it yourself: On 5/20/05, David Johnson <[EMAIL PROTECTED]> wrote: > Is there a file in the struts.jar I can check? Everyone's response: the META-INF/MANIFEST.MF file. :) Hubert On 5/20/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Yes but which MANIFEST.MF??? In the war files???.

Re: How to I check what version of struts I have?

2005-05-20 Thread Rafael Taboada
Yes but which MANIFEST.MF??? In the war files???. Because it shows: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.) -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PRO

Validator inheritance

2005-05-20 Thread Yaroslav Novytskyy
Hi! Does anyone know about the way to "inherit" (1) and "reuse" (2) validations for multiple forms in validation.xml Explanation: 1. I have a number of myForms: myForm1, myForm2, and so on they are of class MyForm (so they all have same fields) and I want them to validate the same. e.g. pro

Using html:text with java.util.Date property

2005-05-20 Thread Néstor Boscán
Hi I'm trying to use the html:text tag with date properties and I'm getting java.lang.IllegalArgumentException: type mismatch. Any ideas? Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
It works, but yes, you are right in the sense that If I override The struts catalog, everything will screw up... unless I have a look at Chain-config before, so that I know what commands are supposed to be In struts chain, and then add mine while keeping original ones.. I think that's the best solu

Re: How to I check what version of struts I have?

2005-05-20 Thread Wendy Smoak
From: "David Johnson" <[EMAIL PROTECTED]> > Is there a file in the struts.jar I can check? Yes, look at MANIFEST.MF (in META-INF). -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, Thanx a lot for your reply... >If you have time to try this, let me know -- but I'd be afraid that >if you defined another catalog with the name "struts", it would >overwrite the base "struts" catalog instead of merging with it. If >that's true, then you either must edit the one ch

Re: How to I check what version of struts I have?

2005-05-20 Thread Hubert Rabago
Check either the Implementation-Version or Specification-Version in the META-INF/MANIFEST.MF file. Hubert On 5/20/05, David Johnson <[EMAIL PROTECTED]> wrote: > Is there a file in the struts.jar I can check? > > -- > -Dave > [EMAIL PROTECTED] > > ---

RE: How to I check what version of struts I have?

2005-05-20 Thread Jay Garala
Check the manifest.mf in meta-inf Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.) Extension-Name: Struts Framework Specification-Title: Struts Framework Specification-Vendor: The Apache Software Foundation Specification-Version: 1.2.4 Implementa

RE: How to I check what version of struts I have?

2005-05-20 Thread Jay Garala
Check the manifest.mf in meta-inf Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.4.2_04-b05 (Sun Microsystems Inc.) Extension-Name: Struts Framework Specification-Title: Struts Framework Specification-Vendor: The Apache Software Foundation Specification-Version: 1.2.4 Implementa

Re: Template Library? What is it??

2005-05-20 Thread David Johnson
It helps a lot! Thanks Apparently I had the following in one of my JSPs <%@ taglib uri="http://jakarta.apache.org/struts/tags-template"; prefix="template" %> So.. I removed it :) I want using it anyway. On 5/20/05, James Mitchell <[EMAIL PROTECTED]> wrote: > > The template library, origin

How to I check what version of struts I have?

2005-05-20 Thread David Johnson
Is there a file in the struts.jar I can check? -- -Dave [EMAIL PROTECTED]

Template Library? What is it??

2005-05-20 Thread David Johnson
Hi there all Please forgive the stupid question, but I'm working with a client who is telling me that I am not using the "template library" in my struts application. The application uses struts and tiles, with all the page definitions stored in a tiles-defs.xml file I thought the Template Li

FRIDAY - WebGVO Struts-Groove app - help wanted

2005-05-20 Thread Neil Finlayson
People, I'm looking for bug/enhancement assistance on the following Struts app which is I believe the first J2EE connector to the very cool Microsoft Groove virtual office. http://mrquintron.gla.mysterian.com/WebGVO/execute/listWorkspaceSetup Its built on John Carnell's very nice Struts starter

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
At 2:43 PM +0100 5/20/05, Marco Mistroni wrote: Hello Joe, As an aside, I think reveals an unfortunate (though minor) shortcoming of the basic chain model: either way, you must edit the struts chain-config.xml in order to use this behavior. I would prefer if there were a way for users to register

Re: Easy form populate question for gurus

2005-05-20 Thread Randy Kennedy
Here is a snippet from my initializing action before it goes to the form view: ... LazyValidatorForm ppForm = (LazyValidatorForm)form; ProtectedPersonLocal ppl = null; ProtectedPersonDTO dto = null; String sid = null; sid = request.getParameter("sid");

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, >As an aside, I think reveals an unfortunate (though minor) >shortcoming of the basic chain model: either way, you must edit the >struts chain-config.xml in order to use this behavior. I would >prefer if there were a way for users to register their preprocessing >command without ha

Re: Nested Beans

2005-05-20 Thread Brandon Mercer
Hubert Rabago wrote: >You might find the nested tags interesting: > ><%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> > > > > > > > > > > > >Hubert > > Looks like what I want to do. I'll go check it out, thanks for the link. Brandon

Re: Nested Beans

2005-05-20 Thread Hubert Rabago
You might find the nested tags interesting: <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> Hubert On 5/20/05, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Hello Everyone, > I've got an easy one, that is stupifying me because of my tiredn

[struts-faces] Empty Form in Action

2005-05-20 Thread Markus Koivisto
Hi! I converted a page from struts to jsf, and I'm running to no end of problems using it. I previously posted a question about getting LookupDispatchActions to work. Since I received no replies and couldn't figure it out for myself, I made a new action that is specific to this page. Now the p

RE: JSTL and Struts together

2005-05-20 Thread Karr, David
If you look in the "contrib" folder of the Struts distribution, you'll find the "struts-el" distribution. This provides a taglib that just wraps the Struts tag library so that all tag attributes are passed through the JSTL EL engine, so you could do the following: <%@ taglib uri="http://java.sun.

Nested Beans

2005-05-20 Thread Brandon Mercer
Hello Everyone, I've got an easy one, that is stupifying me because of my tiredness. I've got a POJO with a List in it. The List is a list of beans. In my JSP page I'm trying to iterate over the list of beans. Here goes: public class Information { private String name = null; private St

ActionErrors & ActionMessages bif problem

2005-05-20 Thread Vinicius Caldeira Carvalho
Hello there! I'm really, really confused with this. Being a struts user for a quite some time, I must say, it's a great framework but its warning system sux big time. Here's my problem: I have 2 types of errors in my system (general are displayed on top of page, detailed in front of each proper

Re: JSTL and Struts together

2005-05-20 Thread Hubert Rabago
Suresh, I would recommend you still use "html" as prefix instead of "html-el". This way, when you switch to a web container that supports EL and decide to drop the struts-el.jar, you can just modify your <%@ taglib %> declaration to reconfigure (or, depending on how configure tags, just your web.x

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Joe Germuska
No, rather than changing LookupCommand, you would put your logic into one or more classes that are clean implementations of Command and configure in a catalog with a name so that the existing lookup command would find them -- either put them in catalog "struts" under the name "servlet-standard

Re: JSTL and Struts together

2005-05-20 Thread David Johnson
you can use the control to accomplish just that I'm doing that in a bunch of places. On 5/20/05, Shey Rab Pawo <[EMAIL PROTECTED]> wrote: > > etc. > > On 5/19/05, Suresh Khatri <[EMAIL PROTECTED]> wrote: > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"/> > > <%@ taglib uri="/ta

Re: Opening a Form in a New Window - Help!

2005-05-20 Thread David Johnson
hey there What meant was that I wanted to open a new browser that had these options set: > window.height=400; > window.width=300; > window.status=yes; > window.toolbar=no; > window.menubar=no; > window.location=no; so that it isnt just another same size browser with tiny help text in it. On 5/

Re: set-property?

2005-05-20 Thread Hubert Rabago
The element is used to set properties when using custom configuration objects. For your particular example, check the custom ActionMapping configuration object declared in the tag. The /WEB-INF/struts-config.xml that comes with struts-examples.war illustrates this:

Re: Easy form populate question for gurus

2005-05-20 Thread Hubert Rabago
Please provide more information. How is your form configured/written? Are there "initial" values? What is the type of the data from which you're copying a value? Hubert On 5/20/05, Randy Kennedy <[EMAIL PROTECTED]> wrote: > Why does an object reference (e.g. [EMAIL PROTECTED]) show up in > my

RE: Easy form populate question for gurus

2005-05-20 Thread Mark Benussi
If your Database values are null then the corresponding Object should be null and not an Object Reference. Make sure when you read a ResultSet you call Integer column = null; int tmpColumn = results.getInteger("COLUMN"); if(!results.wasNull()) { // I think it is wasNull(). You don't need

Re: Easy form populate question for gurus

2005-05-20 Thread DGraham
Did you observe any odd behavior when you started the debugger and stepped through the source for BeanUtils.copyProperties(Object dest, Object orig)? Randy Kennedy <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 05/20/2005 08:20 AM Please respond to "Struts Users Mailing List" To user@

Easy form populate question for gurus

2005-05-20 Thread Randy Kennedy
Why does an object reference (e.g. [EMAIL PROTECTED]) show up in my text fields when I prepopulate the form using Jakarta commons BeanUtils.copyProperties(...)? The values in the database are null, and I know this has something to do with it, so I guess my real question is, "How do I fix it?".

Re: JSP + CSS

2005-05-20 Thread Stein Erik Berget
On Fri, 20 May 2005 10:34:17 +, draegoon Z <[EMAIL PROTECTED]> wrote: Is there any way to use a JSP page as a CSS stylesheet? Like: @import url("./css/TEST.jsp"); What I'm trying to do is actually use tiles tags inside the stylesheet to make a template so as to seriously reduce the amo

set-property?

2005-05-20 Thread Nitin Mandolkar
In this action mapping. What is mean by set-property. What it will do. How we can use this one. In which condition this is useful.

problem in installing struts

2005-05-20 Thread sharad singh
Hello Prashant I am sharad from IIT-Kanpur.I have just started work on struts .I am going to install struts .but facing a lot of problem in installing struts.i have down load struts 1.2.4-src.now i am facing problem in setting build.properties.after setting build .properties and compiling by

Re: JSP + CSS

2005-05-20 Thread Leon Rosenberg
like: regards Leon On Fri, 2005-05-20 at 10:34 +, draegoon Z wrote: > Is there any way to use a JSP page as a CSS stylesheet? > > Like: @import url("./css/TEST.jsp"); > > What I'm trying to do is actually use tiles tags inside the stylesheet to > make a template > so as to seriously

JSP + CSS

2005-05-20 Thread draegoon Z
Is there any way to use a JSP page as a CSS stylesheet? Like: @import url("./css/TEST.jsp"); What I'm trying to do is actually use tiles tags inside the stylesheet to make a template so as to seriously reduce the amount of CSS. Anybody got any good solutions out there for this? Thanx ---

RE: sTRUTS 1.3 - chain flow

2005-05-20 Thread Marco Mistroni
Hello Joe, I have read in a sample chain-config.xml that I have downloaded, That RequestProcessor.processPreprocess maps now to 'LookupCommand with optional="true"' Does that mean that, If in my webapp my RequestProcessor.processPreProcess was doing some logic, now I have to put that logi

RE: Can't Undeploy Struts Applications

2005-05-20 Thread Prashant Reddy
+1. Same here, For me struts-applications dont get re-deployed because the jar - commons-digester.jar is still locked. Donot think its a tomcat problem, coz I am using a different Servlet engine. -Prashant -Original Message- From: Harry Hartley [mailto:[EMAIL PROTECTED] Sent: Friday, Ma

Re: [HELP] Couldn't include tag in onClick in

2005-05-20 Thread Nandan
Hello, Please replace your code with something like this: var MESSAGE = "" ; value="<%= (String)rId%>" onclick='javascript:whichAuctionType("MESSAGE");' /> If it does work, I will then explain to you why :) -Original Message- From

file upload struts - pdf corrupted

2005-05-20 Thread Nandan
Hello, I am using struts 1.0.2 to upload files. However sometimes a PDF file gets corrupted after a file upload. I see that random characters are replaced a hex 0A. Is this is a known bug? Please let me know GP

RE: [HELP] Couldn't include tag in onClick in

2005-05-20 Thread Nitin Mandolkar
You are trying to use struts tag in java script. Please check how to use struts tag in java script. -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: 20 May 2005 05:46 To: Struts Users Mailing List Subject: [HELP] Couldn't include tag in onClick in Hi all, I co