Bob,
if you are using the 1.0 version of Struts, the reset() method
which is called before ActionForm fields are populated could be a solution
for you.
since no values are sent when a checkbox is unchecked, you can set a boolean
value
which is associated with the checkbox to false in the reset()
I didn't see it anywhere but a suitable issue were
an UML view about interactions between all the classes of the Strut's Framework.
Has anyone never drawed Sequence Diagrams ? The Activity Diagram in http://www-106.ibm.com/developerworks/library/j-struts/?dwzone=jav
is not enough complete
Hi everybody.
I am trying to include an additional attribute (which I want to use in my
application) in the action tag in struts-config.xml.
I had to do three things:
1. I subclassed ActionMapping and provided a getter and setter method for this
additional attribute.
2. I specified the new
As an alternative you can do the following;
In your ActionForm class put the following code;
private int button = 0;
public int getButton() {
return (button);
}
public void setButton(int index, String name) {
button = index;
}
In the jsp page name your submit
Hello
everyone,
I have been trying to run the
examples that come with the latest version of Struts on Tomcat. However, when I
point my browser at the example I get an internal servlet error (500) which
offers this bit of information: javax.servlet.ServletException: sun/tools/javac/Main. It
You
either need to use JDK1.3 or include JAVA_HOME/lib/tools.jar in the
classpath of the servlet container. I'm surprised that the Tomcat startup
scripts did not do this for you.
-Original Message-From: Scott Fitzgerald
[mailto:[EMAIL PROTECTED]]Sent: Monday, March 26, 2001
I don' use servletexec myself but some people on the mailing-list got a similar
problem.
You can try the solution given in this mail:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00991.html
Jean-Noel
- Original Message -
From: burhan arshad [EMAIL PROTECTED]
To:
Hello
again,
Thank you for
your quick reply. I appended my classpath like this: set
path="C:\jdk1.3\lib\tools.jar";%PATH%; where C:\jdk1.3 is my JAVA_HOME. I
restarted my computer and tried again but got the same error. I would appreciate
any extra suggestions.
Thank
you,
Scott
Hi.
I use the following code to insert a new record in
the database.mDataSource is an instance of GenericDataSource, configured in
struts-config.xml
Connection conn =
null; try
{ conn =
mDataSource.getConnection();
Statement stmt =
OK. That's kewl, but is Tomcat using your environmental
CLASSPATH? Tomcat sets up it's own classpath stuff. Look closely at
the CLASSPATH that Tomcat echos to the console on startup and visit your
tomcat.sh or tomcat.bat for adjustments. I, personally, like to have my
environmental
hello,
in the walking tour off the example demo I have found :
"Note that direct access to the DatabaseServlet should really be handled
by a business-logic bean, and NOT by LoginAction. To quote the example's
author "This should be considered a bug in the example."
Interesting, should we have
I was wondering what the number in the load-on-startup tag inside web.xml
represents?
load-on-startup2/load-on-startup
Thanks,
Josh
__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
Load-on-startup number represents the order in which servlets should be
loaded during the app server startup.
For eg:
If you have 5 servlets in your application, you can number the
Load-on-startup from 1 to 5 and the servlets will be loaded in that order. 1
will be loaded first, 2 next and so
Hello yet
again,
Here is exactly
what the console echoes:
Including all
jars in "C:\tomcat"\lib in your CLASSPATH.
Using
CLASSPATH:
"C:\tomcat"\classes;
C:\tomcat\lib\ANT.JAR;
C:\tomcat\lib\JAXP.JAR;
C:\tomcat\lib\SERVLET.JAR;
C:\tomcat\lib\PARSER.JAR;
C:\tomcat\lib\WEBSER~1.JAR;
Hi,
I tried to build struts from the source, I got the
following error, would anybody give me some thoughts?
Thanks,
-Sherman
=== error message
C:\selfProject\tomcat\jakarta-struts\build.xml:178:
java.lang.NoClassDefFoundError:
javax/xml/transform/Source
---
Hi.
Thanks for all the replies, but not sure I explained myself well enough first
time round! My problem is not so much the how-to of security, but the fact that
I only require a log-in *sometimes*. If accounts are set-up on the related
server, we need to honour these and have the user
On Mon, 26 Mar 2001, Matthias Bauer wrote:
Hi everybody.
I am trying to include an additional attribute (which I want to use in my
application) in the action tag in struts-config.xml.
I had to do three things:
1. I subclassed ActionMapping and provided a getter and setter method for
On Mon, 26 Mar 2001, Christophe Vigny wrote:
hello,
in the walking tour off the example demo I have found :
"Note that direct access to the DatabaseServlet should really be handled
by a business-logic bean, and NOT by LoginAction. To quote the example's
author "This should be
On Mon, 26 Mar 2001, Josh wrote:
I was wondering what the number in the load-on-startup tag inside web.xml
represents?
load-on-startup2/load-on-startup
Thanks,
Josh
This is defined in the servlet specification
http://java.sun.com/products/servlet/download.html. It defines an
What really happens is actually dependent on which JDBC driver you are
using. I always run my apps with auto-commit turned off, and explicitly
commit or rollback the transaction at the end, because I prefer this to be
explicit in the application level code.
Craig
On Mon, 26 Mar 2001 [EMAIL
I find that application reloading with Tomcat 4 b1 simply doesn't work for me,
although others on
this list seem to have no problem. (I do notice that Tomcat 4 isn't in the
installation special
instructions list). I would appreciate any help.
I have tomcat configured as follows:
- I had to
On Mon, 26 Mar 2001 [EMAIL PROTECTED] wrote:
Hi.
Thanks for all the replies, but not sure I explained myself well enough first
time round! My problem is not so much the how-to of security, but the fact that
I only require a log-in *sometimes*. If accounts are set-up on the related
On Mon, 26 Mar 2001, William Jaynes wrote:
I find that application reloading with Tomcat 4 b1 simply doesn't work for me,
although others on
this list seem to have no problem. (I do notice that Tomcat 4 isn't in the
installation special
instructions list). I would appreciate any help.
Craig and others,
I am sorry to "touch" the old question. I have a problem with this tag to display
altKey (not displayed at all).
Here is an extract from my resourse file:
image.btnEnter=/images/button_enter.gif
altkey.btnEnter=btnEnter
And this is a call from jsp:
html:image
Craig,
Thanks for the reply. Again, I'm not sure I explained too well. Whether I
require users to login is determined *once* - when the application first starts,
depending on the underlying connected server. If they are required, whoever
uses the app once it is up and running will have to
On Mon, 26 Mar 2001 [EMAIL PROTECTED] wrote:
Craig,
Thanks for the reply. Again, I'm not sure I explained too well. Whether I
require users to login is determined *once* - when the application first starts,
depending on the underlying connected server. If they are required,
Hi,
Am having troble forwarding to a JSP page from an applet. Here's a sample
piece of code from the applet
param name="1" value="Client Demographics;html:link forward="home"
target="bottom"/html:link"
"Client Demographics" is the name of the menu button, and the next bit
should then
When I recompile a class, I have waited at least 15 seconds. But no reload happens.
I've checked
that the class files are really getting updated and the timestamp is getting updated.
There is
nothing special written to the logs. At tomcat startup time the logs do indicate that
"Reloading
I have some additional information for anyone trying to run struts 1.0
based apps with WebSphere 3.5.2/3:
There two main issues that have come up with the move from 0.5 to 1.0
1. The call to ServletContext.getResourceAsStream() in ActionServlet fails
to find the "/WEB-INF/struts-config.xml"
Hi. (new to the list)
I have a session bean that returns an Array of Row objects.
The Row object has all the proper getXxx methods.
I use Iterate to cycle through the Array of Row objects on my JSP page.
Question.
If I have locale specific information to display from the Row object should
I.
Hello,
How do I generate error messages dynamically. Say for example if the
error property is not
predefined in the ApplicationResources.properties. Also does html:errors/
takes any arguments?
If it takes some arguments how can I use it? Also is it possible to have
multiple html:errors/
What is the best way to uncheck a Struts checkbox? Is there a certain option
I can use from within the JSP tag to account for this? What I have been
doing up until now is checking for the existence of a request parameter in
my Action class, and if it does not exist then manually setting the
We have a number of projects, big and small starting up that will be using
Struts as a framework. Our main concern with this is how to best estimate
with it. Does anyone have any experience with estimating with Struts? For
example, how long it takes to do the following:
1. A basic screen
We are just starting to use Struts; I apologize if this question stems from
not reading all the docs.
I am trying to setup a jsp (index.jsp) with a html:form as shown below:
html:form action="showView.bws" focus="viewName"
The corresponding action mapping is:
form-bean
The Jakarta Jyve FAQ is still ailing, but the rights on my own account
are now working, and I can add, modify, and delete entries. I've already
posted the "Quickstart FAQ", and will start adding some more questions
as time allows. Of course, we hope that the Jyve installation will
eventually be
Hello Kyle,
What kind of development envior. are you using?
-Original Message-
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 5:09 PM
To: Struts (E-mail)
Subject: Estimating Projects with Struts
We have a number of projects, big
it is impossible to log into the cvs :
D:\java\strutc:\bin\cvs -d
:pserver:[EMAIL PROTECTED]:/home/cvspublic
login
(Logging in to [EMAIL PROTECTED])
CVS password: anoncvs
cvs [login aborted]: could not open //.cvspass: No such file or
directory
D:\java\strutc:\bin\cvs -d
:pserver:[EMAIL
Hello
what is support for secure authorization in Struts? Is SSL included? Can you
direct me to some example?
thanks in advance,
Bajo
38 matches
Mail list logo