RE: [OT] SQL Date to Util Date

2003-12-12 Thread Hajratwala, Nayan (N.)
A much simpler way of converting from a java.sql.Date to a java.util.Date is: java.sql.Date sqlDate = java.util.Date utilDate = sqlDate; This will work, since java.util.Date is the parent class... However, I the original question wasn't so much how to convert an SQL to a UTIL (I

RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilatio n errors

2003-10-27 Thread Hajratwala, Nayan (N.)
I actually had this identical problem when upgrading to WL 8. I was already using jdk 1.4, so it must be a WS thing. You should get the WL patch as well. I switched my scriptlet to do the following, which worked fine. params.put(airportCode, ((Airport)airportObj).getAirportCode() );

Problem updating values from html:select

2003-09-19 Thread Hajratwala, Nayan (N.)
Folks, I have the following jsp that is giving me a headache. My ActionForm contains a Collection of Device objects. The outer loop iterates over each device. Each Device contains a Collection of Parameter objects. The inner loop iterates over each parameter. The problem comes in the

RE: Problem updating values from html:select

2003-09-19 Thread Hajratwala, Nayan (N.)
-Original Message- From: Michael Ruppin [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 12:42 PM To: Struts Users Mailing List Subject: Re: Problem updating values from html:select You did make the indexed setters in your Form, right? m Hajratwala, Nayan (N.) [EMAIL PROTECTED]wrote

RE: Problem updating values from html:select

2003-09-19 Thread Hajratwala, Nayan (N.)
Mailing List Subject: RE: Problem updating values from html:select I'm fairly certain your ActionForm needs an indexed setter for the Device Objects, as well. Give it a try. m Hajratwala, Nayan (N.) [EMAIL PROTECTED] wrote: Not directly on my form, but on the Device object, I have the following

RE: Newbie question :Rendering buttons of type submit and button

2003-07-29 Thread Hajratwala, Nayan (N.)
http://jakarta.apache.org/struts/userGuide/struts-html.html#submit input type=submit name=Save value =Save in struts becomes: html:submit property=Save value=Save / http://jakarta.apache.org/struts/userGuide/struts-html.html#button input type=button name=Cancel value

RE: Beginner

2003-07-22 Thread Hajratwala, Nayan (N.)
If the name of the form you are using is myform, and the property (field) name you want to output is abc with a value of xyz, you can do: bean:write name=myform property=abc / This will output xyz --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com

RE: Upgrading to Struts 1.1

2003-07-01 Thread Hajratwala, Nayan (N.)
If you look near the bottom of your error messages, it says: Caused by: java.lang.ClassNotFoundException: org.apche.commons.logging.impl.SimpleLog Possibly you don't have commons-logging in your project any more? --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com

RE: how to invoke the action servlet?

2003-03-27 Thread Hajratwala, Nayan (N.)
I think you'll want to go to http://localhost:8080/ginsu/ginsu.do The first ginsu is the name of your webapp, the second ginsu.do part will invoke the ActionServlet. This is because your web.xml indicates that anything with *.do should go to the ActionServlet. The ActionServlet will check the

RE: how to invoke the action servlet?

2003-03-27 Thread Hajratwala, Nayan (N.)
You are correct about the file location... I'm assuming you meant struts-config.xml and not slide-config.xml .. I'm not sure if it matters, but be sure the directory is WEB-INF, not web-inf. My suggestion to you would be to try and get the struts-example.war running ... Just put the war file

[OT] RE: new String() vs String newStr =

2003-03-18 Thread Hajratwala, Nayan (N.)
Take a look at this link: http://java.sun.com/docs/books/tutorial/java/data/stringsAndJavac.html The section on Literal Strings should answer your question. --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Butt, Dudley

[OT] RE: how to get servletContext from httpsession ? (servlet api 2.2)

2003-03-18 Thread Hajratwala, Nayan (N.)
You can use HttpServlet.getServletContext() ... or if you are in a jsp/tag, PageContext.getServletContext() --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: david chan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 3:46 PM To:

RE: Running example app on Websphere 4.0

2003-02-26 Thread Hajratwala, Nayan (N.)
not find it. When I deploy example application, I'm not getting above error, however when I try to invoke any action from a browser I get File not found... error. Thanks. -Original Message- From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:03

RE: Running example app on Websphere 4.0

2003-02-25 Thread Hajratwala, Nayan (N.)
Assuming you're trying to get it up and running in WSAD 4.0 or 5.0, here is a bug-report that contains instructions on getting the example running in WSAD 5.0. I imagine it should be similar for 4.0 If you're simply trying to deploy it directly to the WS 4.0 appserver, you should be able to

RE: Running example app on Websphere 4.0

2003-02-25 Thread Hajratwala, Nayan (N.)
to put the struts.jar everywhere I could think of, but it still can not find it. When I deploy example application, I'm not getting above error, however when I try to invoke any action from a browser I get File not found... error. Thanks. -Original Message- From: Hajratwala, Nayan (N

RE: javax.sql.DataSource

2003-02-14 Thread Hajratwala, Nayan (N.)
You have to include the jar file with javax.sql.Datasource on your build classpath. I can't remember offhand which one this is, but it should be downloadable from http://java.sun.com. It is included with Java SDK 1.4.1 by default. --- - Nayan Hajratwala - Chikli Consulting LLC -

Struts officially supported at Ford

2003-01-23 Thread Hajratwala, Nayan (N.)
FYI … I thought people might be interested to know that Ford Motor Company has chosen Struts to use as their officially supported Servlet framework. Interestingly, support is being provided through IBM although I'm not sure what they can offer above the user list =) Here is the statement from

RE: Struts officially supported at Ford

2003-01-23 Thread Hajratwala, Nayan (N.)
, January 23, 2003 1:08 PM Subject: RE: Struts officially supported at Ford It's certainly good that they're using 1.1, but somewhat unfortunate that they stopped at b2. (snip) -Original Message- From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23

RE: Struts officially supported at Ford

2003-01-23 Thread Hajratwala, Nayan (N.)
: Thursday, January 23, 2003 1:08 PM Subject: RE: Struts officially supported at Ford It's certainly good that they're using 1.1, but somewhat unfortunate that they stopped at b2. (snip) -Original Message- From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January

RE: Struts officially supported at Ford

2003-01-23 Thread Hajratwala, Nayan (N.)
Actually, the case is more impressive than you describe. Struts won out over several custom frameworks that currently exist within ford and have quite a bit of political clout behind them. What won out in the end was that there was no good cost-effective support model for the internal

RE: HOWTO pre-populate forms with data, then update ?

2003-01-23 Thread Hajratwala, Nayan (N.)
I have done this by setting up the initial values in the reset() method. Is that not the correct way to do it? If not, how do you switch between prepare actions and process actions? --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Karr,

RE: HOWTO pre-populate forms with data, then update ?

2003-01-23 Thread Hajratwala, Nayan (N.)
Depends on how hard you're going to flame me =) Actually yes, but I'm guessing from your tone that I'm being a bad boy. --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Iain Sanderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23,

RE: errors when using struts1.1 but not in 1.0

2003-01-14 Thread Hajratwala, Nayan (N.)
Try deleting all your compiled jsp files (__jsp.java) and recompiling all your code. If you've got code based on 1.0, you likely have some code that is deprecated and that you should update before proceeding. --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com

RE: [slightly OT] Time zone strategies

2002-12-02 Thread Hajratwala, Nayan (N.)
I didn't delve too much into the details of your current approach, but couldn't you do this fairly easily using the Calendar class... Date fromDb = ResultSet.getDate(...); Calendar cal = Calendar.getInstance(user's TimeZone, optionally user's Locale); cal.setTime(fromDb); Now you can

RE: Can anybody tell how to use struts 1.1 beat version in WASD

2002-10-30 Thread Hajratwala, Nayan (N.)
just import the WAR file for the struts-example... it is really that simple. I've done this successfully using WSAD 4.03 --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: KISHORE KUMAR KOTA Rao [mailto:RKishore;covansys.com] Sent:

RE: PDF generation with Struts

2002-10-24 Thread Hajratwala, Nayan (N.)
not sure about integration w/ Struts, but take a look at FOP. It is easy to use, and we have used it successfully in a couple instances. http://xml.apache.org/fop/index.html --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Bruno Collet

RE: PDF generation with Struts

2002-10-24 Thread Hajratwala, Nayan (N.)
that is what FOP does as well ... http://xml.apache.org/fop/index.html --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: Daniel Jaffa [mailto:jaffad;courtinnovation.org] Sent: Thursday, October 24, 2002 9:53 AM To: Struts Users Mailing List

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread Hajratwala, Nayan (N.)
interesting ... sorry if this has been discussed to death already. If so, i'll shut up. =) Shouldn't the decision of displaying the validation be up to the application developer? For example, when changing a password, you would have a spot to enter old new passwords, but would likely want to

RE: How to use datasource and db connection pooling in struts?

2002-10-15 Thread Hajratwala, Nayan (N.)
you can use commons-dbcp ... see http://jakarta.apache.org/commons/dbcp.html --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 10:40 AM To: [EMAIL PROTECTED]

RE: connection pools

2002-10-07 Thread Hajratwala, Nayan (N.)
adolfo, take a look at commons-dbcp for database pooling http://jakarta.apache.org/commons/dbcp.html and commons-pool for generic pooling http://jakarta.apache.org/commons/pool.html Good luck! You can direct any questions you have about using it to the commons-user mailing

RE: Need Help Fast

2002-09-26 Thread Hajratwala, Nayan (N.)
Essentially, he is saying you can rewrite your doStartTag method to be something like: private List _states = null; public int doStartTag() throws JspException { if (_states == null) { _states = new java.util.ArrayList(); _states.add(new

RE: logging in struts

2002-09-23 Thread Hajratwala, Nayan (N.)
Agreed that some previous posts have been pretty sketchy, but it seems to me that in this case he may have just misunderstood the question logging in struts to mean logging in IN struts... in which case his suggestion is probably valid. --- - Nayan Hajratwala - Chikli Consulting LLC -

RE: content management ideas?

2002-09-12 Thread Hajratwala, Nayan (N.)
Unfortunately, I don't believe this is a very practical approach. A content editor may inadvertantly make a change to a tag without even noticing it (search replace, fat-finger, etc). Then after they upload their change to the server and spend a few hours trying to figure out why it is

RE: jndi as a data source

2002-09-10 Thread Hajratwala, Nayan (N.)
Here's some code that I wrote to use LDAP through the Commons Pooling mechanism... I'm still trying to figure out a good way to validate the connection using the validateObject method, so that part is likely not optimal. There are 2 classes: * LdapConnectionFactory, which implements

RE: Improving performance by splitting JSP?

2002-09-10 Thread Hajratwala, Nayan (N.)
Was it a Hashtable or HashMap? It might be that since Hashtable is synchronized you were encountering a bottleneck in your multithreaded environment, whereas just a regular loop would not have this problem... --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original

RE: ConcurrentModificationException when using nested:iterate tag

2002-09-03 Thread Hajratwala, Nayan (N.)
A ConcurrentModificationException occurs when you have an Iterator, and then modify the underlying collection, then try to use the iterator again... example (with bounds checking removed): List list = new ArrayList(); // populate list... Iterator i = list.iterator(); Object o =

RE: [VOTE] Should this list discontinue it's long, treasured heri tage of relaxed fridays?

2002-08-30 Thread Hajratwala, Nayan (N.)
Do you feel this list should discontinue it's long heritage of relaxed fridays? ( ) Yes ( x ) No --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Hesitation leads to NullPointerException

2002-08-26 Thread Hajratwala, Nayan (N.)
are you sure that you haven't set the session timeout to 30 *seconds*? Be careful to notice what the units being used by the timeout parameter are... (minutes, seconds, milliseconds, etc) --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com -Original Message- From: