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
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() );
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
-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
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
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
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
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
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
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
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
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:
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
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
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
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
-
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
, 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
: 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
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
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,
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,
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
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
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:
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
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
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
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]
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
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
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
-
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
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
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
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 =
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]
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:
38 matches
Mail list logo