Re: Handling select tags with multiple = true

2006-09-11 Thread nirav bumia
I couldnt get your question. If you want the array length for some purpose in your action then you can use the length attribute of the String array, why do you want to specify the length in your action form? -nirav On 9/11/06, Chetan Pandey [EMAIL PROTECTED] wrote: But how will I specify the

RE: Handling select tags with multiple = true

2006-09-11 Thread Chetan Pandey
Ok. Let me try to explain. In order to specify the property tag below: html:select name=courseForm property=prerequisiteCourseId multiple=true size=3 I need a corresponding Field in my Form-Bean. This form bean will be an array of Strings or ints. So this is the field in my form Bean: int

Download file from server and save on client

2006-09-11 Thread Dave Kennedy
I need to download a file from a server to client computer using Struts. I've implemented StrutsFileDownload from the Struts Wiki, but this displays the contents of the file http://wiki.apache.org/struts/StrutsFileDownload How can I save the file on the client drive instead of displaying the

Re: Handling select tags with multiple = true

2006-09-11 Thread nirav bumia
Ok. Do this in your form bean: private String[] prerequisiteCourseId = null; getter for prerequisiteCourseId setter for prerequisiteCourseId I dont know why do you need the size(x) beforehand. On 9/11/06, Chetan Pandey [EMAIL PROTECTED] wrote: Ok. Let me try to explain. In order to specify

Dynamic input forms in Struts

2006-09-11 Thread Chetan Pandey
Hi: When user is in page 1, he is asked to enter an integer. Let us say he entered 18 In the next page we show 18 Text-boxes: html:text ./ This is easy to generate using the following: c:forEach var=min begin=1 end=${numSectionsAsInt} step=1 tr tdhtml:text name=courseForm

Re: URL /login.do;jsessionid=03D17FDFCC0FDD5A42EC9BB78C0AE935 was not found on this server

2006-09-11 Thread Anuraag Shinde
Thanks for your intrest, Third party server means a live webserver where we are going to host our application. Here our jsp's are visible, which indicates that struts is working fine as html:form in jsp are properly converted to form name=... only when we press submit it gives error that URL

Hi Need help .. on javascript validation framework when used together

2006-09-11 Thread Sheetal Gupta
Hi, I have a scenarion in which I have put a check (validation), that a radio butoon must be selected, beforea form gets submit. THis I have done using validation.xml. Now i have another requirement, that before pressing submit, a confiramtion dialog box should be shown... for which I have

R: Hi Need help .. on javascript validation framework when used together

2006-09-11 Thread Marcello Savino
Hide (via Javascript) the submit button till the radio is not selected Ciao -Messaggio originale- Da: Sheetal Gupta [mailto:[EMAIL PROTECTED] Inviato: lunedì 11 settembre 2006 11.25 A: Struts Users Mailing List Oggetto: Hi Need help .. on javascript validation framework when used

struts+Action+netbeans 5.0 problem

2006-09-11 Thread krishan rathi
Hi all I am trying to use struts with netbeans 5.0 but having strange problems. I have wrtten One ActionForm i.e EmployeeForm ,one action i.e AddEmpAction. then in the struts-config.xml provided following entries: form-bean type=com.myapp.struts.forms.EmployeeForm

Constructor of Action is executed but getting a blank screen

2006-09-11 Thread krishan rathi
hi all Infact the constructor of Action is called but i am getting a blank screen and in the log file just getting the SOP in the constructor not even getting the Sop in the Exceute method. plz help Thanks krishan rathi [EMAIL PROTECTED] wrote: Hi all I am trying to use

Re: Constructor of Action is executed but getting a blank screen

2006-09-11 Thread David Grundberg
Try overriding execute, not excecute :) krishan rathi wrote: hi all Infact the constructor of Action is called but i am getting a blank screen and in the log file just getting the SOP in the constructor not even getting the Sop in the Exceute method. plz help Thanks krishan rathi

RE: Constructor of Action is executed but getting a blank screen

