Re: How to pass sql variable from jsp to Action?

2005-08-31 Thread 梁炳場
I wonder if it is a proper way to do it because the 1st query displays a no of rows with different group ids. Can the pass a value to Action? If it can, it is excellent. Should it be done like this? change the layout from a no of links to a no of forms In each form, it has hidden value of group

RE: resource not found error

2005-08-31 Thread Murugesan, Kathiresan \(Cognizant\)
--- Begin Message --- if you deployed the war then check in which name it is deployed in the your tomcat context and try with that name. From: Swapnil Patil [mailto:[EMAIL PROTECTED] Sent: Thu 9/1/2005 12:14 PM To: Struts Users Mailing List Subject: Re: resource

Re: resource not found error

2005-08-31 Thread Swapnil Patil
Hi Nirmala, You might have some errors in struts servlet mapping. check your web.xml with http://www.reumann.net/struts/lesson1/step7.do . On 9/1/05, Nirmala Dhara <[EMAIL PROTECTED]> wrote: > > Hi, > I am new to struts. I tried http://www.reumann.net/struts/lesson1.doexample > with tomacat. I

DAOs in service methods

2005-08-31 Thread Paul Benedict
Hey guys. I have alot of service objects called from Struts, and each have a good deal of service methods. Service methods mainly do business logic and talk to DAO objects. Question: I've taken the approach of service methods having the responsibility of instantiating DAO objects locally and usin

How to pass sql variable from jsp to Action?

2005-08-31 Thread 梁炳場
I retrieve a group id by JSP. When user clicks a link Before another page is shown, in my struts-config.xml, I try to make a ActionForward function to capture the group_id and then update a session attribute . Then the resulting jsp is like this Is this a proper way to do this? I do not kn

Re: The latest stable version of struts

2005-08-31 Thread Niall Pemberton
Depends on the size of your project, the features you've used and how you've developed it. The following notes should help you assess it yourself: Notes on upgrading from 1.1 to 1.2.4: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 Notes on upgrading from 1.2.4 to 1.2.7: http://wiki.apac

Re: The latest stable version of struts

2005-08-31 Thread Randy Shepherd
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How many man hours are associated with moving from 1.1 to 1.2.7? What are the major challenges? - -Randy On Aug 31, 2005, at 4:09 AM, Ted Husted wrote: I think the situation is similar to which JDK people use. Right now, the bulkof the marketpla

Re: core struts -- best practise fundementals

2005-08-31 Thread Radu Badita
peru cheppanu wrote: Thanks for replying me. The basic idea is knowing the need for tag libraries.. for which the explanation was given as reusability. In my opinion, the purpose of tags, besides reusability (after all, plain objects and methods are reusable and easier to implement), is r

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
Thanks Ed, I will give this a shot From: Ed Griebel <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Trim all fields before validation Date: Wed, 31 Aug 2005 16:13:56 -0400 I just checked the Struts source code, and getMap() returns a refer

Specifying MessageResource for Title information.

2005-08-31 Thread Ajaya Agrawalla
Folks, I am trying to have all my form fields to have a title. The way I approached this was to pass title information to the html:* tags like below. I have the hints.properties file in the classes folder. I separated all the title related keys to hints.properties. The problem with this appr

Re: Trim all fields before validation

2005-08-31 Thread Ed Griebel
I just checked the Struts source code, and getMap() returns a reference to the internal hash map, so changes to items in the map will be reflected in the form bean. -ed On 8/31/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote: > That's correct Ed, but there is no way to set it back, unless I modify th

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
That's correct Ed, but there is no way to set it back, unless I modify the code, right? From: Ed Griebel <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: Trim all fields before validation Date: Wed, 31 Aug 2005 15:48:30 -0400 If you don't

Re: [tiles] Empty attributes and Tomcat 5.5

2005-08-31 Thread David Durham
Wendy Smoak wrote: I dropped a (Servlet 2.3) Struts 1.2.7 + Tiles webapp into a fresh Tomcat 5.5 install, and started seeing directory listings of contents under WEB-INF. Tomcat properly refuses to serve any of the files; clicking on any of them gives the usual 404 that you'd get if you const

Re: Trim all fields before validation

2005-08-31 Thread Ed Griebel
If you don't want to write javascript to do it, Frank's suggestion looks like your best bet, but I've only looked at the Javadoc not the code behind it. If you want to brute-force it, you can certainly get the map out of a DynaForm easily enough: Map values = (DynaValidatorActionForm form).getMap(

[tiles] Empty attributes and Tomcat 5.5

2005-08-31 Thread Wendy Smoak
I dropped a (Servlet 2.3) Struts 1.2.7 + Tiles webapp into a fresh Tomcat 5.5 install, and started seeing directory listings of contents under WEB-INF. Tomcat properly refuses to serve any of the files; clicking on any of them gives the usual 404 that you'd get if you constructed a URL to some

Re: Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
I still need to look at Frank's suggestion. Thanks for your suggestions Frank and Joe. So Joe, you would trim all the fields using javascript right? I understand your suggestion. I was hoping that just before I call validate in my action, I could write a generic loop to loop around the keyset

resource not found error

2005-08-31 Thread Nirmala Dhara
Hi, I am new to struts. I tried http://www.reumann.net/struts/lesson1.do example with tomacat. I am getting error "The requested resource (/nstart) is not available.", when I tried to run it (http://localhost:8080/nstart) tocat -- 4.1 version struts -- 1.2.7 version I am able to run another applic

Re: Struts-Layout DispatchAction problem.

2005-08-31 Thread kunjal shah
I think I should try to explain my problem a little better. After some debugging and searching I found out that my url generation within portlet is the problem.. specifically channel.setLocation("Login.do?method=selectCMAForm&cellPointId=" + form.getChannel()); It just resets my TreeView but dose

Re: Trim all fields before validation

2005-08-31 Thread Joe Germuska
At 2:49 PM -0400 8/31/05, Dilip Ladhani wrote: Hello all, I was searching for the best way to do this. I want all the fields on my form to be trimmed before they are sent for validation (I call validate from my action class). What's the best way to do this if I have DynaValidatorActionForm?

Re: Trim all fields before validation

2005-08-31 Thread Frank W. Zammetti
Take a peek at the ParameterMunger filter in Java Web Parts: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/ParameterMungerFilter.html This will do what you want I think. If you decide to use it and have any suggestions, they are always welcome :) Frank Dilip Ladhani wrote

