I have a question about pre-populating the fields of a form you display
in the browser. To pre-populate fields, the Action saves a Form bean in
the context via request.setAttribute("inputForm", inputForm), and
tag looks up the form bean.
determines the form bean's name automatical
Yes it did. Thanks for your help, that's been plaguing me for ages!
tobes
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 1:00 PM
To: Struts Users Mailing List
Subject: RE: ActionMessage Handling in the Action Class
Toby,
Does the "f
For those interested in the code:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31842
sean
On Wed, 20 Oct 2004 10:52:27 -0400, Sean Schofield
<[EMAIL PROTECTED]> wrote:
> Mark,
>
> Thanks for the info. Any info at this stage may prove helpful so its
> appreciated. I made some progress th
Toby,
Does the "failure" forward have a 'redirect="true"' on it in
struts-config.xml? If it is doing a redirect, the errors saved in the
request scope will be gone when the client does it's redirect to the
"failure" page.
Regards,
David
-Original Message-
From: Toby Saville [mailto:[EMA
I am using struts 1.2.4 and im getting a strange problem when I try to
handle errors in my action class.
If i use the following:
saveErrors(request, myErrors);
return mapping.findForward("failure");
The errors dont get displayed in the error page, infact theyre not even
in my request object when
I'll be darned! If you go back to Struts 1_1 you find that
"CommonsMultipartRequsetHandler does have the long cast to an int. So,
that is probably the source of the error.
Michael McGrady
Michael McGrady wrote:
The method setMaxFile(long) exists even in older versions. So, are
you doing some
From: "David Farrell" <[EMAIL PROTECTED]>
> When I changed the Constants.java file, i went to my local classes
> folder and uploaded every class with the most recent timestamp.
> I looked at all three Constants.java files and all are correct.
IMO, that isn't the class that's causing the problem,
I'm using DynaValidatorForm and LookupDispatchAction for a multi-page form,
so I have the problem of needing different validations for each 'page' of
the form. I learned about getValidationKey and am successfully returning a
String that matches one
of the tags in validation.xml. That's working.
Gnan,
I see you are using displaytag with EL. Are you using Displaytag v1.2 EL
tld? Are you using a JSP 2.0 container? If the container, where is your
dollrsign for the line
export="{exportIndex}" ...
Shouldn't that portion of the line be:
export="${exportIndex}" ...
Regards,
David
I'm using eclipse with sun jdk.
When I changed the Constants.java file, i went to my local classes
folder and uploaded every class with the most recent timestamp.
No avail.
So, I took a local copy of all .class files from the server.
I renamed them all to .txt and did a search in homesite (really
From: "David Farrell" <[EMAIL PROTECTED]>
> now... since my Constants.java file has been updated with the new path
> this irritates me.
> I've logged into the system and opened the constants.class file and
> verified that it does have the correct path.
But did you recompile EVERYTHING? A good com
Hi,
In a system I'm working on, we have a folder that recieves uploaded media.
On my windows development machine it is "E:\program files\etc" on
the linux machine that hosts the site, it is "/opt/tomcat/etc"
I recently updated the demo system and when I try to upload media using
a form,
Sorry for the repeat post. Can someone give me some input?
Hello,
In my application, I am trying to set a "exportIndex" variable to a "true"
or "false" value based on if the member is admin level or not. And I want to
use this "exportIndex" value to display or not display one of my attributes
in
Hi Michael,
Thank you for your follow up. I notice there is a classpath confusion
somewhere but since Struts and commons-fileupload are so
intermingled, I can't separate them from each other. I have tried
Struts 1.2.4 but still got the same exception. The reason I am still
working with 1.1 is
To tell you the truth, Marwan, although there are different strokes for
different folks, I find the Struts implementation of commons upload in
CommonsMultipartRequestHandler not to my "taste". There seem to be
continual problems with it as well. Maybe that is my bias. Don't
know. Anyway, Co
Hi, Marwan,
I am going to look into this a bit, but I have to tell you that using
the Struts application looks harder to me than rolling your own and
working with commons upload directly. Anyway, the code you attribute to
CommonsMultipartRequestHandler, viz.,
DiskFileUpload upload = new DiskFi
Yes, I tried both...still the same error.
docBase="D:/cygwin/home/jmitchell/svn/stru..."
docBase="D:\\cygwin\\home\\jmitchell\\svn\\stru..."
I don't really care enough about this to google the tomcat lists, so I'll
just go with the work-around.
Thanks for the help anyway.
--
James Mitchell
My action is pasted below. As you will see I never call setMaxFile
(long) in my acdtion. From the stack trace it looks like Struts
internal classes are doing the call:
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
(CommonsMultipartRequestHandler.java:219)
These are the 2
> Alternatively, I'd try just using a relative path from $TOMCAT_HOME.
> If it's installed in webapps/struts-faces-example1, then
> docBase="struts-faces-example1" should work... unless I'm making
> another thinko! :)
That's the whole idea. I want to deploy it from where it sits. I have
other de
Hello,
In my application, I am trying to set a "exportIndex" variable to a "true"
or "false" value based on if the member is admin level or not. And I want to
use this "exportIndex" value to display or not display one of my attributes
in table. I am using from DisplayTag. I am using
to this but
Doh! Looking back, I see he's got forward slashes in the path already,
so I think that should parse OK. Must... read... carefully
before... reply. :(
But, if Tomcat isn't running in a cygwin-aware environment, that might
be the problem. It might work with an absolute (non-cygwin) path like
"c:
So it's really a Tomcat configuration issue.
I hardly ever use Windows, but don't you have to do something wierd
like double slashes on paths in the docBase element?
Craig
On Thu, 21 Oct 2004 14:05:10 -0400, James Mitchell <[EMAIL PROTECTED]> wrote:
> (Tomcat 5.0.28)
>
> Well, this is interes
> database should be straightforward. Indeed, James Holmes did some...
ummm, you got the "James" part right, but not the "Holmes" part ;)
http://wiki.apache.org/struts/ShortTermPlansForJamesMitchell
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: j
Just battled one of these this AM on Tomcat 4.1. In our case, it
turned out that Tomcat couldn't parse the backslashes in the docBase.
Try it with forward slashes as path delimeters.
Kev
On Thu, 21 Oct 2004 14:05:10 -0400, James Mitchell <[EMAIL PROTECTED]> wrote:
> (Tomcat 5.0.28)
>
> Well, t
(Tomcat 5.0.28)
Well, this is interesting.
If I simply copy the deployment (or the .war) to webapps, it deploys
finebut if I do this:
...I get that error.
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Mes
The method setMaxFile(long) exists even in older versions. So, are you
doing something other than tossing a long value into that method?
Michael McGrady
Travis Reeder wrote:
Looks like you need the latest commons-fileupload.jar.
Travis
-Original Message-
From: Marwan Salam [mailto:[EMA
It's too simplistic to make "always" or "never" statements on this
topic -- you have to evaluate each use case on its own, based on the
actual environment.
Synchronization is never an issue for single-threaded applications
(like a stand-alone Java application), because there is never any
potential
I think you have a few extra layers of nesting. What exactly are your
system.out checks? What's being called in the custom tags is the same as
session.getAttribute("PersonStatus").getPerson().getCountryCode().getCountryCode()
The value portion of the tag is
session.getAttribute("CountryCode")
I am evaluating struts and have a question about something I read in the
O'Reilly Jakarta Struts book. Specifically it says to not use the
synchronized keyword and to avoid Vector and Hashtable at all.
Considering that our system has been for a long time, this is actually a
huge thing for us.
Is
Looks to me like validwhen is working correctly. When you enter an "id" then
the last name validation will always fail because id is not null. Don't you
need something like the following:
1) On the "id" field check that either an "id" or "last name" have been
entered:
where..
errors.validwhen
That's really odd ... the exception at line 1183 is trying to get an
input stream for your /WEB-INF/faces-config.xml file failing, but this
code would never get called unless the resource actually exists. What
version of Tomcat are you using? (And which build of struts-faces?)
Could there be fil
Looks like you need the latest commons-fileupload.jar.
Travis
-Original Message-
From: Marwan Salam [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 10:21 AM
To: [EMAIL PROTECTED]
Subject: FileUpload Errors
Hi all,
I am using Struts 1.1 and I am trying to upload an image fi
Hi all,
I am using Struts 1.1 and I am trying to upload an image file to the
server but I keep getting the below exception. I have used the
example that comes with Struts under jakarta-struts-1.1\webapps and
did exactly like they have but still getting the exception. I have
put print statemen
On Thu, 21 Oct 2004 11:38:05 -0300, Colin Kilburn <[EMAIL PROTECTED]> wrote:
> Joe,
>
> Joe Hertz wrote:
>
> >1) is already smart enough to do what you want, so I don't
> >see the necessity of making bean:write locale sensitive. You get the right
> >text from some place, and if it's the property
Hi,
Can anyone see why the following will would not work
PersonStatus is a session object that contains a nested object
countryCode of type CountryCode and the class CountryCode contains a
string m_countryCode.
There is also a session object CountryCode that is an arraylist of
different
I have upgraded to 1.2.4 and the problem still exists. I swapped out
the .jar files, the .tld files, and verified that the .xml files were
using the correct dtd. Any other ideas about what I might be able to
check? Thanks.
Daniel
-Original Message-
From: Niall Pemberton [mailto:[EMAIL
Hi,
I have the following problem surface recently which I _think_ is
caused by an upgrade from Struts 1.1 to 1.2.4.
If an .jsp file containing an error (not the tag but a error like
(note the missing closing element /> ))
is called, I get an exception (org.apache.jasper.JasperException:
/index.
Google fails to help on this.
Has anyone else seen this error when running the struts-faces example apps?
...
...
Oct 20, 2004 11:33:35 PM com.sun.faces.config.ConfigureListener parse
SEVERE: Can't parse configuration
file:jndi:/localhost/struts-faces-example1/WEB-INF/faces-config.xml
java.io.Fi
> - Root Cause -
> java.lang.NoSuchMethodError:
> org.apache.log4j.Category.log(Ljava/lang/String;Lorg/apache/log4j/Level;Ljav
> a/lang/Object;Ljava/lang/Throwable;)V
>at
> org.apache.commons.logging.impl.Log4JCategoryLog.trace(Log4JCategoryLog.java
> :77)
>at
> org.apache
Hi
I am using struts 1.2.4 and valiator 1.1.3 , i am
having problem replacing text from resource file.
I have 2 resource files defined, and i want to get the
text message from second resource file
The struts.config is as below
definitation in validation.xml file is as below
but some how i dont
Well _ I attempted to upgrade to struts 1.2.4 and I get the following stack
trace.
Seems like it might have something to do with library mismatch? I am
continuing to try to figure it out, any help would be appreciated.
Otherwise I have to go back to 1.1 to meet my deadlines.
2004-10-19 23:01:51 W
Try getResource("/WEB-INF/myresource.xml");
-- Jeff
kjc wrote:
I have an ActionServlet that subclasses the struts action servlet. In my
init() method i'm trying to load a resource
like this.
public void init(){
URL url =
this.getServletContext().getResource("/myresource.xml");
Joe,
Joe Hertz wrote:
1) is already smart enough to do what you want, so I don't
see the necessity of making bean:write locale sensitive. You get the right
text from some place, and if it's the property file, you already have what
you need.
Unfortunately they're not in a property file. They're
I have an ActionServlet that subclasses the struts action servlet. In my
init() method i'm trying to load a resource
like this.
public void init(){
URL url = this.getServletContext().getResource("/myresource.xml");
logger.info("the config resource was " + (url != null ? "fo
Cheers for that David. Despite all my searching through the Struts
source I couldn't figure that one out.
Luckily I'm not using modules so that should work a treat.
Thanks again,
Alan.
"David G. Friedman" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> A solution in Struts v1.2.4 is
The way I have done this is:
">
and it works fine for my purposes.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thompson Marzagao wrote:
Hi all,
I am generating some form field names dynamically, based on the value
of a request variable. Since I am using Niall Pemberton's
LazyValidatorActionForm (see http://www.niallp.pwp.blueyonder.co.uk/),
I don't have a problem getting their values. The problem is vali
Shahin Hadjikuliev wrote:
Hi , list
I have a form in one action , and I want to get access to the fields
of this form in the next actions , have I any ways to do it other
then putting in session?
thanx
Propably not, since the response and request objects are new objects
each time you make a re
Hi ML...
I have a problem with my exception handling mechanisem. If I write:
I get nothing... The stacktrace causing the exception just dumps it in
the browser instead of forwarding to Error.jsp. I get the same result
trying to define exception handling in an 'action' definition... Is it
me f
Vinicius Carvalho wrote:
Hi there!
I have the following problem:
My form offers the ability to a user select from some categories,
let's say first grade, second grade
on the next step user selects subjects for each one:
first grade:
MathEnglishScience
second grade:
MathEnglish His
Tito Eritja wrote:
How to use some bean value within a html:Image src?
I've tried something like but
it doesn't work, there's something like paramName and paramProperty of
html:link tag for html:Image?
thanks in advance
tito
Why not use EL?! Then you could type:
You just have to remember to ty
Need to unsubscribe Struts mailing List.
please help me with the same.
--
"This e-mail message may contain confidential, proprietary or legally privileged
information. It
should not be used by anyone who is not the original intended recipient. If you have
erroneously
received this message,
Hi , list
I have a form in one action , and I want to get access to the fields
of this form in the next actions , have I any ways to do it other
then putting in session?
thanx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
On Thu, 21 Oct 2004 09:34:06 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Thank you for the answer but...
>
> I have no parser validating/understanding schema XML, so which one?
If you are running J2SE 1.4 or later, you already have a parser that
can handle schema parsing. Alternatively
Thank you for the answer but...
I have no parser validating/understanding schema XML, so which one?, and how
can I make my struts config understand Schema validation?
I know it can be easy for you but it is not clear for me...
Thanks
-Message d'origine-
De : Craig McClanahan [mailto:[EM
55 matches
Mail list logo