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
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
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]
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
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
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
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
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
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
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
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
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
.
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
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);
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
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
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
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
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
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
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
21 matches
Mail list logo