use the form-login-page and
form-error-page in the web.xml file?
Thanks.
--- Craig R. McClanahan [EMAIL PROTECTED]
wrote:
Caroline Jen wrote:
But, I do not want to use BASIC authentication.
I
have many different roles and hundreds of
people
per
role. Users' name, role, etc
I use the Tomcat. I configured the Tomcat JDBCRealm
so that I can use programmic security testing, such as
isUserInRole(), in my program.
Because Tomcat JDBCRealm is form based, I inserted the
login-config and its sub-elements in my web.xml file
(see below). As we know, the form-login-page and
app that might help you out:
http://raibledesigns.com/wiki/Wiki.jsp?page=SecurityExample
HTH,
Matt
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 4:45 PM
To: [EMAIL PROTECTED]
Subject: Container-Managed Authentication
login
Todd,
I am uncertain if this piece of information will
be of any use to you -- when I first tried to setup
JavaMail, I followed the online instruction and put
the mail.jar and activation.jar in my
j2sdk1.4.1_02\jre\li\ext folder. The JavaMail did not
work. Thereafter, I got an advise from
-power.gif' alt='Powered by Struts'
/BODY
/HTML
--- Kwok Peng Tuck [EMAIL PROTECTED] wrote:
You might want to put System.out.println(Line
[number]) ; to see
the flow in your action. BTW did you actually put
anything(like hello
world) in Welcome.jsp ?
Caroline Jen wrote:
Which resource
did you actually put
anything(like hello
world) in Welcome.jsp ?
Caroline Jen wrote:
Which resource file needs to be updated? I have
checked the application.properties. Nothing in
that
file is relevant to my problem.
--- Abhijeet Mahalkar
[EMAIL PROTECTED] wrote
Before I started converting my web app to STRUTS, I
used a DataSource to do connection pooling. I had the
Tomcat server.xml file configured. My servlet accessed
a helper class in which I had Context.lookup for the
JNDI name. All worked well.
Now that I am using STRUTS. I try to authenticate the
I am experimenting a basic application - logon. I got
the first two screens working without problem.
However, the third screen displays a blank page (no
error message). I am having a very difficult time to
figure out the problem; henceforth, seeking help.
Here is the history of my application:
Which resource file needs to be updated? I have
checked the application.properties. Nothing in that
file is relevant to my problem.
--- Abhijeet Mahalkar
[EMAIL PROTECTED] wrote:
have u updated the Resource files... ?
abhijeet
- Original Message -
From: Caroline Jen [EMAIL
Your help is greatly appreciated: what could lead to
NoClassDefFound Error:
org/apache/struts/legacy/GenericDataSource?
the error message is HTTP Status 500. The root cause
is:
java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
Here is the log:
description: The server
Your help is greatly appreciated: what could lead to
NoClassDefFound Error:
org/apache/struts/legacy/GenericDataSource?
the error message is HTTP Status 500. The root cause
is:
java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
Here is the log:
description: The server
Your help is greatly appreciated: what could lead to
NoClassDefFound Error:
org/apache/struts/legacy/GenericDataSource?
the error message is HTTP Status 500. The root cause
is:
java.lang.NoClassDefFoundError:
org/apache/struts/legacy/GenericDataSource
Here is the log:
description: The server
file. I don't believe the legacy components are
included in the Struts 1.1 jar, so if you're using
that stuff you'll need to get it separately:
http://archive.apache.org/dist/jakarta/struts/struts-legacy/
HTH,
-= J
-Original Message-
From: Caroline Jen [mailto:[EMAIL
I successfully got the Artimus_1_1 welcome page. I
clicked LOGON buttion and the next page was displayed.
I selected Create Resources from the Manager
options and clicked on GO. I had
http://localhost:8080/artimus_1_1/do/menu/Manager
displayed in the address bar with the following
message shown
I double checked that
1. struts-logic.tld is in the
C:\jakarta-tomcat-4.1.18-LE-jdk14\webapps\MyApplication\WEB-INF\lib
folder
2. in my web.xml file, I have
taglib
taglib-uri/tags/struts-logic/taglib-uri
taglib-location/WEB-INF/lib/struts-logic.tld/taglib-location
/taglib
3. in my
I am following Ted Husted's example code and setup;
therefore, I do not think it is the problem. Those
TLD files can be in the WEB-INF/lib folder.
--- John Cavacas [EMAIL PROTECTED] wrote:
Shouldn't those TLD files be in WEB-INF/ ? not
WEB-INF/lib ...
At 07:49 PM 19/09/2003 -0700, you wrote:
I have problem to understand the action mapping shown
below:
code:
-
action path=/Menu name=menuForm
type=org.apache.struts.scaffold.ExistsAttributeAction
parameter=application;HOURS
forward name=success path=.article.Menu/
forward
I am studying the code in Artimus_1_1 to make sure
that I understand how things actually work. I am lost
at the beginning of the application. Please kindly
help me. The index.jsp of the application contains
two lines:
code:
--
%@ taglib
This is the application I am studying. The index.jsp
of the application contains two lines:
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:redirect forward=welcome/
What is the meaning of this redirect forward? Is the
browser asked to submit a new request to the path with
logical name
Hi, in my opinion, you should pay attention to this
part of your log file:
Unable to connect to any hosts due to exception.
and
java.net.BindExceptioncom.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346
It says that the jdbc driver is not registered.
--- Rajat Pandit
Hi, I am new to Struts. I have read the logon example
presented in Husted's Struts in Action and deployed
the logon.war on my machine. Everything works exactly
like what says in the book.
However, I am confused --
My question is why I entered
http://localhost:8080/logon
and the welcome.jsp is
I have
1. Tomcat 4.1.18-LE-jdk14 up and running in the
Windows XP Pro environment;
2. I am using Struts-1.1-rc2;
3. I have MySQL installed in my machine. And I have
used the Tomcat connection pool to retrieve data
from the MySQL database before.
I tried to deploy the
I tried to deploy the artimus_1_1 application and I
followed the instructions in the README file that was
bundled with the artimus_1_1.war.
I successfully logged into the application, using the
username: artimus and password: g0rd0n.
I continued to followed the instructions. I selected
Create
Rick, thanks a lot for taking the trouble to find the
web link to the Husted discussion forum. I have
posted my question there and hoping to get some
instructions soon. I appreciate your help.
Caroline
--- Rick Reumann [EMAIL PROTECTED] wrote:
On Wed, Aug 20,'03 (10:38 PM GMT-0700), Caroline
Hi, I am new to Struts. I would like to get a look
and feel of the Artimus example (artimus_1_1.war) in
the Struts in Action provided by Husted.
I have the Tomcat 4.1.18 installed and functioning in
my machine. I also have downloaded the Ant.
Where can I find instructions to quickly deploy the
Can you gives us more information, like what version
of Struts you are using
and what application container you are employing?
Mark
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 5:36 PM
To: [EMAIL PROTECTED]
Subject: Need
I have gone to his book site but cannot find a
discussion forum. I am hoping that Ted would notice
my post here and give a hand.
--- Rick Reumann [EMAIL PROTECTED] wrote:
On Wed, Aug 20,'03 (04:55 PM GMT-0700), Caroline
wrote:
Hoping Ted noticed my post and provides guidance
to
setup
Hi, I am building a web site. The primary functions
of this site are for authors to submit their research
papers. The research papers will go through a
screening process (screened by peers in the field).
Visiors can view the published articles online.
Authors and peers are the registered users
Does the Struts 1.1 BeanUtils class supports
transferring data between String and native types on
the business bean side?
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
What is in the log file? Log files records errors.
There may be a clue.
--- todd thorner [EMAIL PROTECTED] wrote:
Hi and thanks,
Ok, I have reached this far in my logon page
development...
The first JSP page comes up fine, showing me a form
html:form action=/LogonSubmit with a rendered
Did you put:
%@ taglib uri=/WEB-INF/struts-bean.tld
prefix=bean %
in your FileName.jsp?
--- message message [EMAIL PROTECTED] wrote:
You probably need to reload your application after
having made
the entry in the web.xml file.
From: Vinayak Birari
[EMAIL PROTECTED]
Reply-To: Struts
Hi, Rick:
Take a look at
http://www.reumann.net/do/struts/main
In Lesson II, you'll find an example of how to use the
html:select tag
Lesson II-4 Create ActionForm - The UI element for
entering a value into the department field will be a
drop-down list.
Lesson II-6 Create DepartmentBean -
I am doing testings step by step. I simply want to add
a drop-down menu feature to something that works OKay.
I am a newbie to struts. I do not know where to look
for my mistakes when I encounter problems.
Something is wrong in my .jsp page. This .jsp page had
worked fine before
name
org.apache.struts.taglib.html.BEAN
Hope, that will help!
Dirk
-Ursprüngliche Nachricht-
Von: Caroline Jen [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 21. Juli 2003 21:18
An: [EMAIL PROTECTED]
Betreff: Error Using select tag To Create Drop-Down
Menu
I am doing
Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 8:15 PM
To: [EMAIL PROTECTED]
Subject: package org.apache.struts.action Does Not
Exist?
I have been using Struts (jakarta-struts-1.1-rc2)
for
about two weeks. I have tested a number of things
and
made
I want to put the label and value pairs of the 51
states of the U.S. in a file, read in the file into an
ArrayList, and then create a drop-down menu in a .jsp
file.
Question 1. Where is the proper place to put those
label and value pairs? Create a table in the
database? or put those pairs in a
I have been using Struts (jakarta-struts-1.1-rc2) for
about two weeks. I have tested a number of things and
made them work.
Today, while I was trying to compile a model bean (I
have compiled it before without any problem), I got
compilation error:
package org.apache.struts.action does not exist
if you want to set one option as default in a
blank form, set the
actionform property to the value of the option
you want. Preferably in
the action.execute() so you don't muddle your
jsp unnecessarily.
Adam
Caroline Jen wrote:
I have similar questions. What is the syntax
I am trying to put entries in the
MessageResource.properties file for the error messages
generated by the automatic validation.
I used mask to provide a number of validation rules.
How do I specify those error messages? (I used mask
for a number of text field to report various errors.)
I
I am trying to insert entries in the
MessageResources.properties file for
the error messages generated by automatic validation.
I could find examples for email and date (see below):
errors.email={0} is an invalid e-mail address.
errors.date={0} is not a date.
What should the messages look like
I have similar questions. What is the syntax of the
html:option tag?
Just take the example given by you, are the codes
shown below correct? Will the default selection
shown?
html:select property=select1
html:option property=1 labelProperty=first
html:option property=2
My LogonView.jsp displays a blank page. I have no
idea why nothing is written while the
MessageResources.properties file is found.
I would have gotton HTTP Status 500 if the
MessageResources.properties is not found or the value
of the corresponding key in the bean:message tag
cannot be picked
My LogonView.jsp displays a blank page. I have no idea
why nothing is written while the
MessageResources.properties file is found.
I would have gotton HTTP Status 500 if the
MessageResources.properties is not found or the value
of the corresponding key in the bean:message tag
cannot be picked
I am trying to run my first Struts -- using the
tutorial Login example at
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts
There is a MessageResources.properties file that
allows for all strings displayed in an application to
be defined. Nonetheless, After I
entered
taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib
taglib
taglib-uri/WEB-INF/struts-template.tld/taglib-uri
taglib-location/WEB-INF/struts-template.tld/taglib-location
/taglib
/web-app
---
Caroline Jen
--- James Mitchell [EMAIL PROTECTED
101 - 145 of 145 matches
Mail list logo