Synchronization of dispatch Action

2006-03-21 Thread digant . k . joshi
Is it a good idea to synchronize DispathAction to make sure all requests to DB and results which come back don't overstep each other ? Pls help. Following is some detail of what am I doing in my application. I have few operation I want to synchronize. In my app following steps I am

invoking method of DispatchAction from within another DispatchAction

2006-03-09 Thread digant . k . joshi
How do I invoke another DispatchAction from one DipatchAction ? For e.g If I want to call diceSetUp.do?dispatch=diceWebSetUp from public class SectorAction extends DispatchAction { public ActionForward getSectorsFromQ(ActionMapping

Struts Exception handling design question !

2006-03-03 Thread digant . k . joshi
Hi ! I want to find out what is best thing to do when it comes to Exception Handling? I have my Application specific AppException I create many different sub-class of AppExceptions based on different conditions in my application. In struts config I am trying to

How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
In my jsp I am using users ArrayList which is collection of User bean on server side. My drop down list works fine as under when I use only one display userNameShort in my example. html:select property=userIdNew option value=-1Choose User.../option

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
Thanks Michael : I can do what you suggested of creating read-only attribute in User class. But all over I am using BeanUtils to copy back and forth Users properties to UserForm properties. Is there a cleaner way so even after my adding/deleting properties in my User

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
Rick: What is benefit of using standard jstl over html:option. One benefit is to problem like mine. Any other ? Digant Rick Reumann [EMAIL PROTECTED] 03/01/2006 04:32 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List

JSP 1.2 ( JSTL EL) and checkbox problem.

2006-02-27 Thread digant . k . joshi
We are using tomcat 1.4.30 which in turn has jsp 1.2 version. JSTL EL works differently in this version meaning For outputting text you should not using${someVar} but should use c:out value=${someVar}/ Now I have following problems in making ActionForm pass value to Action . 1. Drop down

Re: JSP 1.2 ( JSTL EL) and checkbox problem.

2006-02-27 Thread digant . k . joshi
No, I am using jsp version of EL %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % Do i have to use struts-el for making life easier, especially when using checkbox or radio button controls? What's the best way to get struts-el jar/tlds ? Thanks.

Re: JSP 1.2 ( JSTL EL) and checkbox problem.

2006-02-27 Thread digant . k . joshi
in struts 1.2.8 I see struts.jar that may not be containing struts-el.jar. Can anyone send link to contrib ? Thanks. Dave Newton [EMAIL PROTECTED] 02/27/2006 02:26 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List user@struts.apache.org cc:

Re: JSP 1.2 ( JSTL EL) and checkbox problem.

2006-02-27 Thread digant . k . joshi
would struts-el v1.3.0/ will work with struts 1.2.8 and tomcat 4.1.30 ( JSP 1.2) ? Michael Jouravlev [EMAIL PROTECTED] 02/27/2006 02:48 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List user@struts.apache.org cc: Subject:

Re: JSP 1.2 ( JSTL EL) and checkbox problem.

2006-02-27 Thread digant . k . joshi
No ! I don't have specific need for it. I didn't copy struts-el.jar from standard struts 1.2.8 What is good prcatice ? Should I copy everything under contrib\struts-el\lib to MY WEB-INF/lib ( in tomcat 4.1.30) ? I see struts-html.tld, struts-login.tld are under both directories

Re: checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-24 Thread digant . k . joshi
Thanks Niali: Do you have any examples or pointers for writing reset method of ActionForm ? Should checkbox attribute in question in my ActionForm be Boolean or it can be String type? Right now I have it as String and value coming from DAO are Y/N which I change it to

checkbox member of form Bean doesn't pass/get value from my DispatchAction.

2006-02-23 Thread digant . k . joshi
I have problem with checkbox property not communicating with my Action. I have String property with Y/N in FormBean populated from DAO , I convert it to yes/no before sending it to form and I do conversion back from yes/no to Y/N after I receive from form and send it to DAO. What is missing

getting various control like checkbox and drop down as column in HTML table.

2006-02-22 Thread digant . k . joshi
Hi: I am trying to put in editable checkbox inside HTML table, but it doesn't seem to work. any ideas where am going wrong ? Thanks in adv. Digant table class=borderAll border=1 tr thfmt:message key=label.imntDescr//th thfmt:message

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

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

Thread safety in struts and better practice question !

2006-02-16 Thread digant . k . joshi
My understanding for making Struts action thread safe you shouldn't have instance variable in any action class. Correct ? ( it should be OK if you have read only variable ). But to make app for flexible, so in future you can change value of variable and pass it around helper functions, I made

Re: Thread safety in struts and better practice question !

2006-02-16 Thread digant . k . joshi
Laurie: Thanks for your response. You are right big mistake ! Even if Java has pass by value, if you want to make it work like pass by reference you need to have Valid object ( one which is instatiated). Also I wanted initialize method to do work of accessing

Eclipse sysdeo tomcat debug question !

2006-02-15 Thread digant . k . joshi
I Know this is not right group to ask this question ! But I am desperate ! I had working struts application in eclipse 3.1.1 with SysDeo tomcat plug-in. I was able to step debug until I refactored Tomcat project name to different name. Now my app(tomcat) comes up through eclipse but I am

Re: Eclipse sysdeo tomcat debug question !

2006-02-15 Thread digant . k . joshi
Thanks for your suggestion ! But I got it solved this way ! 1..I made sure new Project is xml file is created and referenced in {TomcatDir}\conf\Catalina\localhost or server.xml,, which ever way you launce your app. 2. in my eclipse workspace tomcat project directory (dot).tomcatplugin

Struts application WAR file creation.

2006-02-09 Thread digant . k . joshi
Hi! I have a Struts Application developed using Eclipse SDK 3.1.1 and Tomcat Plug-in 3.0.0 I have defined application root in eclipse while creating Tomcat Project as /dice. In eclipse workspace I see all jsp/lib/classes/ folders are all under /dice directory.

RE: Struts application WAR file creation.

2006-02-09 Thread digant . k . joshi
How do I add war task in Ant build file from eclipse ? [EMAIL PROTECTED] 02/09/2006 02:07 PM Please respond to Struts Users Mailing List To: user@struts.apache.org cc: Subject:RE: Struts application WAR file creation. [EMAIL PROTECTED] asked:

DispatchAction question !

2006-02-07 Thread digant . k . joshi
How do I make sure first time DispatchAction is invoked it calls some initialization code ! I have Business object Dao service class which I want to instantiate before any of the action forward or any methods from myDispathAction is called . My current dispatchAction look like this ...

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
What changes do I make in struts-config to initialization method is called like constructor of DispathAction . from index.jsp I call c:redirect url=diceSetUp.do?dispatch=diceWebSetUp/ subsequent jsp has following lines to call another action c:url var=url scope=page

Re: DispatchAction question !

2006-02-07 Thread digant . k . joshi
I put it into session and request. kalpesh modi [EMAIL PROTECTED] 02/07/2006 03:52 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List user@struts.apache.org cc: Subject:Re: DispatchAction question ! What do you do with the

Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
Hi! In our app we need to communicate to our application server using DB connection and Sonic MQ. As per one of earlier suggestion I am trying to write Plug-In for creating DB and Q connection and keep for the session life. So any request made by user can use same DB

Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
To start with I want to keep in session, Once functionality is tested ! I want to make it better by writing BaseDAO to get connection from DB /Q Dave Newton [EMAIL PROTECTED] 01/31/2006 11:27 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List

Re: Getting handle on application property file in Action class.

2006-01-31 Thread digant . k . joshi
Is getResources part of org.apache.struts.util.MessageResources if it does I don't find getResource in it I find getMessageResources which is expecting config as parameter. What should I supply as config from Action class ? Hubert Rabago [EMAIL PROTECTED] 01/31/2006 11:29 AM Please

Re: problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread digant . k . joshi
copy tools.jar from jdk directory to {TomcatBaseDir}/common/lib to make it work. vinicius [EMAIL PROTECTED] 01/31/2006 02:13 PM Please respond to Struts Users Mailing List To: user@struts.apache.org cc: Subject:problem

How to read application property file in Struts application ?

2006-01-30 Thread digant . k . joshi
How should I read multiple different properties file in struts application, so by name of the property file I can distinguish what type of properties are defined in the property file. For e.g. 1. Messages.properties 2. ApplicationBO.propertis and so forth. Any help is appreciated !

Re: Two questions.

2006-01-30 Thread digant . k . joshi
Hubert: Thanks for your response ! As I haven't got any answer for my 2nd question, if you can respond with this thread or newer thread would give me jump start on issue of application properties file. In my application I need to read from application

RE: Two questions.

2006-01-30 Thread digant . k . joshi
I am relatively new to struts based application development , I have basic app up. Now based my application requirement. I have to do following 1. I have to put different browser request in a Request Q(SonicMQ) and then get reply by reading from Reply Q. I already have utility

Getting handle on application property file in Action class.

2006-01-30 Thread digant . k . joshi
Is there a way to get handle on Application property file handle in action class. What I mean is if I specify in struts-config.xml message-resources parameter=DICE null=false/ and drop my DICE.properties file in WEB-INF/classes directory Shouldn't I be able to read this property file from my

Action Form error.

2006-01-26 Thread digant . k . joshi
Somehow I am getting ActionForm is null when one of the Action is called. How can I find out if ActionForm object was created after jsp forwarded to ActionServlet. ? Here is my details. web.action.SectorAction has public ActionForward setUpForInsertOrUpdate(ActionMapping mapping,

New to Struts

2005-12-29 Thread digant . k . joshi
Hello Struts world ! I am new to Struts and was wondering if there is any good short Struts Tutorial which will help me get jump started with Struts and also what it best plug-in available for Eclipse for struts . Thanks in advance ! DJ This communication is for