Buttons and DispatchActions

2006-02-21 Thread Holger Moosbauer
Hi, We're using Dispatch Actions in our project. My question: How do you set the method? In the request after (or before) using button (submit) tag? ... I wrote a filter which assembles the proper Request (and some values, if needed) ... That looks like that on JSP html:submit

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Leon Rosenberg
Dave, Sorry for bothering you again, but can we go it through on an example? Lets assume I hava a very small website to build (I actually did that one, so I know the real effort and duration). A pretty simple document management system, for a small intranet, I'm sure a typical application. It

html:file clears after validate returns error

2006-02-21 Thread R.Vijayaraghavan
Hello, The html:file field clears after there is an error in the form's validate() method. The user then has to again select the file for upload. How do I retain the file selected by the user even after a validate error. I searched the internet but could not find anything. regards, vijay.

Re: Hosting problem , the Host provider tomcat does not understand .do

2006-02-21 Thread Thomas Joseph
It works on my local computer in same Configuration (just it is windows machine , so my web.xml is OK or at least i think it is ok because it works on local computer.) Check for file name and xml file for case changes. Hope this will help. Let us know. Thanks and Regards, Thomas Joseph

FormFile validation

2006-02-21 Thread Markus Demetz
Hi all, I have a formfile html:file property=foto/ and a bean with getters and setters. When validation fails, the other fields get the values already inserted, but the file input field gets empty and must be reselected. Is this normal, or is there a way to keep the file location in the input

Re: FormFile validation

2006-02-21 Thread Raja Sekhar Vujji/xinthe
Hi Markus, For FILE type inputs, you cannot retain the value because of browser security settings and also you cannot set default values. Thanks, Raj. Markus Demetz [EMAIL PROTECTED] 02/21/2006 05:30 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts

Re: Regarding Struts- Mysql Connection.

2006-02-21 Thread Dharmendra Singh
Hi dear there is no need to specify in any where start MySql step 1 just paste *.jar file in lib directory. step 2 specify all elements(driverClass ,url ,no of connection , user id, password) and full path of database in struts-config.xml . Now you can connect in Action Classes directely by

Re: validator frame work for struts Action Errors

2006-02-21 Thread Dharmendra Singh
Hi Dear there is no need to use validator framwork for ActionErrors. Strusts .jar is sufficient. just use validate() in Action Form which returns ActionErrors and use .properties file for mapping corresponding Errors. If U satisfied my Answer or U got another problem. Plz mail me. bye

JSP expression html filter?

