Nick Wesselman wrote:
create a custom Exception with a set of
error codes and messages?
This is what we've done in the past. We'd assign a set of error codes
in the ApplicationResources file. and throw an exception like this:
throw new MyException(12345, ...);
And catch it like this:
try {
I've done it before. Unforetunately, I can't remember everything that
had to be done. If my memory serves me correctly, I didn't have to
change anything within the application or Struts. I only had to add a
Servlet filter to set the character encoding of the request before
Struts ever sees
Jay,
Use the first action mapping, but do it like this:
action
path=/ViewSystemProperties
type=com.nci.action.telco.ViewSystemProperties
scope=request
name=SystemProperties
validate=false
forward name=success
Derek Clarkson wrote:
Hi all,
I've just subscribed to this list and would appreciate any help you can give.
I've been trying to get resources bundles to work. I have a jar file which is
used on several projects and contains some core business beans. It also
contains aproperty file with a basic
Joe Germuska wrote:
if you use:
html:messages id=msg
c:out value=${msg}/
/html:messages
it will look for an ActionMessages saved with saveErrors(), not
saveMessages()
Or change it to:
html:messages id=msg message=true
c:out value=${msg}/
I worked around it by creating a new TilesPlugin that doesn't require a
TilesRequestProcessor.
Another workaround would be to make ComposableRequestProcessor extend
TilesRequestProcessor, but that kinda sucks.
Greg
Vic Cekvenich wrote:
(thanks Batien for emailing the war).
When runing Struts
%-- comment --%
Ruth, Brice wrote:
How do I go about putting comments in my JSP code that I don't want sent
out to the browser?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Andy Engle wrote:
It's already bad enough that the Cubs lost.
+1. I have never wanted a team to win a baseball game so much in my life.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I don't remember the exact code, but a looong time ago we had to write a
Filter that created a request wrapper that properly set the character
encoding on request parameters. Maybe googling that would turn up
something.
Greg
ZYD wrote:
Hi,
I have a problem in getting the Chinese charactors
Funny, a coworker and I were discussing this very thing yesterday in the
context of J2EE vs. .NET. Neither of us have used .NET so we're just
going on our perceptions. But .NET proponents say that it is simpler
than J2EE. This is fine as long as you can handle being pigeon-holed
into a
I've only submitted a very small amount of code to this group so I'm
preaching to the choir :-)
But, now that I'm learning, there are only a few reasons why I would not
submit code back to the community:
1) The code was written under a non-disclosure agreement and I am not
permitted to give
Castor: http://www.castor.org/
Digester: http://jakarta.apache.org/commons/digester/
krthekeyan wrote:
Hi,
I found our guys suggested Castor and Digester xml parsers for xml parsing.
May i know what are these and what for we can use this.
and in which way it is different between jaxp and jaxb
The front-runners on my list is Castor and JDOM. Any (related) suggestions
are greatly appreciated.
I've used both of these, though not JDOM enough to comment on it. My
favorite XML tool right now is Digester. To me, it has a smaller
development footprint than Castor and gives you at least
+1 on NetBeans although I've not used Eclipse. I tend to stop looking
when I find something that works.
However, I find that 90% of the time it's quicker for me to just use vi
and Ant. I use NetBeans for debugging though. And if I'm forced to use
Windows for my development I'll immediately
Sun's Blueprints book makes mention of Struts when talking about MVC
Frameworks. It's about as close to an endorsement as you can get.
Greg
Gregory F. March wrote:
First a quick note. It seems that searching of the struts list archive
is not working. A search for forward in the body is
I've not used it very extensively yet, but have gotten it to work in
some simple cases. Can you elaborate on the problems you're having?
Greg
Chappell, Simon P wrote:
Has anyone had any luck getting StrutsTestCase to work? It's an extension of JUnit, which we already use on our project, but I
Jarnot Voytek Contr AU HQ/SC wrote:
Don't encourage him, he'll soon be describing a Struts app with a Flash
front-end that controls a tap specially designed for quickest Fosters
delivery... ;)
... and a really cool LISP back end...
DISCLAIMER:
This email message is for the sole use of the
The senior architect (There can be only one!! ;-)
Try to tell our people that... :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Shelly,
I'm not sure I fully understand the question, but I'll give it a shot.
Struts does not generate anything. You write the JSP's that Struts
uses. When your JSP pages are invoked the first time, the web container
(i.e. Tomcat, etc.) compiles the JSP's and renders them. That's why it
is
Using XSL, you can recreate the majority of what the taglibs do. However, that
begs the question of why you would use XSL in the first place. I've worked on a
Struts-based XSL project for about 6 months now, and we've had to recreate so
much of the Struts functionality in our architecture that
I need to
use one of forward, href or page. So now my problems are:
Try setting up the href attribute to read
href=javascript:performAction(...)
and see if that works.
Since I am not using the JSP tags right now, I'm really speculating. It
looks as if the link tag is attempting to build a URL based on the stuff
you put in the href, paramId, paramName, and paramProperty
attributes. It may be that the tag is not designed to work with
JavaScript-style URL's in
A couple of possibilities:
1) Are you storing the list or a reference to it in session as well as servlet
context? It may be that you still have a reference to the old list somewhere.
2) Are you calling context.getAttribute() again to replace your reference with
one to the new list?
3) Sanity
You could store the data in Application context as you've stated, but provide a
mechanism for that data to be refreshed (either automatically or manually)
without restarting the server. I haven't implemented this at all, but it seems
possible. I've considered using some sort of date/time stamp,
The above approach is fine if you want to have cache within a single
application. If you want to have the same cached data accessible to
different web applications, you can use a Startup class like what Weblogic
provides. You can have your cached data as instance variables of your
startup
We wrote our own logging object that logs messages either to the console or a
log file as specified in a properties file or web.xml. I beleive there are
logging tools out there that help with this, but we just wrote our own for now.
Our tool specifies a message priority (i.e. NORMAL, DEBUG,
Yes,
We are using XSL as our output format instead of JSP. Here's what we've done:
1) We created a "Message" object that is an ActionForm. All of our ActionForms
inherit from this object. This way we enforce that the "Message" object is
present for each action and is either in session or
Forgive me if this has been addressed before.
I have something like the following in my request form:
select name="searchCriteria"
option value="1"Option 1/option
option value="2"Option 2/option
option value="3"Option 3/option
/select
My Form bean looks like this:
private Integer
I believe I've solved my own problem. Please correct me if I'm wrong.
1) The reason my code wasn't working is because the set and get methods of the
bean used different types. It was not considered a valid JavaBeans property.
Changing the set/get methods to this will make it work:
om: [EMAIL PROTECTED]
Sent: Friday, March 23, 2001 10:33 AM
To: greg reddin; [EMAIL PROTECTED]
Subject: Re: FormBean population problem
Don't you have to define the setter to take a String?
setSearchCriteria(String searchCriteria)
At 09:11 AM 3/23/2001 -0600, you wrote:
Forgive me if thi
Actually, I was just joking. No "belittlement" was intended. I apologize if it
came across that way. I am one of the weird guys that actually gets pretty good
use out of vi. I think it's best to use whatever tool works for you. If you
can fly through a keyboard-based app, then do it. I've
actually, we've had great success with JBuilder Foundation. Debugging can be
painful, and, if you're used to developing in GUI environments, the interface
can be kludgey(?) at times, but it works good enough to get work done. You also
have to be careful of how it compiles things. It compiles
I have some issues with thread safety and could use some advice. Please look at
my assumptions and tell me if they are true or not.
1) Tomcat (or other container) creates one instance of the ActionServlet,
ActionBase, and all my Action classes and caches them for performance reasons.
I agree. Just filter for viruses or certain types of attachments.
-Original Message-
From: [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 11:49 AM
To: [EMAIL PROTECTED]
Subject: RE: A great Shockwave flash movie
What if you don't have a public web or ftp site?
What about
We've had success doing this with JSP. The following code snippet may help.
%
String DARK_COLOR = "DarkColor";
String LIGHT_COLOR = "LightColor";
String currentColor = DARK_COLOR;
int i = 0;
%
struts:enumerate id="searchRow"
name="searchForm" property="SearchResults"
%
35 matches
Mail list logo