Trim all fields before validation

2005-08-31 Thread Dilip Ladhani
Hello all, I was searching for the best way to do this. I want all the fields on my form to be trimmed before they are sent for validation (I call validate from my action class). What's the best way to do this if I have DynaValidatorActionForm? thanks, Dilip --

[OT]properties file question

2005-08-31 Thread Ashish Kulkarni
Hi i have a properties file where in i define all the connection options like date format=iso time format=hms I am having problem with this file when running in turkey because of space character. is there a way i can convert this properties file to work in all languages Ashish ___

Re: logout problem

2005-08-31 Thread glenn . deschenes
I have used the tag in an application that is very information sensitive. The idea is that the sensitive information does not stay displayed unused for nothing. This was a user requirement. BTW, you don't need an iframe. Also, you can never catch all instances where a logout will occur, such as

Re: logout problem

2005-08-31 Thread Leon Rosenberg
On Wed, 2005-08-31 at 12:46 +0100, Adam Hardy wrote: > Emmanouil Batsis on 31/08/05 12:37, wrote: > > Sławek Tuleja wrote: > >> question: but how to evoke Logoff action when user closes browser? > > > > In general you dont :-) You just wait for the session to expire using > > a session event liste

Re: logout problem

2005-08-31 Thread Adam Hardy
Emmanouil Batsis on 31/08/05 12:37, wrote: Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire using a session event listener. However, if the client supports javascript, you can catch the onclo

Re: logout problem

2005-08-31 Thread Emmanouil Batsis
Sławek Tuleja wrote: question: but how to evoke Logoff action when user closes browser? In general you dont :-) You just wait for the session to expire using a session event listener. However, if the client supports javascript, you can catch the onclose event and perhaps submit an XMLHTT

logout problem

2005-08-31 Thread Sławek Tuleja
when one user is logged in to application - other users can not login when user push the logoff button application envoke Logoff action and do: - session.invalidate(); - LogoffJDBC.logout(); where: logout() { ... stmt.execute("UPDATE database_name SET logout='yes');

Re: The latest stable version of struts

2005-08-31 Thread Ted Husted
I think the situation is similar to which JDK people use. Right now, the bulkof the marketplace is probably using 1.3, with 1.4 gaining ground, and 1.5 still considered the newbie. Likewise, from what ?I hear, it seems that the bulk of the Struts marketplace is still using 1.1, with 1.2 gaining

RE: The latest stable version of struts

2005-08-31 Thread souravm
Hi Ranjay, I've also used Struts 1.1 extensively. However, I believe Struts 1.2 has some advanced features (like centralized exception handling etc.). So I'm looking for feedback on how Struts 1.2.x otherwise. Hopefully Craig will read this mail and clarify my doubt. Regards, Sourav -Origi

RE: The latest stable version of struts

2005-08-31 Thread SINHA Ranjay
I have used Struts 1.1 extensively without hiccup but you should take a advice of Craig himself he is one who created this framework. Ranjay -Original Message- From: souravm [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:27 PM To: Struts Users Mailing List Subject: RE: T

RE: The latest stable version of struts

2005-08-31 Thread souravm
Hi Ranjay, I believe after 1.1 there are already 1.2.x versions released. Do you mean to say none of them are stable ? Regards, Sourav -Original Message- From: SINHA Ranjay [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:02 PM To: Struts Users Mailing List Subject: RE: Th

RE: The latest stable version of struts

2005-08-31 Thread souravm
Hi Ranjay, I believe after 1.1 there are already 1.2.x versions released. Do you mean to say none of them are stable ? Regards, Sourav -Original Message- From: SINHA Ranjay [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:02 PM To: Struts Users Mailing List Subject: RE: Th

RE: The latest stable version of struts

2005-08-31 Thread souravm
Hi Ranjay, I believe after 1.1 there are already 1.2.x versions released. Do you mean to say none of them are stable ? Regards, Sourav -Original Message- From: SINHA Ranjay [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:02 PM To: Struts Users Mailing List Subject: RE: The