RE: preview form

2004-02-16 Thread Nicholson, Robb
We needed a read only version of a selection list as well, but the need wasn't apparent until after one of our developers had already finished writing all the JSP's. The solution I came up with was to write a subclass of the SelectionTag (and OptionTag, OptionsTag) to override the functionality

RE: preview form

2004-02-16 Thread Nicholson, Robb
Read-only and disabled don't have the same meaning here. For a read-only field, the value cannot be changed by the user, but it still gets submitted with the rest of the form values. For a disabled field, the user cannot change the value, and the value does NOT get submitted. -Original

RE: Convert JSP to static HTML...

2004-01-26 Thread Nicholson, Robb
The Apache Commons HTTP Client (see org.apache.commons.httpclient.* packages) makes it pretty easy to make HTTP requests and get the response back as a String. -Original Message- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 4:28 PM To: [EMAIL PROTECTED]

RE: Notify a user if he is in a screen and the contents of that s creen is updated by another user

2004-01-15 Thread Nicholson, Robb
With a fat client, it would be relatively easy. In the stateless request/response world of web applications, your choices are going to be fairly limited. If I had to do that, the choices I would initially think of are: 1. Wait until user submits that form to the server to check. Easiest for

RE: Calendar control in Struts???

2004-01-06 Thread Nicholson, Robb
Is it that you do not want JavaScript in the resulting HTML page that gets rendered? Or that you simply don't want to write JavaScript code yourself? I found a really nice pop-up calendar widget that is a tag library, so you don't have to write code. But it does render JavaScript in the resulting

RE: .NET: We are just like Struts... only better.

2003-12-30 Thread Nicholson, Robb
This is just marketing propaganda disguised as a technical article. If you actually make it to the bottom, on the rate this article section, you will notice that most of the votes are for 1 - very poor, with an average rating of 3 out of 10. Seems even those lined up in the MS camp can tell

RE: converting a FormFile to a Blob object

2003-12-23 Thread Nicholson, Robb
You have to insert the record using an empty LOB, then select the record for update and write the byte stream to the LOB. Here's an example insert method from my DAO that I used for the same purpose recently. Might not be the most efficient or prettiest code out there, but it works like a

RE: converting a FormFile to a Blob object

2003-12-23 Thread Nicholson, Robb
The approach of just using ps.setBlob(actualBlobObject) in the original insert has the limit of 4k. The code in my sample (inserting record with empty BLOB, selecting for update, get pointer to BLOB, and write byte stream to that) will work for bigger files. I think the first approach above is

RE: Scheduler

2003-12-02 Thread Nicholson, Robb
Seems like the easiest way might be to write a JMX MBean and deploy that thing in a J2EE server, like JBoss. Have that thing start a thread that checks alerts every so often and then when required, send the alert. Then it runs when the server starts up without a lot of manual work-arounds and

RE: PDF File Display in JSP-Struts

2003-11-13 Thread Nicholson, Robb
Any time he has to fix a bug or add a new feature, he knows exactly which file to edit ;-) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:03 PM To: Struts Users Mailing List Subject: Re: PDF File Display in JSP-Struts I

RE: Workaround for IE streamer bug?

2003-10-30 Thread Nicholson, Robb
PDF files work OK for us. It displays right in Explorer (with the plug-in from Adobe). For files that Explorer does not know how to handle, I put in the content-disposition fix I got from this list, and that worked great. Here's the basics of my code... (The method writeContent is basically a

Downloading a file from a database

2003-10-27 Thread Nicholson, Robb
In one of our STRUTS applications, I have a screen that allows users to upload and download files attached to an order. I have a JSP form that allows the user to browse a file on their machine and upload it. Also on the form is a list of the files already attached to the order, with links beside

RE: Downloading a file from a database

2003-10-27 Thread Nicholson, Robb
. Nicholson, Robb wrote: In one of our STRUTS applications, I have a screen that allows users to upload and download files attached to an order. I have a JSP form that allows the user to browse a file on their machine and upload it. Also on the form is a list of the files already attached to the order

RE: Logout Szenario

2003-10-21 Thread Nicholson, Robb
Yup, we have a LogoffAction class with 2 lines of code (besides the logging stuff): // invalidate the session to log off user httpServletRequest.getSession().invalidate(); // forward to a page that says you've been logged off... return actionMapping.findForward(WebKeys.PG_LOGGED_OFF);

RE: Drop down selection without submit?

2003-10-20 Thread Nicholson, Robb
html:select ... onchange=submit() -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 3:33 PM To: Struts Users Mailing List Subject: Drop down selection without submit? Hi, I would like to make a selection from a drop down menu and call an

RE: [Slightly OT] Where/how to start?

2003-10-14 Thread Nicholson, Robb
Here's what I did at my last job: I was mostly a C, JAM, Oracle developer but wanted to learn Java and J2EE. Try to find an approach that will let you learn J2EE while benefiting the company in some way. Let your managers know that you want to learn the technology. They'll know that you aren't

RE: struts double action execution!?

2003-10-13 Thread Nicholson, Robb
We had this problem briefly as well. Make sure you don't have a button that looks like this on your JSP... html:submit ... onclick=submit()/ -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 4:55 AM To: '[EMAIL PROTECTED]' Subject: struts

RE: OT - book on Java patterns

2003-10-13 Thread Nicholson, Robb
Here are a few resources on the web for design patterns... http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html http://www.mindspring.com/~mgrand/pattern_synopses.htm http://exciton.cs.oberlin.edu/javaresources/DesignPatterns/default.htm http://www.jdance.com/designpatterns.shtm

RE: newbie question: results display on same page?

2003-10-13 Thread Nicholson, Robb
The logic:iterate tag does not have to live within a form. Chances are your error is because the Collection you are trying to iterate over is not in the request (or whatever session you happen to be using). What we normally do for a situation like this is to create a JSP with the search form, and

RE: problem with String[]

2003-09-23 Thread Nicholson, Robb
I think this is what you are asking: http://www.husted.com/struts/tips/006.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:49 PM To: Struts Users Mailing List Subject: Re: problem with String[] Hi, i really need to get this

RE: How to implement close button in Struts?

2003-09-23 Thread Nicholson, Robb
There might be a better way, but this is how I do it: html:button property=close value=Close Window onclick=window.close()/ -Original Message- From: Rick Col [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:57 PM To: [EMAIL PROTECTED] Subject: How to implement close button