Elizabeth Reynolds

+ Follow
since Mar 31, 2002
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elizabeth Reynolds

Is there a difference between <struts:message.. and <bean:message?
Also, I'm using <bean:message.. , but it is not picking up the attributes from my CSS file, so I have to hard-code them in the message text. Is there a way around this?
18 years ago
No, it doesn't. That's what I was referring to above. Sorry, I didn't make that clear. EXEC refers to the <executable> task and SQL refers to the <sql> task.
18 years ago
The two tasks that I use to create db tables are EXEC (works for DB2) and the jvm setup for Cloudscape. I can't get SQL or EXEC to work for MySql. I don't care for SQL too much because it requires a userid and password and does not allow for other mutators, such as port. Despite these shortcomings, when I try to use it with the MySql JDBC 2.0 driver classes I get a ClassCastException probably because I need the J2EE jar as well. I can't find a way for it to work with the EXEC task. Any ideas?
18 years ago
Question for Eric, Steve or anyone.
Somewhat new to Ant. I'm trying to create db tables with dependencies and want to execute targets in a specific order. I can't seem to accomplish this with depend="". All the threads start executing concurrently and unfortunately some time out before all the targets are completed. Is there some way to accomplish this with Ant other than putting all the create table statements into one target file?
18 years ago
In WSAD, you have more flexibility in where you can place your file. For example, I can place the file under the web application directory and reference it. The problem is when you deploy outside of WSAD. My recommendation is to put it into your source directory. It will then show up in your WEB-INF/class directory.
18 years ago
I believe I found the justification for entity beans over applications built without them. I developed a sample application that performs several database table updates within one transaction. On a rollback situation, the server just hung, I believe while the rollback was being performed. Totally unacceptable.
Will someone confirm that with entity beans, the rollback of transactions is done in the background? I can probably accomplish the same thing by putting the database updates in a separate thread, but if it's going to get that complicated, then I might as well use entity beans.
Correction, not the server, but the application.
[ July 31, 2002: Message edited by: Elizabeth Reynolds ]
Hi all. I'm trying to test an application on SUN's 1.3 J2EE RI that uses the multipartrequest servlet to upload a file, but the security manager is issuing java.io.file permission exceptions. How do I change the policy file to limit the scope of permissions to this application. I'm fairly new to security so I'm not quite sure how to specify the code base on the grant and what to use (i.e., the URL?). I have the same problem when using a struts version of this app.
I tried various combinations of:
file://theWebPackage/* & also /- or
http://theHost/theContextRoot/* etc. but the only thing that works is granting default domain permission for read, write and delete, which I obviously don't want to do.
18 years ago
Yes, that works sometimes. For example, I can use the JDBC 2.0 drivers for MySql by specifying the correct class and path where the driver resides. Also, WSAD provides for a lot of flexibility for setting mutators when data sources are configued (e.g. port).
But here, the MySql JDBC 1.2 driver has already been defined. When I run an app using JDBC 2.0, the server accepts it, issues a warning and then uses "generic settings."
On the other hand, I can't get the 2.0 drivers to work at all for other databases (e.g. Cloudscape).
[ July 29, 2002: Message edited by: Elizabeth Reynolds ]
18 years ago
I am trying to use some data sources with drivers that are not specified in the list of WSAD preconfigured drivers. Is there anyway to employ these datasources without updating the JNDI directory? If I have to update the directory, can it be done through the workbench or by editing some property file? I don't want to do it programatically.
Please don't refer me to the InfoCenter. I am running on WIN 2K and I was never able to successfully install it. This is known bug and IBM is working on it.
[ July 28, 2002: Message edited by: Elizabeth Reynolds ]
18 years ago
Excuse my ignorance, but working in a standalone environment and being relatively new to J2EE (1-2 years), you miss a lot that you might otherwise pick up on.
With JTA, JDBC, JNDI, and session beans, what exactly is the justification for using Entity Beans? It seems that you could accomplish whatever you would want without them.
Data Access Beans employ the (com.ibm.db.dbbeans?), which is a package that just extends the functionality of the java.sql package adding methods for more flexibility and optimization.
But the concept is different from a DAO. I think of data access beans, which you can write without the IBM extensions, as a means of managing data sources without using RMI-IIOP. In this sense, they are not entity beans and I believe they are probably just applicable to web servers.
However, I still find the terminology confusing. Can one of the local gurus around here provide a more precise definition (i.e, would it be appropriate to call them JDBC session beans?).
[ July 23, 2002: Message edited by: Elizabeth Reynolds ]
The following code in a JSP page is returning a Java compiler warning (i.e., local variable myiterator1 is not used), although the code works fine.
Is there a better way to do this?

<logic:iterate id="myIterator1" collection="<%= tempMap1 %>">
<LI><FONT size="2"><bean:write name="myIterator1" property="key" />
<bean:write name="myIterator1" property="value" /></FONT></LI>
tempMap1 is the result map from performing set operations and is obtained on the JSP page.
I believe the error refers to the "myIterator1" in the id field of the logic:iterate tag rather than the name field of the bean:write tag because I'm only getting one warning.
[ July 20, 2002: Message edited by: Elizabeth Reynolds ]
19 years ago
There is so much flexibility in the way you can structure apps even within the standard frameworks such as MVC and struts.
My question is when should a bean be employed vs. using attributes? I'm finding that I can accomplish everything I want by setting and getting attributes in my servlets/jsp rather than creating beans.
19 years ago
Thanks for the clarification. I was obviously pretty confused this morning. Also, I finally had time to check your links. The references were great--exactly what I was looking for.
Thanks again.
19 years ago
Thanks Stephan and Jim. I've worked out my problem, but your suggestions might have been another approach. And John, you're right I meant ISO-8859-1.
I was using the multipartrequest servlet and did not notice it now has a new constructor that includes an encoding parameter. However, strangely enough when reading the file upon receipt, I still had to set the encoding on an InputStreamReader to UTF16, rather than using a FileReader since it still processed the file as cp1252 (i.e., ISO-8859-1). This works fine with my string functions. What I don't understand is, if ISO-8859-1 is 8 bits then why would setting the encoding to UTF8 on the InputStreamReader, which I did initially, return a malformedinputexception. I'm using jdk 1.3 and I couldn't even find a reference to that class.
John, I think we share the same misconception about ISO-8859-1. It may be only 8 bits, but it still requires 2 bytes (perhaps the high-order bit is reserved). At least this is what happens in my container.
It also appears that Sun has introduced a new package java.?.nio in 1.4 that would facilitate using the approach suggested by Stephan and Jim.
[ July 14, 2002: Message edited by: Elizabeth Reynolds ]
19 years ago