Hi Peter,
When you start the upload process with web container will store the file in
a temp location. This will vary depending on your setup. The important thing
is that you can access as shown below and then write to a location of your
choosing. This code snippet is an edited version of that
Any ideas about how to do this? Tom, JD are you already working on this?
I thought about using JTidy to generate xhtml from the original html and
then to use JDom to access / update the form elements and attributes.
Regards,
Ajit Joglekar.
- Original Message -
From: Tom Janofsky
--- ameer [EMAIL PROTECTED] wrote:
Im stuck up with an issue here. i am refering to an
entity in action class. based on input data .. if a
record for the input exists i need to forward the
entity remote reference that i have got to a page
called display.jsp or if no record exists , i
Hi
When I try to deploy my struts-application to a SilverStream app. server I
get the following error message:
No context class loader: java.util.collection
Thanks in advace
Jan Fredrik
___ Jan Fredrik Øveraasen | Senior Systems Developer
___ Cell Network ASA | Pb. 5313,
Weblogic sometimes has trouble parsing relative paths. Are you using
Weblogic 6.0? It might be fixed in SP2. I do this %@ include
file=/include/toppage.inc % and it works. Try /inc/imports.jsp.
-Original Message-
From: Jonathan Asbell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01,
Is anyone currently using multiple pages (same ActionForm) in a wizard-esque
manner? If so, how are you doing validation without knowing the details of
which elements are displayed on which page? In other words I'd like some
fields to be required without having the user to go back 3 pages.
Yes Hal, it is WL6. It was a problem with the paths.
We should post this somewhere so others can know.
- Original Message -
From: Deadman, Hal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 04, 2001 9:46 AM
Subject: RE: *TED* Re: I am finding that templates are SLOW
I hope this isn't a repeat, but I need a bit of help here.
I have a collection of simple value beans that I'd like to
allow the user to edit. I don't know how large the
collection is, but the simple bean merely contains a Label
and Value.
I'm trying to do something like the jsp code below. If
Hi all - I have a problem with initalising the main struts controller
servlet - doing so produces the exception given below. I'm confused as to
why struts will be trying to access
org.apache.struts.example.ApplicationMapping - I do not have this mapping
in my struts-config.xml file. Any ideas as
ActionServlet depends on ApplicationMapping. It's one of the classes
defined in struts.jar, check your struts.jar is in your classpath.
struts.jar is in my classpath, this exception is thrown at runtime there
is no org.apache.struts.example package in my struts.jar, hence my
assumption
Hello, I would like to contribute some information on using Struts with Persistence
PowerTier (Apache/Servletmill). What's the best way to do this?
--Steve
We are getting a NullPionterException which seems to originate from the the
struts-html tag libraries. The error only occurs when we run Struts with
Tomcat/Apache and SSL. If we bypass SSL and just go through Apache (port
80) we do not see the error. Has anyone else seen this problem when
I found that I could not successfully deploy struts-example.war without first
deploying struts-documentation.war. Does this sound right or is it maybe something
specific to my servlet container (Servletmill from PowerTier)?
--Steve
Hi Guys,
Please help me out on this one...
I ran in to a small problem...
1. In the system im developing the user has to go through several pages,
entering information that needs to be processed...
2. When ever the user enters invalid data, he'si returned to the form and is
presented to error
Hi Craig,
A blast from the past...I believe this post is a month old...
Anyways...I see your point, but consider this...
If I only refered to the functionaly (pages, actions whatever), I would have
the following problem...
myForm.do forwards to myAction which is validated to myForm...
So if
Hi all,
I just want to thank everyone for their great responses, I really appreciate
all the help.GREAT THANX
-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 6:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Any Hashmap examples
Just wondering how you all were implementing visual
changes based on state. Ex. when a menu button says "logon" before the
person loggs on, and then says "logoff" after the person has logged on.
How are you doing this switching based on state? In the action? in
the template? Or are you all
Title: Form input using image tag
Hi,
I'm trying to use the html:image tag to submit a form, but the graphic is not rendering correctly.
html:img works fine for display, but this is the resulting source code of html:image src="images/submit.gif" / tag:
tr
tdinput type=image name=
You can either
1. Route users to different pages based on their state, or
2. Deliver the current state to the presentation layer in the form of
JavaBeans that the Struts logic tags can test. logic:present
name=logon ...
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~
Hey,
Looking through the
archive I found a couple of notes about internationalizing the ActionError
parameters. I'm talking about the following:
public ActionError(java.lang.Stringkey,
java.lang.Objectvalue0,
java.lang.Objectvalue1)
Construct an
No, it's not required at all. What kind of error are you getting?
--
Dan Miser
http://www.distribucon.com
From: Ritter, Steve [EMAIL PROTECTED]
I found that I could not successfully deploy struts-example.war without
first deploying struts-documentation.war. Does this sound right or is it
Your SSL isn't configured properly. Take a look at bug 992 in Bugzilla for
the solution http://nagoya.apache.org/bugzilla/show_bug.cgi?id=992
--
Dan Miser
http://www.distribucon.com
From: Brett G. Palmer [EMAIL PROTECTED]
We are getting a NullPionterException which seems to originate from the
Ok, good. The error I am getting is as follows:
ERROR
Exception in thread main_worker java.lang.IllegalAccessError: try to access class
org/apache/struts/action/AddDataSourceRule from class
org/apache/struts/action/ActionServlet
at
This could also be caused by a link URL including the port number which
sometimes caused a new session to be used. A NPE could result when code that
normally expected something in the session didn't find it because the
session was new. As indicated by the other post, this may be fixed in b3.
Getting the locale object is easy. If you are in an Action perform method,
just call:
getLocale(request);
If you are not in the Action class, you can do what that method does,
Locale locale = (Locale) session.getAttribute(Action.LOCALE_KEY);
if (locale == null)
locale =
Thanks Hal. However, I need to get the locale in the validate() method of
my ActionForm object. Any thoughts?
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 13:24
To: [EMAIL PROTECTED]
Subject: RE: How do I Internationalize ActionError
Title: Form input using image tag
Kat,
I
have
html:image
src="images/btn_login.gif"/
and it
creates this:
input type="image" name=""
src="images/btn_login.gif;jsessionid=lqwrkmnwb1"
I
don't know if it should make a difference but try removing the space before
/ and see if it works
Here are the results of trying to install the struts sample webapps without first
deploying struts-documentation.war for Servletmill.
Webapp Works w/o doc
=
struts-blank.warNO
struts-example.war
On Mon, 4 Jun 2001, Shamdasani Nimmi-ANS004 wrote:
Steve,
This is how I used a HashMap in a jsp:
logic:iterate id=item name=user_list property=userList
TR
TDbean:write name=item property=key//TD
TDbean:write name=item property=value//TD
/TR
/logic:iterate
getUserList() method in
I was wondering how other people deal with physical
resource objects (eg. db result sets, etc.) during a request. Before
struts, I use to allocate the resource, call request.setAttribute() with the
resource object, call request dispatcher (to do jsp presentation), then clean up
the resource
Hi all,
Can Struts deal with selectlists which allow multiple selections? If so, how should I
create the accessors methods for the formbean,
i.e. how does Struts get/set the multiple selections from the formbean?
Thanx!
Dante
I don't think what you are trying to do should be done in the JSP by a
struts/custom tag.
Why not copy the value objects in the HashMap to an array based on the order
of the keys in your String array? Then pass the array to the JSP instead of
the HashMap. If you need the keys and they aren't
So are you suggesting that I pass the request object to my ActionForm
constructor when I create it in my action?
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 13:56
To: [EMAIL PROTECTED]
Subject: RE: How do I Internationalize ActionError
Hi,
I am trying to compile the sample application
"business.zip" I found in the Struts, an open-source MVC implementation article http://www-106.ibm.com/developerworks/library/j-struts/?n-j-2151.
I get the following error:
[javac]
Hi,
I was trying to us the logic-iterate tag and i'm stuck
at a point. Please go thru the snippet below,
logic:iterate id=test name=mybean
property=name
liembean:write name=test//em/li
%
String myName = instance.getName(mybean.getName());
System.out.println(myName);
%
/logic:iterate
Now, how
I'm trying to deploy a couple of struts apps on resin which I've deployed
successfully on Weblogic and on Tomcat. It appears the server tries to call
the init method in the ActionServlet over and over eventially causing the
server to run out of memory and crash. I've seen also seen this
I haven't had this problem myself. I've kept busy Struts applications in
play for several weeks without any unscheduled downtime under Resin.
Matthew Heaton (Software Engineer) wrote:
I'm trying to deploy a couple of struts apps on resin which I've deployed
successfully on Weblogic and on
Thanks Ted, I will take it from here. Once I get my project-specific sample put
together I'll look into it some more if its still a problem.
--Steve
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject:
Hi, im a newbie to struts basically applying the examples and reading
the documentation (mvc). I am about to connect a psql datasource
(Postgresql, luinx OS) database to a struts mvc utilizing a database URL
.
Thus is there a ActionForm example and what level if i have to create a
ActionForm
The request is passed into the validate() function as an argument by the
ActionServlet. You said you wanted the locale in the validate() method,
right?
-Original Message-
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 6:11 PM
To: '[EMAIL PROTECTED]'
Shane
This is how you do it:
logic:iterate id=eachBean name=yourBeanObject property=beanList
TR
TDbean:write name=eachBean property=name//TD
/TR
/logic:iterate
In the above case in yourBeanObject class you will have the method getBeanList() which
will return a list of your beans. And in
Yes, sorry. I wasn't aware the request is passed into the validate. Thanks
Hal
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 15:09
To: [EMAIL PROTECTED]
Subject: RE: How do I Internationalize ActionError parameter values?
The request is
Humm, it does just to be my applications that are doing it but I can't see
where they are configured any differently.
-Matt
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with struts and
You can configure Postgresql in the struts-config.xml, and then use the
same datasource with the Jakarta Taglibs JDBC. Works like a charm.
Struts uses org.apache.struts.action.DATA_SOURCE as the datasource
identifier (see Action.java).
kuma.cra wrote:
Hi, im a newbie to struts basically
Thanks for everyone's suggestions. Updating to Struts beta-3 fixed the
problem. I also tried configuring SSL according the Bugzilla record #992,
but it didn't fix the problem.
Brett
- Original Message -
From: Bryan Field-Elliot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday,
When the time comes, David's Validation servlet would get my vote.
Unfortunately, we need to get 1.0 out the door before voting on anything
like this. Beta 3 is counting down now, so we only talking a couple of
weeks now.
In any event, what features Struts, or any Jakarta product, will offer
in
Ted,
Just because the objects are held in the bean doesn't necessary mean they
will automatically be cleaned-up. Am I missing something here? I also
agree, I don't want to be writing queries within the JSP.
Thanks,
- jeff
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To:
On Mon, 4 Jun 2001, Deadman, Hal wrote:
I don't think what you are trying to do should be done in the JSP by a
struts/custom tag.
Maybe it's a dumb idea, but that's never stopped me before. =:]
Why not copy the value objects in the HashMap to an array based on the order
of the keys in
That's sounds okay for simple forms, but I'd rather not serialize objects
from a multi-row recordset to a collection every time. Too much overhead!
Let me put the question another way, in Struts, what method on the form or
action class gets called following the rendering of the input page? I'll
Following the rendering? By Struts? None.
It's a straight JSP (or other view technology, like a Velocity
template).
Generally, things go into the request, and are disposed when the request
is disposed.
There's an enhancement to the iterate tag in the works that uses a
RowSet directly.
Well, it looks to me that short of overriding ActionServlet.process(), there
is no way one can clean-up resources after the page has been rendered...
- Original Message -
From: Jeff Trent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 04, 2001 10:54 PM
Subject: Re: Managing
I doubt that overriding ActionServlet.process() would work. The
controller sends back the response, and it's done. It's then up to HTTP
to deliver the view, usually a JSP.
Any clean-up routine would have to be the responsibility of the view,
which puts you into the scriplet zone.
Jeff Trent
Currently having a problem with migrating code from using Struts 1.0b1 to
Struts 1.0b3
Everything seems to work fine apart from the fact that the validate methods
on our form beans (ie subclasses of org.apache.struts.action.ActionForm) no
longer get called successfully. I have had a look
53 matches
Mail list logo