how to reuse beans?
You should be making your beans without any thought of the web whatsoever. THEN your
Actions can calls your beans. This way, the Actions are clients of your API. By
having an API containing business logic (instead of business logic in your actions),
you promote reuse.
Online is just the icing.
Right! The business logic of the application should be UI agnostic. The logic
shouldn't know if it was invoked from a console application, a Swing gui app, or a web
(Struts!) application. The business logic is (or should be) the same.
-Original Message-
http://www.google.com/search?q=java+web+hosting
-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 11:26 AM
To: [EMAIL PROTECTED]
Subject: Popular We Hosting???
Hi all,
Do you know of a popular webhosting that host Java's WebApps?
Robert Tran, you were griping about config files and the need to go between code (your
Actions) and the xml config files. Other developers have scratched that itch already.
Check out XDoclet:
http://xdoclet.sourceforge.net/
This piece of software will generate your configuration files for
I agree, leave all the web specific stuff out of it.
I wrote a little program that ran on a timer and broke it down into two simple
classes. One class does the actual work, the other class wraps the first one and
implements the Struts Plug-In and Runnable interfaces. Simple, easy.
Putting
Frames are awful and not at all accessible to those with visual disabilities. You
should first rethink your need for frames.
But if you must use frames, read http://www.w3.org/TR/REC-html40/present/frames.html
You can include scrollbars in your frames. They appear when the content is bigger
I have a simple User object with two boolean values in the class:
locked
active
I use the 'isLocked()' and 'isActive()' convention instead of 'getLocked()' and
'getActive()'.
Does html:radio work with 'is' instead of 'get'? I am having page compilation
problems telling me that
'property' doesn't work with 'isBoolean()' type
method call?
It's working for me, Struts 1.1 Tomcat 4.1.29. My method is called
isActive(). Can you post your JSP, User source,struts-config.xml?
-daniel
Daniel A. Torrey
daniel at datorrey dot net
Quoting Turansky, Mark [EMAIL PROTECTED
I have a Tiles Controller adding an attribute to the ComponentContext. This piece
works fine and I can see the new attribute in the Controller class. The attribute is
called message, which is a string.
context.putAttribute(message, this is the message!);
The problem is the JSP that uses the
I believe that you are not forced to use a relative URL. You can put
http://www.mysite.com/index.html; as the Forward path and it should work just fine.
If, for whatever reason, the Forward to an absolute URL does not work, you can always
use
response.redirect(actionForward.getPath())
in
I just tried (and failed) using a fully qualified URL as the ActionForward. The
exception told me that my path did not start with a /
So here is an action that will use a redirect instead of an ActionForward. This
works:
/**
* a simple action to invalidate a session and return
* the
, 2003 2:50 PM
To: Struts Users Mailing List
Subject: RE: accessing static html from struts-config.xml
or use
forward name=home path=http://www.mysite.com; redirect=true/
which would do the same thing.
-Original Message-
From: Turansky, Mark [mailto:[EMAIL PROTECTED]
Sent: Wednesday
12 matches
Mail list logo