}/
I only use the EL tags, so I just use bean as the
tag prefix eg %@
taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld
prefix=bean %
Caroline Jen wrote:
I tried both of your suggestions. For example, I
have
[code]
.
BODY
c:set var=titleKeytiles:getAsString
name=title
: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 4:52 PM
To: Struts Users Mailing List
Subject: Re: Tile Problem
I followed your suggestion. Now, when I ran my
application, I got
article.Main.title???en_US.???
displayed in the browser. Still, cannot pick up
In general, the tile works fine for me except the
title piece.
[CODE]
.
BODY
tiles:getAsString name=title/
tiles:get name=header/
tiles:get name=message/
tiles:get name=content/
tiles:get name=navbar/
/BODY
.
[/CODE]
In my tiles-def.xml, I have:
[CODE]
definition name=.article.Menu
//c:setbean:message
key=${titleKey}/
Caroline Jen wrote:
In general, the tile works fine for me except the
title piece.
[CODE]
.
BODY
tiles:getAsString name=title/
tiles:get name=header/
tiles:get name=message/
tiles:get name=content/
tiles:get name=navbar/
/BODY
In my Struts application, postForm is of the
DynaActionForm type:
DynaActionForm postForm = ( DynaActionForm )form;
Later on, I want to save one of the fields receiver,
which is a String, in the request context. Which is
the following is the correct syntax?
request.setAttribute( Receiver,
I have code like:
private static final String OPTION_FILE_NAME =
mvnplugin_mvnforum_MVNForumConfig;
static
{
ResourceBundle res =
ResourceBundle.getBundle(OPTION_FILE_NAME);
MVNFORUM_HOME =
res.getString(MVNFORUM_HOME).trim();
WEBMASTER_EMAIL =
I am using Struts and internationalization. I have
code like:
private static final String OPTION_FILE_NAME =
mvnplugin_mvnforum_MVNForumConfig;
static
{
ResourceBundle res =
ResourceBundle.getBundle(OPTION_FILE_NAME);
}
And mvnplugin_mvnforum_MVNForumConfig is a
properties
I would like to give a try. I live in Manassas, VA.
Please find my resume in the Word format in the
attachment.
Caroline Jen
Tel: 703-369-3257
--- Yibing Li [EMAIL PROTECTED] wrote:
Folks,
We are actively looking for java/struts/jboss
developers here at GNX
(www.gnx.com). If you have
;
}
}
ThreadHandler th = new ThreadHandler();
BeanUtils.copyProperties(th, postForm);
th.insertThread();
hth,
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 11:48 AM
To: Struts Users Mailing List
Subject: RE: All
= bean.getSender();
// insert code here
}
which from a design perspective, I'm not sure why
you would want to do it
this way.
hth,
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 10:27 PM
Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 8:48 AM
To: Struts Users Mailing List
Subject: RE: All The Bean Properties Are Null in
the Business
Tier!!! (Used
BeanUtils to Convert DynaValidatorForm)
Thank you for your comment, which
Hi, my program compiled OKay. When I ran the
application, somehow, the properties of my
DynaValidatorForm are not passed from the action class
to the business tier and then to the data access tier.
Please help me taking a look at what went wrong.
It looks that the validation worked fine:
with
DynaForms and
have no problems. Usually when I do, I find that my
data member
names don't correspond.
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 1:42 PM
To: [EMAIL PROTECTED]
Subject: All The Bean Properties
() all the time with
DynaForms and
have no problems. Usually when I do, I find that my
data member
names don't correspond.
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 1:42 PM
To: [EMAIL PROTECTED]
Subject: All
Hi, my program compiled OKay. When I ran the
application, somehow, the properties of my
DynaValidatorForm are not passed from the action class
to the business tier and then to the data access tier.
Please help me taking a look at what went wrong.
It looks that the validation worked fine:
variable has no way to know properties are
associated with it. So
yes, once you cast it to PostForm calls to
BeanUtils.copyProperties() can and
will work properly.
Hope this helps,
-Joe
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Sunday, January
: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 04, 2004 2:46 AM
To: Struts Users Mailing List
Subject: RE: Please Help - ClassCastException
I am still confused...
I have a jsp that provides text fields for user to
fill out information. All the information is
passed
The statement shown below encountered a
ClassCastException:
PostForm postForm = ( PostForm )form;
I cannot figure out the reason. Please help.
Allow me to show more code of the class where the
exception occurred:
...
import org.apache.struts.action.Action;
import
.
Pedro Salgado
On 04/01/2004 03:22, Caroline Jen
[EMAIL PROTECTED] wrote:
The statement shown below encountered a
ClassCastException:
PostForm postForm = ( PostForm )form;
I cannot figure out the reason. Please help.
Allow me to show more code of the class where
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 11:04 PM
To: Struts Users Mailing List
Subject: Re: Please Help - ClassCastException
Thank you for trying to help. I have added
import org.apache.artimus.message.PostForm;
to my action class. I
I followed the MVC design. I give the data access
activity (insertThread) to the ThreadHandler class.
And a bean is passed as a parameter of the
insertThread method. However, I got compilation error
saying that
insertThread(java.lang.String, java.lang.String, ... ,
java.sql.Timastamp, int,
I am stuck and need your knowledge and experience.
When the button is my JSP is clicked, there are two
action forms involved, threadForm and postForm.
The threadForm is populated by hidden fields and text
fields that are passed from the JSP. All the
properties of the threadForm are to be
One simple question - if my form bean is of the
DynaValidatorForm type in the struts-config.xml and
each propery of the form is specified in the
validation.xml, do I have to call the validate method
in the form bean? E.g. Do I still have to do the
following in my form bean that extends the
My JSP provides several text fields for visitors to
fill out. And my form bean stores those information;
for example:
public String getThreadTopic() {
return threadTopic;
}
public void setThreadTopic(String threadTopic) {
this.threadTopic = threadTopic;
}
Thank you for your response.
According to my understanding of your advice, if I
want to pass a hidden field from JSP to a form bean, I
must have name=myFormName in the JSP's html:hidden
tag? Please confirm.
Another additional property that is to be assigned a
value in my form bean is now
I am passing a hidden field from my JSP to my form
bean:
html:hidden name=postForm property=parent
value=0/
Is the property parent considered a String in the
form bean? Do I have to use
BeanUtils.copyProperties( postDTO, postForm );
to convert that property to a primitive type int?
;
prefix=c %
and then your c:x .../ actions will work.
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 9:45 PM
To: Struts Users Mailing List
Subject: RE: How To Output the Value of a String
That Is Passed From
Another JSP
.
The only idea I have is to check double-quotes
correctly.
Fred
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: mercredi 17 décembre 2003 07:41
To: [EMAIL PROTECTED]
Subject: Please Help With This Error Message
Please help me to figure out this error
Please help me. I have tried to do it for days. I
just could not get it right. I got this error
message:
[ServletException in:/article/content/postForm.jsp]
Cannot find bean cr in scope session'
In my view.jsp, I put a String in a session object:
html:form action=/list/Message
c:set
in the query string and Struts will
auto-populate the form
in JSP#2.
3. Have the action that processes JSP#1 access and
populate the form used
in JSP#2 with the property then forward to JSP#2.
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent
do you save the form cr in session scope?
Does your action use 'scope=session' or are you
doing a
'request.getSession().setAttribute(cr,cr);'
in the first action?
Regards,
David
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 8
be accessed. If it can, then do you
have all of your
tag library directives in your pages?
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 8:40 PM
To: Struts Users Mailing List
Subject: RE: How To Output the Value
creator = articleForm.getCreator();
request.getSession().setAttribute(creator,
creator);
return mapping.findForward(success);
In JSP#2 you could do something like this:
c:out value=${creator}/
robert
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent
I tried to create a variable, assign a value to that
variable, and pass the variable as a hidden field.
What I did was:
html:hidden property=parent value=0
Why do I get this error message in the browser?
'According to TLD, tag html:hidden must be empty, but
is not'
My JSP #2 receives a hidden field passed from JSP #1:
html:hidden property=creator/
In the JSP #2, I have a text field:
html:text property=creator size=82 maxlength=25
tabindex=1/
and I want the value of the hidden field to be the
text in the text field of the JSP #2. Please advise
how to do
Please help me to figure out this error message that I
got in the browser: equal symbol expected.
The error complains about this statement in my JSP:
bean:define id=author name=creator
scope=session type=java.lang.String/
and the above statement is intended to retrieve the
string creator from a
The statement below in my JSP can write out the value
of the creator property in the articleForm:
bean:write name=articleForm property=creator/
I want to pass the value of the creator in a session
object. What should I do in my JSP?
%
String creator = (String)articleForm.getCreator;
,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 2:56 PM
To: Struts Users Mailing List
Subject: RE: Please Help! Unable to Pass A Hidden
Field To scaffold.Proces
sAction
I pass two hidden fields: username and keyName
: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 2:56 PM
To: Struts Users Mailing List
Subject: RE: Please Help! Unable to Pass A
Hidden
Field To scaffold.Proces
sAction
I pass two hidden fields: username and keyName
at
the
same time
, initialize the
username variable to something ie. XX. and
re-run your app. This will show if your setUsername
is
ever called.
-Richard
--- Caroline Jen [EMAIL PROTECTED] wrote:
I do not fully understand what you say about null
or
null. Anyway, I did try to write out values
Yee [EMAIL PROTECTED] wrote:
Caroline,
As a sanity check, in your bean, initialize the
username variable to something ie. XX. and
re-run your app. This will show if your setUsername
is
ever called.
-Richard
--- Caroline Jen [EMAIL PROTECTED] wrote:
I do not fully understand what you
There are lots of classes involved. I will give you
an example:
1. my LogonAction calls EditorService.java (business
delegate)
2. EditorService.java calls MySQLEditorDAO.java (data
access object implements EditorDAO.java, which is a
data access interface)
3. the MySQLEditorDAO.java returns
--- Caroline Jen [EMAIL PROTECTED] wrote:
I want to pass two hidden fields; username and
keyName
from a JSP via a SUBMIT button:
req:isUserInRole role=editor
html:form action=/find/Category
% String username = request.getRemoteUser();%
html:hidden property=keyName
value
that
request.getRemoteUser() in your
JSP is returning null.
Regards,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Re: Please Help! Unable to Pass A Hidden
Field To
scaffold.ProcessAction
I
authentication or are you authenticating the
user yourself?
If you are doing it yourself (ie. through a db
lookup) then the server
doesn't know about the user being authenticated and
will return null.
Regards,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED
While the server is running, I am able to be
redirected to the welcome page after I click on any of
the LOGOUT buttons in my application. And while I am
at the welcome page, I can see
http://localhost:8080/NameOfMyApplication/do/Main in
the address bar. But, if I shut down the server and
restart
: Caroline,
Are you having
problems with the username or the keyName hidden
variable? If it is
the username, then I'd suspect that
request.getRemoteUser() in your
JSP is returning null. Regards, Richard
-Original
Message- From: Caroline Jen
[mailto:[EMAIL PROTECTED] Sent
My servlet has a String called 'category'. I want to
pass the String to a JSP. Therefore, I have the code
shown below in the servlet:
session.setAttribute( c, category );
OR
request.setAttribute( c, category );
And, I do the following in my JSP:
% String keyValue =
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
req:isUserInRole role=editor
html:form action=/find/Category
% String username = request.getRemoteUser();%
html:hidden property=keyName
value=journal_category/
html:hidden property=username
value=%=username%/
My code was shown in my original message. I used two
html:hidden ... tags to pass two hidden fields, one
is successfully passed while the other shows null. By
the way, I do not use 'request' to retrieve the value
of the hidden field because my Java class is a
scaffold.ProcessAction type. I
=hiddenField
value=%=request.getRemoteUser();%/
Good luck.
- Original Message -
From: Caroline Jen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 05, 2003 8:17 PM
Subject: Very Troubled in Finding Ways to Pass a
Variable to a Class
I have a class
can't
you utilize it from
one of these places that you do have access to these
things? What
exactly is stopping you here? Once you tell us, then
you will have
illustrated the problem.
-J
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Saturday, December
Has a Struts application been built to handle
send/view personal mail messages using JavaMail?
If the answer is yes, please provide information how
to contact the developer of the application.
__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
I have a class FindEditorData.java. I want to pass a
vairable 'username' to this class for some processing.
This class is invoked from a JSP:
html:form action=/find/Category
html:submitView Articles/html:submit
and the value of the 'username' is obtained this way:
String username =
My application got a ClassCastException at scaffold,
ProcessAction.executeLogic. I have no idea about how
and where to detect the problem. I would appreciate
if someone could provide a clue.
2003-12-04 23:08:38 action: *** ACTION EXCEPTION:
java.lang.ClassCastException
at
My drop-down list got an error message:
org.apache.jasper.JasperException: Cannot retrieve
definition for form bean null
I have tried to display the drop-down list in two
ways:
First:
html:select size=1 property=editor
multiple=false
html:options collection=editors property=name
My ArrayList is a collection of bean object. The
ArrayList is created this way:
public Collection findEditors( String userrole, String
category )
{
..
EditorBean editorBean = null;
ArrayList editors = new ArrayList();
// database access code
while( rs.next() )
{
What a good timing to see this post. I was about to
do the same thing in the next day or two.
I have an ArrayList of JavaBean objects created from
accessing the database:
while(rs.next())
{
editorBean=new
EditorBean(rs.getString(user_name));
editors.add(editorBean);
}
return editors;
1. I my action class, I reference a bean
EditorBean editor = EditorBean.findEditorData(
username );
2. this bean accesses the data access logic and the
bean gets populated by information fetched from the
database (see the code below)
3. In the action class, I then wrap editor in a
session
It is not a Struts problem. But, it is the problem I
encounter in my Struts application. Please help. I
am NOT showing all my code. For example, I skip the
DAO interface, and the class that returns a connection
object from the connection pool. Nonetheless, those
classes are irrelevant to my
Passing variables from one action to another is a
frequently asked question. The answer is to use
either hidden fields or a session object.
The story starts with searching the database. My
application offers options to search the database by
author, title of the article, article ID, or .
:
On 11/06/2003 08:26 AM Caroline Jen wrote:
Passing variables from one action to another is a
frequently asked question. The answer is to use
either hidden fields or a session object.
[snip...]
Now, the application has another user case -
editors.
An editor only retrieve
I got this message in the browser:
[ServletException in:/article/content/menu.jsp] Cannot
retrieve mapping for action /do/editor/Category'
The menu.jsp is a tile in my application. This is my
tile menu.jsp:
req:isUserInRole role=editor
html:form action=/do/editor/Category
TR
TD class=option
People have suggested servlet filter is a good choice
to check session time-out that if I want all servlets
and JSPs remain intact.
I do not have any idea how it works in Struts. First
of all, I think this servlet filter has to be declared
in the web.xml. I have many actions in the struts
I check if session expires for each action in the
application. If the session times out, I forward the
user to index.jsp so that the user can log on again.
How do I inform the user with a message that he/she is
at the welcome page because the session has expired?
Please help. Need your clever ideas. Thank you.
--- Caroline Jen [EMAIL PROTECTED] wrote:
I am using the findByProperty method in the
org.apache.commons.scaffold.sql.AccessBase. The
findByProperty method takes one pair of
property/value as it parameters. As such, visitors
of
the web site
We have html:submit for the submit buttion in
struts. I am trying to add some additional features
to the submit button:
BUTTON TYPE=submit NAME=submit VALUE=submit
STYLE=font: 10pt Arial Black; background:Teal
width:75px; height:25pxRead/Send Mails/BUTTON
I wonder if there is something like it
In the welcome page, all visitors of the web site can
choose to view any article that is available in the
database. But, visitors will not be able to delete or
update any of those articles (DELETE, UPDATE, etc.
buttons are not provided). This part of my struts
application works well. I have a
I am using the findByProperty method in the
org.apache.commons.scaffold.sql.AccessBase. The
findByProperty method takes one pair of
property/value as it parameters. As such, visitors of
the web site can query all articles in the database by
providing 'author' as the property and supply the name
I am trying to modify the behavior of the
ParameterAction.java in the org.apache.struts.scaffold
to tailor it to my specific need.
I put the struts.jar and struts-scaffold.jar in my
classpath while compiling the sub-class. Nonetheless,
I got
cannot resolve symbol
symbol: class
html:hidden property=dispatch value=author/
works well because author is expected literally as
the value of a property called dispatch.
I also want to pass
String username = request.getRemoteUser();
as the value of a property called keyValue.
But,
html:hidden property=keyValue value=username/
I have checked the syntax of the isUserInRole in the
request.tld, which is:
req:isUserInRole role=administrator
%-- do something --%
/req:isUserInRole
Is it possible to specify more than one role? What is
the syntax of specifying that? My application has
many roles. In some cases, both
Hi, I have the following code in the navbarMenu.jsp:
html:link forward=exitLOGOUT/html:link
and in the struts-config.xml, I have:
forward
name=exit
path=/do/Logoff/
and
action
path=/Logoff
type=org.NameOfOrganization.signoff.LogoffAction
forward
name=success
the LOGOFF button again and then the welcome
page is displayed.
What should I do to go back to the welcome page in one
step?
--- Ruth, Brice [EMAIL PROTECTED] wrote:
Is your Menu actionforward the welcome screen you
want to get to? And
does your Action return an ActionForward to this?
Caroline
Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: 28 October 2003 17:05
To: Struts Users Mailing List
Subject: Re: Forward Cannot Be Achieved In One Step
The do/Menu does display my welcome page. The
LOGOUT button and forward does eventually lead the
visitor to the welcome page
plus a LOGON buttion is provided.
As long as two actions are involved, the user does not
get back to the welcome page by just click on the
LOGOFF button only once.
Need your guidance on how such a situation is usually
handled?
--- Caroline Jen [EMAIL PROTECTED] wrote:
Thanks for the reply
] wrote:
At the end of your first action execute() method, do
a redirect to the second action. Something like the
following:
return new ActionForward(secondAction.do);
Hope this helps!
-Yan
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: October 28
));
Barry
- Original Message -
From: Caroline Jen [EMAIL PROTECTED]
To: Struts Users Mailing List
[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 6:02 PM
Subject: RE: Forward Cannot Be Achieved In One Step
I have tried your suggestion. It still takes two
Please point out my mistakes. Does the 'name'
attribute of the logic tag accept an object only? For
example, I created a session this way:
HttpSession session = request.getSession();
String username = request.getRemoteUser();
session.setAttribute( user, username );
In the LogoffAction, I
Hi, I have the following code in the navbarMenu.jsp:
html:link forward=exitLOGOUT/html:link
and in the struts-config.xml, I have:
forward
name=exit
path=/do/Logoff/
and
action
path=/Logoff
type=org.NameOfOrganization.signoff.LogoffAction
forward
name=success
stuff)
--WEB-INF
Others like the WEB-INF capability to protect
resources.
Cal
http://www.calandva.com/Last update
08/01/03
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 14:42
To: [EMAIL PROTECTED]
Subject: Tiles
I use tiles and stylesheet to display my web pages. I
also try to insert some images in those pages.
The tiles work fine. I have header, footer, navbar,
content, etc. displayed without problem. But, I am
curious to know if anybody has had difficulties in
inserting images. I have tried various
Thanks for the advices that have been given to my
earlier question regarding inserting images while
using tiles.
The tiles part works fine. The browser still has
problem to pick up the image that I try to insert.
This is what I do:
1. I have html:base/ inside the HEAD tage in the
main JSP
Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 21:10
To: [EMAIL PROTECTED]
Subject: Tile and html:img
Thanks for the advices that have been given to my
earlier question regarding inserting images while
using tiles.
The tiles part works fine
Hi, I saw your message asking me about the form-based
container-managed authentication in Struts. I
accidentally deleted your message and could not find
your name and e-mail address.
The following steps are what should be done:
1. configure the JDBCRealm in the Tomcat server.xml,
see
Where can I find any doc regarding how to use
request.tld?
I have seen request.tld be imported in a JSP and the
role of the logged-in user is validated this way:
req:isUserInRole role=administrator
I would like to find out how to use the request.tld to
express this statement:
user.setName(
My question is similar. I use container-managed
role-based security checking. I put role property
in Action Mapping and use isUserInRole in my JSPs.
For example, John can view the sales reports if he has
the sales role. Now, I want to further restrict John
to view the sales reports in is region
I am also in trouble. My problem is sort of related
to yours although not directly relevant. I am also
looking for org.apache.struts.taglib.html.BEAN
I am trying to modify Ted Husted's artimus_1_1 example
- I want to add one more property to his articleForm.
To submit an article in the
I have to prepare many drop down lists for visitors of
the website to make selections. For example, I have
the 51 states of the United States prepared like
Virginia=VA, ., etc. Do I keep the data in a
database or in a properties file?
__
Do you Yahoo!?
The
I posted this problem before. Max and Carey answered
my post right away. I tried and tried I must be
missing something.
I really do not understand why all of a sudden that
the java compiler cannot find the required JARs in the
classpath. I have done some similar compilation
before
I use container-managed form-based authentication to
verify users (it works well).
Now, I want to create a session and set user's name
after users successfully log in:
HttpSession session = request.getSession( true );
if ( session.isNew() )
{
I have all the required jar files in the
MyApp/WEB-INF/lib directory. Please help me in
identifying the problems with compilation:
1. For example, I have the commons-scaffold.jar in my
$TOMCAT_HOME/webapps/MyApp/WEB-INF/lib folder.
2. I have the struts.jar in the
j2sdk1.4.1_02/jre/lib/ext
/MyApplication is not availabel
HTTP Status 404.
Have you seen this kind of problem before? I have
posted the question at the tomcat-user discussion
forum.
--Caroline
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
Caroline Jen wrote:
To answer your questions:
1. The LOGON button links to a forward
I think this is more of a problem in the area of
Servlets/JSPs. Nonetheless, it happened when I ran my
Struts application and I decided to give a try at this
forum.
My application worked well with
login-config
auth-methodFORM/auth-method
form-login-config
Because there is such a statement (shown below) in my
signinForm.jsp:
html:form action=j_security_check method=post
focus=j_username
I put
action
name=j_security_check
path=/do/admin/Menu/
in my struts-config.xml file.
When I ran the application, I got:
, Caroline Jen
[EMAIL PROTECTED] wrote:
Because there is such a statement (shown below) in
my
signinForm.jsp:
html:form action=j_security_check method=post
focus=j_username
I put
action
name=j_security_check
path=/do/admin/Menu/
in my struts-config.xml file
=Submit/TD
TD align=leftINPUT TYPE=reset VALUE=Reset/TD
/TR
/TABLE
/FORM
/BODY
--Caroline
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
Caroline Jen wrote:
Thank you for your reply. I am using container
managed authentication.
My problem is how to go from j_security_check back
to
my
] wrote:
Caroline Jen wrote:
Thank you very much for the detailed explanation.
Yet, I still have hard time to make my application
work -- I am able to display the welcome page (no
problem). And I have
http://localhost:8080/PracticeVersion/do/Menu;jsessionid=0A6E76A8F3E849BC8DAAC45BFB72F72E
My Struts application worked well until I added
security in the web.xml file. I got the error message
shown below and I cannot spot any mistake with my
eyes:
[QUOTE]
2003-10-08 23:33:25 Exception initializing
TldLocationsCache: XML parsing error on file
/WEB-INF/web.xml: (line 137, col 19): The
specify the paths for the
logon page and error page in the struts.config.xml or
we should 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
1 - 100 of 145 matches
Mail list logo