Hi All,
I'm keen to be able to write out a dynamically generated file to the client.
Is there a way I can write it straight to the ActionServlet response from
the Struts Action.perform() method I'm in, or is there a better way?
I know I have access to the response in the perform method, but
Hi all,
We're trying to use the file upload package with little success...
Is there an example of how to use the DiskMultipartRequestHandler anywhere
(the Struts file upload example doesn't seem to use it), as we have tried
and always receive the following problems:
1) The files are being
It might be worthwhile doublechecking the input attribute in your xml
mapping for the request URI you're handling.
If there is no input page specified, the ActionServlet will not know which
page to return control to in order to display the errors it receives from
the validate() method.
HTH
Dave
You might find it helpful to take a read through the following article by
Kyle Brown
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocumentSubMast=
1
This should help to answer most, if not all of your questions.
Hope this helps,
Dave
-Original Message-
From: Soniya
Take a look at http://jakarta.apache.org/turbine for further information on
the Turbine framework.
Rgds
David
-Original Message-
From: Pullakandam, Shashi [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2001 21:56
To: '[EMAIL PROTECTED]'
Subject: RE: turbine vs. struts
Is turbine is another
It also might be worth double-checking that your ListServicesAction class
extends the org.apache.struts.action.Action class. If it doesn't, action
creation will definitely fail, yielding the error you're seeing.
HTH
Dave
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL
The scope in which the ActionForm class is placed is defined by the *scope*
attribute of the action mapping within struts-config.xml.
The following should work, but I don't know if it's what you're after.
In struts-config.xml
form-bean name=frmVendor type=com.aholdusa.struts.view.N1Form/
and
There have been many discussions, some quite recently, about setting up
Struts under various versions of weblogic. Take a look through the mailing
list archive to see if you can find what you're after there.
[EMAIL PROTECTED]/
http://www.mail-archive.com/struts-user@jakarta.apache.org/
HTH
There was a thread in the mail archive recently about exactly this, but I
don't know if it came to a conclusion. May be worth a look though. (
http://www.mail-archive.com/struts-user@jakarta.apache.org)
Search the archive for Iterating a resultset. There should be 10 or 11
messages come up.
Hi Dinesh,
Not sure if this is what you mean, but here goes:
If you set the following headers into the JSPs response, the page will not
be cached.
Use the following scriptlet in the page to take care of this
%
response.addHeader(Pragma, NoCache);
response.addHeader(Cache-Control, no-cache);
I came across a similar problem not so long ago. What I'd done wrong was try
and access properties outside the html:form tags.
Moving my tag calls inside the form tags fixed my problem at the time, but I
don't know if this applies in your case. It's worth double checking
none-the-less.
Regards
Humour me...I'm not entirely convinced this'll work, and I know it's not
ideal anyway, but here goes...
Could you try:
logic:iterate collection=%=tabTest% type=your.class.name.Client
id=aClient
bean:write name=aClient property=name/
/logic:iterate
Like I say, I'm not convinced this'll work, but
Hi Jeff,
I've done the following. It's not the prettiest, but it works (although I
haven't tested it on errors generated from the perform() method, only
validate()).
logic:present name=org.apache.struts.action.ERROR
bean:define id=errors name=org.apache.struts.action.ERROR
Hi all,
I wonder if someone can help me with this.
The taglib documentation says that the comparison value attribute for these
logic tags (equal, greaterEqual etc) should be a *constant value*. I don't
understand why this is. I want to compare one value of a bean with another
using the tags, and
Hi all,
Has anyone else had trouble applying the styleClass attribute to tags like
html:select?
On trying html:select using this attribute, I found it worked fine in IE,
but failed to show me a select box at all through Netscape 4.7. Instead I
got what looked like a text input field and it
Hi all,
Members of my team are gradually turning against using the Struts taglibs
and resorting to scriptlets.
IMHO: scriptlets bad, tags good. I've had more experience in using them
than the others, but I'm finding it difficult to fight my corner in the face
of ever increasing skepticism.
Could
Hi all,
I know something similar has been discussed on the list recently, but I
couldn't find the answer I was looking for.
I want to display each error on a separate table row (so I don't think I can
use html:errors/ straight), but I won't always know what those errors will
be, or where they
"anError"
bean:message key="%= anError.getKey() %" arg0="%=
(String)anError.getValues()[0] %" arg1="%=
(String)anError.getValues()[1] %"
arg2="%= (String)anError.getValues()[3] %" arg3="%=
(String)anError.getValues()[3] %"/
/logic:iterate
/logic:pre
Hi all,
I'm having trouble using the logic taglib (specifically
greaterEqual/lessThan) with a bean of type java.util.Map.
I need to do varying logic based on the size of the map, but am having
trouble making the value of .size() available to the tags.
I'd like to do something along these lines,
Do you have an example of how you'd control this in the Struts action, as
I'm having the same problem with Netscape and can't solve it.
Thanks in advance for any help.
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 16:22
To: [EMAIL PROTECTED]
-Original Message-
From: Ana Narvaez Vila [mailto:[EMAIL PROTECTED]]
Sent: 16 March 2001 08:56
To: [EMAIL PROTECTED]
Subject: Re: Deactivate URL-rewriting in logoff action.
What I was trying to say is that when logoff action is called, my
application ends and the user goes to another
All, sorry about the last mail. This is what I meant to post:-)
I've seen it in action in the test app, I've read the documentation, but I
still can't make it happen.
I have a list of checkboxes generated *dynamically* from DB records by the
logic:iterate html:multibox tags. The user defines
.
-Original Message-
From: Firmin David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 7:53 AM
To: '[EMAIL PROTECTED]'
Subject: Help! Can't access ActionForm properties in Action perform()!
Hi all
I've done something stupid. I know I have, but I can't figure out what
I'm trying
Hi all,
I'd really like to iterate through a List using the logic:iterate and
bean:write tags as per the struts-example app. My problem is that my List
is on an object that I retrieve from the User's HttpSession within my JSP,
and because of this, I can't figure out what attributes I require in
"William Jaynes" wrote:
The following line in the jsp work fine as is.
That is, it produces the expected html.
html:multibox property="checkbox"
value="%=candidate.getCandidateId()%"/
My problem occurs when the form is submitted. The "checkbox" array property
in my ActionForm is not
"David J Snowsill wrote"
Hi All,
Does anybody know how to set the focus for a text field on a form?
You can use the 'focus' attribute of the html:form tag to do this.
For example, if you have a text field defined like this:
html:text property="username" size="16" ./
within
26 matches
Mail list logo