2006-09-11 Thread Emilia Ipate
Hi! It might sound stupid, but just check: Your execute method from Action is actually called excecute instead of execute. -Original Message- From: krishan rathi [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 1:33 PM To: Struts Users Mailing List Subject: Constructor of

RE: Constructor of Action is executed but getting a blank screen

2006-09-11 Thread krishan rathi
thanks Emilia Ipate [EMAIL PROTECTED] wrote: Hi! It might sound stupid, but just check: Your execute method from Action is actually called excecute instead of execute. -Original Message- From: krishan rathi [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 1:33 PM To:

DynaValidatorForm

2006-09-11 Thread Mallik
Hi friends i am using DynaActionForm and client side validations using Validator fromework i can specify java.lang.String for type of form field in struts-config.xml like form-bean name=LoginForm type=org.apache.struts.validator.DynaValidatorForm form-property name=userId

Re: struts+Action+netbeans 5.0 problem

2006-09-11 Thread nuwan chandrasoma
Hi, What is the output on the console or messages on the log file? Thanks, Nuwan On 9/11/06, krishan rathi [EMAIL PROTECTED] wrote: Hi all I am trying to use struts with netbeans 5.0 but having strange problems. I have wrtten One ActionForm i.e EmployeeForm ,one action

Re: DynaValidatorForm

2006-09-11 Thread leo mj
mallik, use java.lang.Integer for integer and java.util.GregorianCalendar for Time. Regards, Leo Mallik [EMAIL PROTECTED] wrote: Hi friends i am using DynaActionForm and client side validations using Validator fromework i can specify java.lang.String for type of form field in

Re: struts+Action+netbeans 5.0 problem

2006-09-11 Thread leo mj
give ur jsp code... krishan rathi [EMAIL PROTECTED] wrote: Hi all I am trying to use struts with netbeans 5.0 but having strange problems. I have wrtten One ActionForm i.e EmployeeForm ,one action i.e AddEmpAction. then in the struts-config.xml provided following entries:

Re: Download file from server and save on client

2006-09-11 Thread Martin Gainty
Mr Kennedy Did you get a chance to look at ServletOutputStreamWrapper class? http://struts.apache.org/2.x/struts2-core/apidocs/index.html Here is a qd example that uses it http://rifers.org:8088/browse/~raw,r=3183/rifers/jhighlight/trunk/src/com/uwyn/jhighlight/servlet/HighlightFilter.java

Re: Double Execution of Struts Actions

2006-09-11 Thread Daniel Chacón Sánchez
Yeah I use CSS it don´t know why the td had that attribute, thanks Frank now I understand that was a common html error, jajaja you hate microsoft right?, thanks a lot Frank Ok the conclusion to this, when a double execution of an action occur, one probably reason of that is the bad use of a html

RE: Double Execution of Struts Actions

2006-09-11 Thread Givler, Eric
I've had this happen when I had a Struts Action which was written to return a PDF document. I found a note somewhere online that says that IE (in some versions) sends a second request for these. -Original Message- From: Daniel Chacón Sánchez [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [Struts 2] setting spring bean from action

2006-09-11 Thread Daniel Chacón Sánchez
Find the discussion with this tittle Double Execution of Struts Actions, this may help you. You have to verify that you don´t have html errors on the use of attributes that have the character ' # ' because that will cause the double execution of an action, for example td background=#234567...

Re: Download file from server and save on client

2006-09-11 Thread Thomas Joseph
Hi Dave, Basically you have to set the content disposotion to attachment eg.. //setting the content type to an arbitrary one, so to make browsers //definitely download the file. Some browsers simply ignore download //instruction and display the content once they know its

Re: Download file from server and save on client

2006-09-11 Thread Hassan Schroeder
On 9/11/06, Dave Kennedy [EMAIL PROTECTED] wrote: I need to download a file from a server to client computer using Struts. I've implemented StrutsFileDownload from the Struts Wiki, but this displays the contents of the file http://wiki.apache.org/struts/StrutsFileDownload The answer is in the

Re: Double Execution of Struts Actions

2006-09-11 Thread Daniel Chacón Sánchez
We should do a list of the possible reasons for that problem, beacause I think a lot of people have this type of error. 2006/9/11, Givler, Eric [EMAIL PROTECTED]: I've had this happen when I had a Struts Action which was written to return a PDF document. I found a note somewhere online that

Re: Double Execution of Struts Actions

2006-09-11 Thread Wendy Smoak
On 9/11/06, Daniel Chacón Sánchez [EMAIL PROTECTED] wrote: And I realized that the problem not was a Struts error, but the html error cause an strtus double execution (that´s an error, in performance). So we should make a list like the one that is on:

using bean tag in scriptlet

2006-09-11 Thread Alperen . PAKER
Hi Everybody, i have a struts application which gives multilanguage support. And i want to a assign a property file key value to a string in scriptlet. Here is the example jsp: . . . % String str=bean:message key='test.hello'/; out.print(str); % . . When i want to print str

Re: help with errors

2006-09-11 Thread Mark Lawrence
Hi, I am working with Tomcat I installed the struts application. I get these errors. I would appreciate if I can get some pointers to how to solve this problem. regards -Perry

Re: using bean tag in scriptlet

2006-09-11 Thread David Grundberg
I would try using instead of ' as value delimiter. (key=test.hello instead of key='test.hello') Have you set up the resource bundle in strutsconfig? [EMAIL PROTECTED] wrote: Hi Everybody, i have a struts application which gives multilanguage support. And i want to a assign a property file

Re: using bean tag in scriptlet

2006-09-11 Thread Alperen . PAKER
Yes i have already try instead of ' as value deliminator. I also tried: key=\test.hello\ but it does not work too. I have also set up resource bundle in strutsconfig. it works, when i use bean tag out of scriplet. David Grundberg [EMAIL PROTECTED] 09/11/2006 05:12 PM Please respond to

RE: URL /login.do;jsessionid=03D17FDFCC0FDD5A42EC9BB78C0AE935 was not found on this server

2006-09-11 Thread David Friedman
Dear anurag shinde, Your description suggests one of two things: 1. If you only have a java app server running (no web server like Apache taking the initial requests and forwarding them on) then your problem sounds like an incorrect or missing *.do servlet mapping in your 'live'

Re: Re: [Struts 2] setting spring bean from action

2006-09-11 Thread Garner Shawn
It is already autowiring into my action. I want to autowire out from of my action into spring so it can get autowired in other actions after I set the value and don't want to copy all the bean values from one object to another. I realize I could autowire an enclosing bean and then set the value

RE: Re: Problem while deploying on Weblogic

2006-09-11 Thread Karr, David
I would do a couple of things here. First, there is a version of Struts in the WebLogic core. In order to ensure that your app uses the version of Struts you need to, you'll need to specify prefer-web-inf-classes in your weblogic.xml (set to true). Second, there is never any need to

Re: Re: [Struts 2] setting spring bean from action

2006-09-11 Thread Ted Husted
The Spring bean can be instantiated as a singleton, and any change made to the object via the property would be to the singleton instance, and reflected anywhere else the object is referenced, including another Action class. I believe that there may be notions of session in the Spring API, but

default error page with tiles?

2006-09-11 Thread Darren Hall
Greetings, I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2. Here's my issue - I'm looking to create a default error page for my application. One thing you should know... my application is using tiles. In my web.xml file I've added the following: !-- The default error page -- error-page

Re: Re: [Struts 2] setting spring bean from action

2006-09-11 Thread Craig McClanahan
On 9/11/06, Ted Husted [EMAIL PROTECTED] wrote: The Spring bean can be instantiated as a singleton, and any change made to the object via the property would be to the singleton instance, and reflected anywhere else the object is referenced, including another Action class. I believe that there

RE: Hi Need help .. on javascript validation framework when used together

2006-09-11 Thread David Pinho (Hexadecimal)
Have you tried form onsubmit instead on button onclick? Obrigado, David Pinho DAN/DIS -Original Message- From: Sheetal Gupta [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 11 de Setembro de 2006 10:25 To: Struts Users Mailing List Subject: Hi Need help .. on javascript validation

Trouble with titleKey attribute for Frame and Link elements

2006-09-11 Thread David Cagle
Hey everyone! I'm having trouble with the 'titleKey' attribute resolving to the correct translated title when the locale of my web app is something other than English. I'm currently only using the 'titleKey' on a couple of html:frame and html:link elements, but when I change the locale, the

DAO and getDataSource

2006-09-11 Thread Darren Hall
Hopefully this will be a quick question. I'm using struts 1.2.9 and I need to implement a database connection for my web application and wanted to use a standard DAO pattern. I noticed that struts provides a mechanism for implementing datasource configuration in the struts-config file and in my

Re: using bean tag in scriptlet

2006-09-11 Thread Laurie Harper
You can't use JSP tags in scriptlets like that. For your example, just remove the scriptlet, i.e. instead of % String str=bean:message key='test.hello'/; out.print(str); % just write bean:message key='test.hello'/ If you need the value retrieved by the

struts2-sitemesh

2006-09-11 Thread sharad bhushan
hi all, i am having problems when using sitemesh 2.2.1 and struts2.the problem is it does not alow me to use struts tag libraries.and gives an error java.lang.NullPointerException org.apache.struts2.components.URL.end(URL.java:213)

Re: struts2-sitemesh

2006-09-11 Thread Don Brown
Take a look at how the showcase example application uses sitemesh. If you use Struts tags in the decorators you have to ensure the sitemesh and struts filters are defined in a particular order, IIRC. Don On 9/11/06, sharad bhushan [EMAIL PROTECTED] wrote: hi all, i am having problems when

Re: struts2-sitemesh

2006-09-11 Thread Ted Husted
And see also * http://cwiki.apache.org/WW/sitemesh.html -T. On 9/11/06, Don Brown [EMAIL PROTECTED] wrote: Take a look at how the showcase example application uses sitemesh. If you use Struts tags in the decorators you have to ensure the sitemesh and struts filters are defined in a

Each tiles:insert invokes ServletFilter

2006-09-11 Thread Bhay Zone
Hi, I have a jsp page in which tiles:insert is called 10,000 times. I have 7 servlet filters defined in the application. My problem is that for each tiles:insert the entire filter chain is also invoked. This degrades my page rendering. I replaced the tiles:insert with out.println - in

[help] html-el:select in logic:iterate loop

2006-09-11 Thread Garner Shawn
I have a html-el:select in a logic loop and the values are not being retained after submtitting the form and returning with a validation action error. The html-el:text fields values are being retained and they are in the exact same object. logic:iterate id=address type=mypackage.AddressVO

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread David Friedman
Have you considered looking at a template engine such as Velocity or Freemarker? I'm sure it would have greater efficiency than reinvoking the servlet and filter chains 10k times. And yes, I will hold back my urge to ask why you are putting 10k items on any page in the first place. Regards,

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread Bhay Zone
I tried to simplify the problem when I posted my question. Here is the actual scenario. Every piece of data displayed on my page is displayed using a tiles - thats for uniformity across the application. There are around 1000 rows being dispalyed, and each row has 10 columns (thus the

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread David Friedman
What, specifically, is stopping you from making the data a 2 dimensional array and using a c:foreach kind of JSP loop instead of trying a tiles definition. It would help to explain what this uniformity is that you need to replicate. Is it something you can lock down with a few site-wide styles?

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread Bhay Zone
Lets assume that I have a 2-D array with the values. I display each cell using a tile. So if a number has to be dispalyed, we have a numeric-tile. Similarly We have a date-tile, we have a percent-tile etc. Using this approach, we maintain consistency in the data dispaly, for e.g we dispaly only

Re: [help] html-el:select in logic:iterate loop

2006-09-11 Thread Garner Shawn
I figured it out and fixed my code. The options tag is responsible for rendering the selected attribute. I kind of thought the select tag doEndTag would parse the evaluated tag body and set the right one as selected. I suppose not as efficient if you did it that way. Thanks, Shawn On

Use html:link in User defined Tag

2006-09-11 Thread Dave Kennedy
Hi, I am trying to create a link on a page with the following URL http://localhost:8080/context/module/list.do This JSP code specifies the module html:link module=/upload action=/uploadUpload/html:link produces this link http://localhost:8080/context/upload/upload.do But, this Java code in

Application Resources

2006-09-11 Thread Ray Madigan
I haven't written a Struts application for over a year now and I am having some trouble. I have an application configured with only a welcome page taken from the Struts blank application. No matter what I do to display this page I get the message ERROR: Application resources not loaded -- Check

getDataSource, DAO pattern, and Struts

2006-09-11 Thread Darren Hall
(reposted. Was DAO and getDataSource - however that post was made by doing a reply to another message and simply changing the subject. I didn't realize that this was thread hijacking. Please accept my apologies, and disregard the earlier post.) Hopefully this will be a quick question. I'm

default error page with tiles? (repost)

2006-09-11 Thread Darren Hall
(Please disregard the earlier post with the same subject) Greetings, I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2. Here's my issue - I'm looking to create a default error page for my application. One thing you should know... my application is using tiles. In my web.xml file I've

Re: getDataSource, DAO pattern, and Struts

2006-09-11 Thread Larry Meadors
On 9/11/06, Darren Hall [EMAIL PROTECTED] wrote: So, should I use the datasource functionality provided in struts, or should I roll my own database connection solution by creating a datasource factory that can be used to retrieve connections? I wouldn't do either. If you can, use Spring to do

RE: Application Resources

2006-09-11 Thread Darren Hall
Ray, What application server are you using? Tomcat? If you are using Tomcat, have you looked in stderr and stdout files for today in that directory? (Not sure how much help I can be here, but I'm starting simple. We may quickly run out of my depth.) Darren -Original Message- From: Ray

Re: Each tiles:insert invokes ServletFilter

2006-09-11 Thread Richard Yee
Bhay, Before you spend much time on the current design, I suggest that you try sending a page with dummy data to a browser that has 1000 rows and 10 columns. You might be able to demonstrate the lack of usability to the customer and also uncover browser rendering issues with the design.

RE: Application Resources

2006-09-11 Thread Darren Hall
If you are using Tomcat, have you looked in stderr and stdout files for today in that directory? Sorry - that directory would be the $CATALINA_HOME/logs directory (if you are using Tomcat). Darren -Original Message- From: Darren Hall [mailto:[EMAIL PROTECTED] Sent: Monday, September

RE: Application Resources

2006-09-11 Thread Ray Madigan
I have checked all of the logs. I have built many Struts applications in the past using previous versions of struts and Tomcat. If I knew what exact Application resource the message is about, I could make some progress. I thought it was MessageResources.properties because in the beginning I

Re: Use html:link in User defined Tag

2006-09-11 Thread Adam J Samere
I'm assuming you are writing your own custom tag and rendering the link inside the tag definition. If this is the case you may wish to have a look at the org.apache.struts.taglib.TagUtils class. One of the overloaded computeURL methods may provide the functionality you are after. Adam Dave

RE: Application Resources

2006-09-11 Thread Darren Hall
Not sure if this will help you, but a quick google search turned up the following: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg21023.html From what I see in the struts blank example and the above post, the common factor appears to be the logic: tag in the jsp. Darren

Re: Application Resources

2006-09-11 Thread Adam J Samere
Try using more verbose logging. If using log4j for instance, set the level for org.apache.struts to debug, then watch the log file as the web application is deployed. Make sure whatever file(s) you specified in the struts-config doc(s) are available to the web applications context class

RE: Application Resources

2006-09-11 Thread Darren Hall
I just went through this logging exercise with Struts. Do you have any other logging configured for Struts other then the what struts uses by default, Ray? If you haven't incorporated log4j (or any other logging tool) for use with struts. Struts will use the commons-logging libraries for output

RE: Each tiles:insert invokes ServletFilter

2006-09-11 Thread Strachan, Paul
I find all my request based filter-mapping is for *.do,index.jsp (requests) e.g. request comes in something.do (filter is invoked) struts forward to tile -- includes various *.jsp (no filter mapping so no filters invoked) Are all your filter-mappings really needed for *.jsp (responses)?

Re: Application Resources

2006-09-11 Thread Adam J Samere
If you aren't using log4j or some other fine grained logging implementation for commons-logging I would *highly* suggest taking the few minutes to set it up. It will prove invaluable in situations like this. Adam Darren Hall wrote: I just went through this logging exercise with Struts. Do

RE: Session scope ActionMessages

2006-09-11 Thread Kevin Maeer
Spoke too soon. The reworked pages/actions don't work... Say I have 3 pages - page1, page2 and page3 with actions between them. The action between page1 and page2 uses saveMessages to save a message on the session for page3 to display (with property=page3-messages). The next page shown - page2

Re: default error page with tiles?

2006-09-11 Thread Rauf Khan
Hi, I feel the solution is: In web.xml error-page error-code404/error-code // this is only for 404 page not found location/error400.do/location /error-page In Struts-config.xml - action path=/error400 forward=error400page / In

RE: Application Resources

2006-09-11 Thread Ray Madigan
I can't remember the last time I felt so embarrassed. With 30+ years of writing code and get this. The Application that I copied the page from had the code fragment font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font