2006-02-21 Thread Jürgen Hofmann
If I use the bean write-tag (bean:write...filter=true) I can filter html output: becomes gt; ... How can I filter output from JSP expressions (${...}) ? Is this possible? Thanks Jürgen - To unsubscribe, e-mail: [EMAIL

Re: JSP expression html filter?

2006-02-21 Thread Rahul Akolkar
On 2/21/06, Jürgen Hofmann [EMAIL PROTECTED] wrote: If I use the bean write-tag (bean:write...filter=true) I can filter html output: becomes gt; ... How can I filter output from JSP expressions (${...}) ? Is this possible? snip/ ${fn:escapeXml(...)} or c:out value=${...} / -Rahul Thanks

Re: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Gary Feidt
I'm sorry, but this is a Javascript issue. If you want to use Struts, use Struts. Create an ActionForm to get your value from the drop-down list and then redirect to any number of Actions from your Action. I believe that is the easiest way, and a LOT less time consuming then sending all of

Re: JSP expression html filter?

2006-02-21 Thread Jürgen Hofmann
thanks Rahul. - Original Message - From: Rahul Akolkar [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, February 21, 2006 2:23 PM Subject: Re: JSP expression html filter? On 2/21/06, Jürgen Hofmann [EMAIL PROTECTED] wrote: If I use the bean

Action Oriented Framework Rendering Mode

2006-02-21 Thread Pilgrim, Peter
Hi All What is the state of play with WebWork / Struts Action 2.0? I am trying to come up with a design / architecture / proposal for a new aspect of an enterprise project. I have been reading the WebWork in Action book, and I have come to the conclusion that it is best to start a brand

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Dave Newton
Leon Rosenberg wrote: A pretty simple document management system, for a small intranet, I'm sure a typical application. It contains view and edit interfaces, in the edit interface you can manage document vendors, document type (like manual, presentation, advertisement material and so), and you

Re: Action Oriented Framework Rendering Mode

2006-02-21 Thread Ian Roughley
below. /Ian -- From Down Around, Inc. Innovative IT Solutions Software Architecture * Design * Development ~ web: www.fdar.com email [EMAIL PROTECTED] phone:617.821.5430 ~ Pilgrim,

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Leon Rosenberg
Very interesting numbers, please allow me a question, you have only 43 lines of java code in your application, but 1107 lines ruby code... but are talking about smaller code base with ror? :-) leon On 2/21/06, Dave Newton [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: A pretty simple document

Re: [OT] Ruby on rails VS Java Based Web Applications

2006-02-21 Thread Dave Newton
Leon Rosenberg wrote: Very interesting numbers, please allow me a question, you have only 43 lines of java code in your application, but 1107 lines ruby code... but are talking about smaller code base with ror? :-) Forgot to mention. The developers that preceded me put all their code in

(possible O/T) question on jsf-demo

2006-02-21 Thread Martin Gainty
Good Morning All- I was experiencing some difficulty getting the jsf demo 'jsf-demo' to work under Tomcat 5.5.7 I birthed greeting.jsp to a separate webapp to attempt to more accurately diagnose the situation and see org.apache.jasper.JasperException: The absolute uri:

RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread willem . vermeer
Hi, Last week we migrated our Struts 1.0 application to 1.2.8. As far as we can tell, we correctly followed the migration steps inbetween. Since the migration we have noticed the following weird behaviour: upon submitting a form from a jsp to as struts form/action, the method processPopulate of

[shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the applications configured message bundle? Something as simple as: protected String getMessage (String messageKey) { ResourceBundle rb =

Change status code returned when validate fails

2006-02-21 Thread Jose Manuel Valladares
Hello everybody, In our app we would like to return another status code when the validation fails in the ActionForm. Instead of forwarding to the error page and return 200 we would like to return 202 in some cases. Is it possible to do this? In the execute of the Action is possible because

drop down list box question.

2006-02-21 Thread digant . k . joshi
I have users list created in my dispatch action and populated in request. in my form this works. tr td class=tdLabelfmt:message key=label.endDate/:/td tdhtml:text property=endDate size=40/ html:errors property=endDate//td /tr

Re: drop down list box question.

2006-02-21 Thread Michael Jouravlev
On 2/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have users list created in my dispatch action and populated in request. in my form this works. tr td class=tdLabelfmt:message key=label.endDate/:/td tdhtml:text

Re: Buttons and DispatchActions

2006-02-21 Thread Michael Jouravlev
See here: http://issues.apache.org/bugzilla/show_bug.cgi?id=38343 Use this: http://issues.apache.org/bugzilla/attachment.cgi?id=17724 Michael. On 2/21/06, Holger Moosbauer [EMAIL PROTECTED] wrote: Hi, We're using Dispatch Actions in our project. My question: How do you set the method? In

RE: Action Oriented Framework Rendering Mode

2006-02-21 Thread Pilgrim, Peter
See inter mixed -Original Message- From: Ian Roughley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 3:58 PM To: Struts Users Mailing List Subject: Re: Action Oriented Framework Rendering Mode below. /Ian -- From Down Around, Inc. Innovative IT Solutions

message-rsource access in taglib

2006-02-21 Thread Jim Reynolds
I created a struts application and in order to keep some area clean, I have created some tags to handle some isolated logic. I have been unable to figure out how to use the message-resources in the tag. Does anyone have a link or know if this is possible? Currently I ended up hard-coding values

Re: drop down list box question.

2006-02-21 Thread digant . k . joshi
I am using tomcat 5 which I believe has jsp 2.0 I am getting exception of users getters/setters not defined exception. it assumes users as one of the attribute of my form instead of Collection. Digant Michael Jouravlev [EMAIL PROTECTED] 02/21/2006 01:08 PM Please respond to Struts Users

RE: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Scott Purcell
Within my javascripts, when I want to post to a different action, I use this struts tidbit: script var newAction = 'html:rewrite page=/ActionIWantToCall.do /'; document.form[x].submit(); Make sure your form is good, meaning, start form and end form. I use all different browsers/os systems,

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Craig McClanahan
On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the applications configured message bundle? Something as simple as: protected String

Re: drop down list box question.

2006-02-21 Thread Michael Jouravlev
On 2/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using tomcat 5 which I believe has jsp 2.0 I am getting exception of users getters/setters not defined exception. it assumes users as one of the attribute of my form instead of Collection. See here:

Re: RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread Joe Germuska
Do you have a session scoped form with one or more FormFile properties? Consider switching the scope to request, or alternatively, using the controller element to reduce the size of the in-memory file representation before the data is written to disk (see the memFileSize attribute described

Re: Action Oriented Framework Rendering Mode

2006-02-21 Thread Michael Jouravlev
On 2/21/06, Pilgrim, Peter [EMAIL PROTECTED] wrote: I have a requirement to possibly build a new web application to support portlets and also be displayable in a standard Java EE webapp server in the future. Do you mean any portlets or JSR-168 portlets? Basically it looks like the web

Re: Change status code returned when validate fails

2006-02-21 Thread Michael Jouravlev
On 2/21/06, Jose Manuel Valladares [EMAIL PROTECTED] wrote: Hello everybody, In our app we would like to return another status code when the validation fails in the ActionForm. Instead of forwarding to the error page and return 200 we would like to return 202 in some cases. Is it possible

Re: RequestProcessor processPopulate heavily increases memory usage

2006-02-21 Thread Michael Jouravlev
Session-scoped form can affect memory footprint on the first load and barely on update. He gets +30M on each load. I doubt that reasonably designed session-scoped form can be at fault here. It would sit there, but it would not grow that fast. There should be something else that he allocates. BTW,

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the applications configured message bundle? Something as simple as:

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Craig McClanahan
On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the

application resources on iplanet

2006-02-21 Thread Raúl Eduardo Plata
Hi i am deploying on tomcat, but now i need to move to my production environment iPlanetTM Web Server, Enterprise Edition 6.0, and i having problems with the application resource properties, the same war works fine on tomcat and sun one app server 6.1 SP4, but with this server (iplanet 6.0) it

RE: application resources on iplanet

2006-02-21 Thread Scott Purcell
Since you are not using a package for the resources.portal bundle, are you sure that the resource.portal is in IPlanets classpath? If not, it will not find it. -Original Message- From: Raúl Eduardo Plata [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 2:01 PM To: Struts

Re: application resources on iplanet

2006-02-21 Thread Raúl Eduardo Plata
But the properties is on WEB-INF/classes/resources/portal.properties, is this path on the classpath by default, isn´t? It´s a war file and the classes within WEB-INF/classes are found. Thanks, Raúl Scott Purcell escribió: Since you are not using a package for the resources.portal bundle,

RE: application resources on iplanet

2006-02-21 Thread Scott Purcell
Yes, I believe you are correct. If the classes are found so should the resources. . We use IPlanet and I have never seen that issue. I will seek information from our system admin, and will email back. -Original Message- From: Raúl Eduardo Plata [mailto:[EMAIL PROTECTED] Sent:

using tiles and setting a cookie

2006-02-21 Thread brian papa
I'm having a problem setting a cookie inside of a Controller class. My custom controller extends from the base Controller class. Inside of my class, I'm simply trying to set a cookie to the HttpServletResponse. Inside of a Strut Action class, it's been working just fine. But in the controller,

How to retain form data when disabling input in html:text

2006-02-21 Thread digant . k . joshi
I have html:text property=bucketName disabled=true size=40/ I populate html:text with data from DB. I want to disable input for this property, but when I get form data back in Action form bean does not have data for this property bucketName How do i retain data after disabling input in

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread Craig McClanahan
On 2/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have html:text property=bucketName disabled=true size=40/ I populate html:text with data from DB. I want to disable input for this property, but when I get form data back in Action form bean does not have data for this property

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread digant . k . joshi
Thanks Craig: I worked for what I wanted to achieve. Only with read-only property setting, it does not grey out input text field. I have to find out what to set so that it changes appearance when read-only property is set. Thanks. Digant Craig McClanahan

Struts Message Resources

2006-02-21 Thread Jim Reynolds
I have a struts application in which I use the message resources for most of my view pages. Using bean:message, etc. All is good. But I have created some tag libraries, in which run in the same struts app, and I need to get to them. I know you can get the properties from an action class through

Re: application resources on iplanet

2006-02-21 Thread Jim Reynolds
I checked with my Admin who managers our IPLanet, and he says there is no additional classpath configuration. That IPlanet creates the classpath from /WEB-INF/classes automatically. Scott On 2/21/06, Scott Purcell [EMAIL PROTECTED] wrote: Yes, I believe you are correct. If the classes are found

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
Brian, When and where are you looking for a value change with your debugger? You do know that the cookie won't be seen until the response ends, right? The NEW cookie is given to the client's browser and won't be seen by the server until the client's next request. Can you give the controller

Re: How to retain form data when disabling input in html:text

2006-02-21 Thread Michael Jouravlev
On 2/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have html:text property=bucketName disabled=true size=40/ I populate html:text with data from DB. I want to disable input for this property, but when I get form data back in Action form bean does not have data for this property

RE: How to retain form data when disabling input in html:text

2006-02-21 Thread Wang, Hansen
That is display problem. You can use css to make the field gray or red etc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 3:57 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED]; Struts Users Mailing List Subject: Re: How to

error-page design question

2006-02-21 Thread Jay Burgess
Our app currently throws a custom UnavailableException from a couple of places inside our Action handlers when the app is offline doing end-of-day processing. We thought we had this situation covered from the UI perspective, as we'd configured the following mapping in our web.xml: error-page

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
I was unaware of that actually. But, even outside of the debugger the cookie isn't seen on the client side. And it isn't seen on the next request. Here's some of the code - In the controller class (it's an abstract class): public void execute(ComponentContext componentContext, HttpServletRequest

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
Have you tried it without the domain setting to ensure that your chosen domain of .mysite.com isn't interfering with the cookie handoff? There is the possibility that the browser is configured to accept anything other than the exact hostname, though you have probably looked into that and tried

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
Yeah that doesn't seem to be the problem, and the .mysite.com is working with an Action anyway... setting the cookie the same exact way. I'm wondering if this is some trouble with tiles. I see using my debugger that the internals of the Response object in a Controller seem different then it does

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
Brian, Are your logs showing any errors about the reponse already being committed? If the headers have already been sent then adding cookies after that would be a useless task. But I think you would probably have seen Java Exceptions at that point. -David -Original Message- From:

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
No, I'm not seeing an exception for that. I'm starting to think now that perhaps I'm doing this in the wrong place. After all the purpose of a controller should simply be to prepare data for rendering in a JSP tile. I'm wondering though if this is the case what the purpose is of having the

Does return null from Action class send 200 OK response?

2006-02-21 Thread ooper
Does return null from Action class send 200 OK response? If not, how do I do it? TIA, Brian Barnett Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com *Your* clubs, no sign up to read, ad supported; try broadband internet.

Re: Does return null from Action class send 200 OK response?

2006-02-21 Thread Michael Jouravlev
On 2/21/06, ooper [EMAIL PROTECTED] wrote: Does return null from Action class send 200 OK response? Generally, no. If not, how do I do it? return null means that you took care of response. This means that you set up response headers and response content whatever you feel appropriate, and you

Tiles on Tomcat 5.0.30

2006-02-21 Thread anil_a
Hi All I have used tiles in while this week and when I look at Tiles user guide, it says If you are using Struts 1.2.x you will need to also make sure you are using the |org.apache.struts.tiles.TilesRequestProcessor| or a |RequestProcessor| class that extends it. My application is working

Re: Struts Message Resources

2006-02-21 Thread Dave Newton
Jim Reynolds wrote: All is good. But I have created some tag libraries, in which run in the same struts app, and I need to get to them. I know you can get the properties from an action class through the struts api ... but is there anyway to get them from the application context, when you are

Re: using tiles and setting a cookie

2006-02-21 Thread Dave Newton
brian papa wrote: I'm starting to think now that perhaps I'm doing this in the wrong place. After all the purpose of a controller should simply be to prepare data for rendering in a JSP tile. I'm wondering though if this is the case what the purpose is of having the HttpServletRequest as a

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
Oops, meant to question the presence of the Response there. On 2/21/06, Dave Newton [EMAIL PROTECTED] wrote: brian papa wrote: I'm starting to think now that perhaps I'm doing this in the wrong place. After all the purpose of a controller should simply be to prepare data for rendering in a

Reg: DynaActionforms and ActionForms

2006-02-21 Thread Shasirekha Engala
Hi, I want some information regarding the difference between DynaActionforms and ActionForms and advantages of DynaActionforms over ActionForms. I need the code of subclassing the dynaforms and using it. For example, I am having a BaseForm with the variables pageno( page number), action

Sorting paging search results with delete button for each row?

2006-02-21 Thread Narayanan, Shiva
Hello All, What is the best way to sort and page search results, (with delete button for each row) using Struts? Are there are any open source tag libraries to achieve this? Looked at displaytag. I want to retrieve data from the database using hibernate. Many Thanks!!

Disabling Back Button in IE

2006-02-21 Thread vasumathi
Hi Anyone can tell how to disable the Back button in IE through our Code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Disabling Back Button in IE

2006-02-21 Thread Josh McDonald
Can't (and shouldn't) be done. The closest you're likely to get it open your app in a popup window with no menu, though the user can still hit backspace. A better idea is to fix the (assumed) re-post issues in your application. -Josh -- His comrades fought beside him, Van Owen and the

RE: Disabling Back Button in IE

2006-02-21 Thread Shasirekha Engala
try using this in your jsp if you are in java platform script history.forward(); /script -Original Message- From: vasumathi [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 10:49 AM To: user@struts.apache.org Subject: Disabling Back Button in IE Hi Anyone can tell how to