Probably the best thing to do would be to use a filter. The filter could handle the
serialized object and do any preprocessing that the controller servlet would need.
-Original Message-
From: Leslie Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 2:50 PM
To: Struts Users
, Filter is not supported in J2EE1.2 (i.e. Servlet 2.2). Any other
idea? Thanks.
- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 11:54 PM
Subject: RE: Is Struts suitable for Java client?
Probably the best
I haven't used it, but Jakarta's OJB sounds interesting.
-Original Message-
From: Stephen Ting [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 5:46 PM
To: 'Struts Users Mailing List'
Subject: RE: O/R mapping tool
Anyone of you know any good O/R mapping tool that support
I have been working on extending struts mappings to allow me to pass in
information through the action mappings, but I always use on generic
action class. Struts is extensible, so you should be able to accomplish
what you want with a minimal amount of effort.
-Original
performance issues...
Craig.
From: Jason Chaffee [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: What happens when our session expires?
Date: Sun, 27 Jan 2002 22:59:04 -0800
One approach would be to not let
One approach would be to not let the session timeout. The 2.3 servlet
spec. allows you to set the timeout to -1, which means the session will
never expire.
-Original Message-
From: Craig Tataryn
Sent: Sun 1/27/2002 10:37 PM
To: [EMAIL PROTECTED]
To: Struts Users Mailing List
Subject: Re: Bug in BeanUtils.populate()
The method definitions were literally cut-and-paste from the spec.
There is no other code in the spec relating to indexed properties.
Arron.
Jason Chaffee wrote:
The spec. supports the following:
setFoo(int index, Object
:55 AM
To: Struts Users Mailing List
Subject: Re: Bug in BeanUtils.populate()
The method definitions were literally cut-and-paste from the spec.
There is no other code in the spec relating to indexed properties.
Arron.
Jason Chaffee wrote:
The spec. supports the following:
setFoo(int index
and submit it to the commons dev
list?...
...otherwise I can look into it for you.
Once again, sorry about the ignorance.
Arron.
Jason Chaffee wrote:
Again, you are missing the point. The following is allowed:
void setFoo(int index, PropertyType value)
This means that the PropertyType can
It appears there is a bug in BeanUtils.populate() for an indexed setter
of array type. It doesn't take into account that it is an indexed
setter and that the second parameter is an array because it only checks
the first parameter which is always an int for an indexed setter. This
is the
The spec. supports the following:
setFoo(int index, Object[] array)
However, BeanUtils.populate() does not. The problem is that
BeanUtils.populate() isn't checking if the second parameter is an array
or not, it only checks the first parameter. However, the JavaBean spec.
allows for
I have investigated many app servers and I have found no of them can
even compare to resin, it is by far the best. And, if you happen to
find a bug, Scott will usually fix it within a couple of days or you can
fix it yourself since you have the code.
-Original Message-
From: a b
. Performance benchmarks I saw a while back put Orion and
Resin in
the same overall performance ballpark.
- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, December 07, 2001 10:54 AM
Subject: RE: Best
Title: RE: [NEW-USER] WebLogic 5.1 sp9 deployment issue
Mark, I ran into session problems as well with sp9. We found sp9 to be quite buggy and decided to use sp8 until sp10 was released. You could try to contact BEA and get a custom fix, but by then sp10 should be released. Sorry, but I don't
Title: RE: Barracuda vs. Struts [LONG]
Ted, could you point us to the reports you mentioned in your Reflection section. I would be very interested in reading about these new performance findings.
Thanks,
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Title: RE: Extending ActionServlet
I have done this and it works great. I load several struts-config.xml files into one mapping in the servlet.
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 1:39 PM
To: [EMAIL PROTECTED]
Cc:
Title: RE: java report article says bye-bye struts
I think we all need to remember that Struts is an excellent framework and 1.0 was only released on Fri. Struts is still a work in progress, therefor many of the concerns that have been raised should be addressed in future releases.
Title: RE: FYI Weblogic 6 sp2 and stuts
I would like to add that Weblogic 5.1 sp 9 is very buggy and I couldn't get it to work either, but I am not having any problems with Weblogic 5.1 sp 8.
-Original Message-
From: Grant Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001
Title: RE: [ANNOUNCEMENT] Struts 1.0 (Final) Released
Hey Craig,
Will the documentation be updated anytime soon?
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 5:23 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED];
Title: RE: Form-based Authentication
Hi Matt and Abraham,
I would like to know why you say that you need to specify a login-form that does not have j_security-check as its action?
I am using this as the action and using Struts action classes to do the login?
-Original Message-
Title: RE: Templates
It is a bug with Weblogic. Weblogic probaly already sent newline charaters in the response, so it won't allow you to forward the request at that point. I recommend you keep the generated java file when the jsp is compiled and you will be able to see what Weblogic is
Are
you using the html:errors / tag in your jsp page?
-Original Message-From: Tong, Tom
[mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 1:03
PMTo: '[EMAIL PROTECTED]'Subject: a small
problem
Hello,
I am
new to Struts and just trying to use validate()
Title: RE: struts and tomcat4 reload causes exception
Actually, Resin will reload your classes. In fact, it will compile your java files for you if they change as well.
-Original Message-
From: Eric Rasmussen [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 11:44 AM
To: [EMAIL
reloading the classes...?Jason, Is Resin a
commercial or open-source product? Can you tell us how to enable class
reloading, as you describe?Thanks,SimonAt 01:05 PM
5/11/01 -0700, Jason Chaffee wrote:
Actually, Resin will
reload your classes. In fact, it will compile your java files
Title: RE: Philosophical question(s) related to STRUTS
I believe that developers are starting to committ to Struts. This info. should be in the archive, but here it is again.
Its noteworthy that the new 2nd edition Professional JSP book published by WROX
Title: RE: Struts debugging in Emacs/JDE
http://www.xemacs.org
-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts debugging in Emacs/JDE
Where can I download emacs/JDE from?
--- Jon
Title: RE: Basic Design Question...
Read up on the MVC/Model 2 design pattern. Struts is based on this design pattern. It much better to have one servlet (controller) and several actions (models), than to have serveral servlets.
-Original Message-
From: Prakash Dominic [mailto:[EMAIL
Title: RE: Localization
It works fine for be, even with double byte lanuguages. The one thing I had to do was to set the charset in the jsp page so it would display properly.
-Original Message-
From: Whitney Hunter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 3:27 PM
To:
Title: RE: javascript and struts
Try thg following
document.form[data.emplyeeName].value
-Original Message-
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 5:39 AM
To: [EMAIL PROTECTED]
Subject: javascript and struts
I have some HTML tags
Title: RE: html:text default values? how?
Why don't you use Struts and the MVC design pattern? You should have an action class that populates your form bean, then forwards to login.jsp. Struts will get the value from the form bean and display it on your page.
-Original Message-
From:
Title: RE: Struts debugging in Emacs/JDE
Actually, Emacs is one of the best editors you could use.
-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts debugging in Emacs/JDE
Emacs is geek
. basically
for something using just JSP is a cinch.
my options are: add the new action and a new class, maybe add a new
action that doesn't validate the form but refer to the same class?,
or add a default attribute to the html:text tag.
will have to think about it i guess.
jae
Jason Chaffee
Title: RE: ActionServlet to change language ?
One solution is for each page to have a hidden field that contains it's relative path. Then you can forard to that page after you have changed the locale.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Title: RE: problem with weblogic 5.1sp9 and example webapp
Use sp8, sp9 is really, really bad.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 8:58 AM
To: [EMAIL PROTECTED]
Subject: problem with weblogic 5.1sp9 and example webapp
Title: RE: Potential Security Flaw in Struts MVC
You can easily guard against this by using simple JavaBeans in the presentation layer and having your action class do the persistant storage from you JavaBean view layer.
-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Title: RE: problem with weblogic 5.1sp9 and example webapp
I hope you are aware that sp9 has some serious bugs and if you are counting on it following the servlet specification, well, your Web apps won't work correctly. In fact we found that sp9 loses session scope objects. If you must use
Title: RE: i18n...
I concur, Resin is an excellent app server. If you need EJBs as well, you can also use JBoss with Resin.
-Original Message-
From: Paul Tindall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: i18n...
Jason,
I
Title: RE: locating .properties files
You shouldn't be adding WEB-INF/classes to your classpath. This should be running as a web app.
You should have the following in your deployment desciptor and you should have ApplicaionResoruces.properties in the WEB-INF/classes directory:
servlet
Title: RE: struts and strict MVC
Try using extension patterns. For example,
url-pattern*.servlet/url-pattern
where every call to your servlet will have the the .servlet extension.
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02,
Title: RE: localization hor html tags
You should do it the following way:
html:submit
bean:message key=xy.test.btn.submit/
/html:submit
-Original Message-
From: Eric Rasmussen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re:
I am using nested
beans in Struts, for example:
html:text property="user.address.street" /
In this particulat
example the address bean is null. Struts still trys to call the getter and
setter methods on this null object. Does anyone know if this is the
desired behavior for Struts, or
as I can recall the struts-config.xml file is loaded and parsed in the
initMappings() method of ActionServlet. Can we really have more than
oneconfiguration file in our application.
-Original Message-From: Jason Chaffee
[mailto:[EMAIL PROTECTED]]Sent: Saturday, April 28, 2001
The
form bean will call it's reset() method for each page. Therefore, change
your implementation of the reset() method to not remove your
data.
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 9:11
AMTo: [EMAIL PROTECTED]Cc:
[EMAIL
resources under key
org.apache.struts.action.MESSAGE" error.
Thanks,
-Sue
Jason Chaffee wrote:
it should be bean:message
-Original Message- From:
Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:26 PM To: [EMAIL PROTECTED] Subject:
-struts-1.0-b1 under Tomcat. What should I do now?
Thanks,
-Sue
Jason Chaffee wrote:
Have you made any changes to
the code? The ActionServlet should be creating the resource bundle and
storing in the servlet context using this
key.What app server are you
using?
Title: RE: Can not read i18n properties file
That would be my guess as well. Take a look at the html source that is being produced and see if there is a charset header, if there isn't copy the source to a static file and add a charset header and try to load it in IE, this should give you your
changes on the code. What do you mean the app
server? I am using jakarta-struts-1.0-b1 under Tomcat. What should I
do now?
Thanks,
-Sue
Jason Chaffee wrote:
Have you made any changes to the code? The ActionServlet should be
creating the resource bundle and storing
uot; in web.xml file.
After I add this line, my jsp works. So, why is this line so important
for using bean:message lag?
Thanks,
-Sue
Jason Chaffee wrote:
I find the following configuration easier:
Simply put the the resouce file in /WEB-INF/classes
directory.
Then c
The
best way to handle errors is to name them separatly and then access each one
indiviually in your jsp. See the Java docs for more info on error
handling. It covers this approach quite well.
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01,
ed in teh deployment
descriptor to be precompiled?
-Original Message-From: Jason Chaffee
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 3:41
PMTo: '[EMAIL PROTECTED]'Subject: RE:
"html:message" tag
Your ActionServlet needs to be loa
Title: RE: Why need to remove FormBean ??
I don't know the exact reason it is being done, but it may be a safety net in case the container doesn't remove it properly. As many of you have probably come to find out, many of the app servers haven't implemented every part of the servlet
Title: RE: html:message tag
it should be bean:message
-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: html:message tag
Hi,
I am trying to build form using struts taglib. But I get no such tag
to do with J2EE web application deployment?? Thank you very
much in Advance.
Uday.
--
Jason Chaffee
Software Engineer
MetaTV Inc.
Phone:(415) 289-8516
Title: RE: Creating html:hidden ... dynamically
Is there a reason you don't want to store this information in a bean, It makes more sense than storing it in hidden fields. You are essentially doing your own session scope management. Why not let your container do this for you?
-Original
Title: RE: Where to forward when validate returns false in wizard style forms?
Yes, it would be better to have an action for each step in the process. That is what MVC/Model 2 is all about.
-Original Message-
From: Seth Ladd [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001
Title: RE: Returning from a form apge
If you are using the MVC design pattern then you will have an action associated with the save. What I have done is keep a hidden field for the referring page, which keeps track of the mapping key. This way I am able to forward to the jsp that originally
// return null;
}
}
M. Amin
--
Jason Chaffee
Software Engineer
MetaTV Inc.
Phone:(415) 289-8516
suspicious
that the lookup time of the ActionMapping might become unsatisfactory when
you reach a certain number of mappings. Does anyone have any statistics?
Would you all suggest a servlet for each site in this case? Keep
in mind that all fo the sites share the common core enterprise framework.
--
Jason
+ + p.getProperty(s));
System.out.println();
}//while
}//method
private void displayWeblogicProperties(){
}
}
- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: [EMAIL
Title: Using dynamic values with checkboxes/multiboxes
I want to have a group of checkboxes that all have the same name (multiboxes in Struts), but I want the value to be an iterator from an array.
For example I have an array of size 3 so i want to create the following 3 checkboxes:
input
Title: RE: ActionForm validation
You can set the scope of the bean in your action mappings in the struts-config.xml. See below:
action path=/action/saveOptions
type=com.foo.SaveOptionsAction
input=/action/options.jsp
name=form
scope=session
validate=true
forward name=somePage
Title: RE: System Console Messages
Try 0 for the debug value.
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 1:46 PM
To: [EMAIL PROTECTED]
Subject: System Console Messages
Does anybody know how to get rid of all those messages
when
Title: RE: html form widgets not appearing
What does the html source look like? You also might want to check the method loadLocale() and make sure the message strings are being loaded from the file.
-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April
trying to read the key. I saw the
file it was trying to read was correct by doing a
println(getClass().getResource(my.properties)...
in my jsp file.
I'll look at this loadLocale to see how and where to
use it. Thnxs.
- Original Message -
From: Jason Chaffee
To: '[EMAIL
/apache/struts/util/LocalStrings_en.properties
name = org/apache/struts/util/LocalStrings.properties
key = message.bundle
key = lookup.bean
key = lookup.target
key = lookup.scope
key = write.io
key = lookup.method
key = lookup.access
- Original Message -
From: Jason Chaffee [EMAIL
it's up to the app server to pass the found resources to
struts. I thought I passed over some code where struts did the reading of
params from web.xml? Therefore making it a struts problem.
- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday
66 matches
Mail list logo