RE: [HELP] Couldn't include bean:write tag in onClick in html:radio

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 bean:write tag in onClick in

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 bean:write tag in onClick in html:radio

2005-05-20 Thread Nandan
Hello, Please replace your code with something like this: script language =javascript var MESSAGE = bean:write name=rule property=auctionTypeId/ ; /script html:radio name=exhibit_item_request property=auctionTypeId value=%= (String)rId%

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,

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 logic

Re: JSP + CSS

2005-05-20 Thread Leon Rosenberg
like: link rel=stylesheet type=text/css href=/yourapp/yourpath/MyCssPage.jsp 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

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: 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

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 text

Re: set-property?

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

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

Re: JSTL and Struts together

2005-05-20 Thread David Johnson
you can use the html-el:text value=${param.x}html-el:text control to accomplish just that I'm doing that in a bunch of places. On 5/20/05, Shey Rab Pawo [EMAIL PROTECTED] wrote: html-el:form etc. On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote: %@ taglib

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

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.xml

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

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

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

[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

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write property=schoolname/br/

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write

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 having

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 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

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

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

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]

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, originally

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

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

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: 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

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

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

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

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. form

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

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 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: 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

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. form name=myExtForm1 extends=myForm1 the above should work as is - i am using it :) riyaz

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.

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

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

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

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

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

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 % nested:root name=information nested:write property=name/br/ nested:write property=addr/br/ nested:iterate property=school nested:write

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

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-Version: 1.0.2

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

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 user@struts.apache.org If you look in the contrib folder of the

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

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 logic:redirect 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: 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) that can

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

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 user@struts.apache.org, Andrew Thorell [EMAIL PROTECTED] Subject: Re:

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: 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

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

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

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

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

[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 +pattern);

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

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??? I

Re: [HELP] Couldn't include bean:write tag in onClick in html:radio

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 for

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 html : radio as follow html:radio property=auctionTypeId value=%=(String)rId% onclick='javascript:whichAuctionType(%=(String)rId%);'/ , the value is not send and this is a result in IE input