here is what you have to code :
In your web.xml :
FORM
/authentication.jsp
/authenticationFailed.jsp
Note, for me realm-name is a jndi name declared in my application server
(jboss) that call a jaas policy module.
I was also disapointed that login-page an
Thanks all for your replies. I created another context and copied all of my
files from the existing context to the new context and its working fine. But
I still do not understand why it didn't work in the existing context.
Uma
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTE
will try them all thanks Catalin and Bill.
On Thu, 16 Dec 2004 08:57:15 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Maybe try using a double slash (\\r\\n) ...
>
> Richard Reyes wrote:
>
> > Hello Guys,
> >
> > How can I include a carriage return inside a properties file. I tried
> > \r\
At 7:45 PM -0500 12/16/04, David G. Friedman wrote:
On a personal note, I look at Struts Chain and I wonder, should I use Struts
Actions or simply make my own chain command to execute chains based upon the
action path? Which is better and which is the "path", I don't know. Maybe
someone can answe
At 3:32 PM -0800 12/16/04, Julian wrote:
Hi,
ok, I've been looking at the struts-chain stuff and
have been trying to figure out how to do sub-chains.
The reason I wanted to do this was b/c I thought one
had to start from the servlet-standard chain example
in the SVN repository and insert more comma
Jim,
I believe getRemoteUser is a HttpServletRequest method that only returns an
object if the user is logged in. How would they log in? Using container
based security. Basic info is on the Strut site:
http://struts.apache.org/userGuide/preface.html#jaas
For more details on this path, try goog
Is there support for Struts 1.2? I'd really like being able to use
1.2.6 in WSAD 5.1.1, but even some 1.1 (Tiles) features get flagged
with warning labels ...
On Thu, 16 Dec 2004 13:16:01 -0600, Thirumalai Veerasamy
<[EMAIL PROTECTED]> wrote:
> The issue is we don't know the struts 2.0 release d
David ,
Echo is good...as it turned out this line was returning null,
String userName = ((LogonForm) form).getUsername();
I'm new to java and Tomcat/Struts so I'm strugglig with where to put the
users info once they have successfully logged on.(Logon is just a query to a
database to
Craig, I am also curious for the reasons for a frozen configuration. I
skimmed the ModuleConfig impl and see how every component seems to have a
'freeze'able state. But, sadly, I didn't see an 'unfreeze.' I'm guessing
components are passed around via the RequestProcessor and this ensure
nothing
When you say Struts 1.2 - is that version 1.2.4?
Can you post the relevant bits of config/code:
- show how you have the message resources configured in your struts-configs
- show how your using
Niall
- Original Message -
From: "Leigh Estes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
Hi,
try tu put in your application.properties for CARRIAGE RETURN (CR) and
NEW LINE (NL) the unicode value:
CR: \u000D
NL: \u000A
in my application.properties this is work for special characters
Catta
On Thu, 16 Dec 2004 13:49:10 +0800, Richard Reyes
<[EMAIL PROTECTED]> wrote:
> Hello Guys,
>
Julian,
I was confused by your statement that some actions would need to invoke
chain "A" while other actions would need to invoke chain "B". To assist
you, I first suggested using a ChainAction. I realized that wouldn't allow
a group of actions to invoke the same chain AND perform their own act
Jim,
Since your JSP thinks something is null, have you tried putting something
like the below code in your RetrieveFormAction.execute() method before you
do your request.setAttribute(...) call?
if ( result == null ) {
System.out.println("Result set is NULL!");
} else {
System.out.
I have configured two modules in my web application using Struts 1.2.
Each has its own struts config as defined in the web application's
web.xml. Each has its own validation XML and resource bundles as defined
in their respective struts config files.
The problem I'm seeing is that if I violate a v
No. Not when the user enters a string with commas.
So we are thinking of switching to Strings instead of longs then manually
convert, but I was hoping for something more automatic.
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
"This message may contain confidential
Hi,
ok, I've been looking at the struts-chain stuff and
have been trying to figure out how to do sub-chains.
The reason I wanted to do this was b/c I thought one
had to start from the servlet-standard chain example
in the SVN repository and insert more commands (or
copy the whole to start a new c
From: <[EMAIL PROTECTED]>
> I have a form field that I want to be a number in the DB,
> but the user can add digits, or digits with commas into.
> So 1000 is the same at 1,000 on the ui.
> My question is, will struts convert "1,000" to 1000L
> just as it will convert "1000" to 1000L?
Struts doesn'
If you wanted to be a bit more ambitious you could also try implimenting
this:
http://developer.apple.com/internet/webcontent/xmlhttpreq.html
Brady
> > -Original Message-
> > From: Riedling, Michael [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 16, 2004 8:19 AM
> > To: [EMAIL PRO
Take a look at FormDef https://formdef.dev.java.net
Hubert
On Thu, 16 Dec 2004 16:36:49 -0600, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> That's what we are doing already, I just didn't know if there was a feature
> in Struts/BeanUtils that would do it for us.
>
>
> M
That's what we are doing already, I just didn't know if there was a feature in
Struts/BeanUtils that would do it for us.
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020
"This message may contain confidential and/or privileged information. If you
are not the addresse
I recently did what I think you're trying to do. I created a login
servlet that redirects to j_security check. Matt Raible was kind enough
to document his work on it here:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg86636.html
http://raibledesigns.com/page/rd?anchor=md_5_a_pass
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: String with digits to Long, verse String w/ digits and commas
> to Long
>
>
> I have a form field that I want to be a number in the DB,
I have a form field that I want to be a number in the DB, but the user can add
digits, or digits with commas into.
So 1000 is the same at 1,000 on the ui.
My question is, will struts convert "1,000" to 1000L just as it will convert
"1000" to 1000L?
Mick Knutson
Wells Fargo
> -Original Message-
> From: Ryan julius [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: Remote forwarding
>
>
> HI,
> I am developing a web application .
> When a client opens a session with my application, any
> message (suc
> -Original Message-
> From: Vicky [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 11:28 AM
> To: Struts Users Mailing List
> Subject: Websphere discussion group
>
>
> Does anyone know if there websphere application server
> discussion group/forum exist?
Would the general
> -Original Message-
> From: Riedling, Michael [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: "dynamic" dropdown select list?
>
>
> hello,
>
> 1.)
> I want to create two dynamic dropdown lists to select main-
> and submenus of
> -Original Message-
> From: Tate Austin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 16, 2004 12:21 PM
> To: Struts Users Mailing List
> Subject: j_security_check
>
>
> I have a logon page that I would like to have a checkbox on
> for writing a
> cookie to the browser. The pr
> -Original Message-
> From: Jim Douglas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 5:17 PM
> To: [EMAIL PROTECTED]
> Subject: Mapping issue
>
>
> To all,
>
> This is my error message in the browser,
>
> javax.servlet.ServletException: Cannot retrieve mapping for a
Set your nntp/newsreader to news.software.ibm.com
Wiebe
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic
Sent: Thursday, December 16, 2004 12:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Websphere discussion group
IBM has newsgroups and mail lists, about a dozen relat
just in case anyone was wondering what happenned to
this..
i am adding a global listener to the scheduler within
a servlet that loads on startup. this apparently
starts after struts plugins which in turn starts up
after servet context listeners.
james
--- klute <[EMAIL PROTECTED]> wrote:
> Hel
IBM has newsgroups and mail lists, about a dozen related to WebShpere.
And BEA has it's own, and Sun also.
hth,
.V
Vicky wrote:
Does anyone know if there websphere application server
discussion group/forum exist?
Thanks,
Vicky
__
Do you Yahoo!?
Yahoo! Mail - Y
Struts does not support multiple mappings. See the first warning at
the bottom of
http://struts.apache.org/userGuide/configuration.html#dd_config_mapping
Hubert
On Thu, 16 Dec 2004 21:18:18 +0530, uma.k <[EMAIL PROTECTED]> wrote:
> It doesn't make any difference as the same works in another con
The issue is we don't know the struts 2.0 release dates. Till then ?
On Thu, 16 Dec 2004 11:17:55 -0700, BaTien Duong
<[EMAIL PROTECTED]> wrote:
> Thirumalai Veerasamy wrote:
>
> >Hi,
> >
> > We heard that IBM is going to de-support struts portlet framework
> >from IBM Websphere Portal 5.1.
>
Tate,
I am not 100% sure if this is what you are asking, but... You can configure
authentication declaratively in your web.xml telling the server that you are
using form-based authentication.
You will have to specify the page that contains your login form and the
error page if the user fails the
I have a logon page that I would like to have a checkbox on for writing a
cookie to the browser. The previous architect who wrote the jsp page
insists that it incorporate j_security_check, is there a facility in struts
for this? I can easily authenticate using forms and actions, but there is
appa
Thirumalai Veerasamy wrote:
Hi,
We heard that IBM is going to de-support struts portlet framework
from IBM Websphere Portal 5.1.
Initially (way back 4.x) they said they are going to support all
the features of Struts and that is the road map for Portal
applications. But the framework was not co
Hi
try
http://saloon.javaranch.com
Ashish
--- Vicky <[EMAIL PROTECTED]> wrote:
> Does anyone know if there websphere application
> server
> discussion group/forum exist?
>
> Thanks,
> Vicky
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - Yo
HI,
I am developing a web application .
When a client opens a session with my application, any message (such as a
warning) received from an EAI : i.e. a remote server, must be redirected to the
appropriate client. The parameters of this client are IP, port & sessionId; and
are provided by the
Does anyone know if there websphere application server
discussion group/forum exist?
Thanks,
Vicky
__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
---
You get IllegalArgument exception if any of the objects in the path
model.currentPerson.contactInfo.emails[0].emailAddress are not instantiated
and the stack trace also should able to give you which property is null. Its
thrown by BeanUtils when trying to set the property.
The action that display
Hi,
I have not fully understood the context in which you
get this error. However, I noticed that in your action
mapping in struts-config.xml,
you do not specify the complete path for your input
JSP - input="/Template.jsp". I guess it should be:
path="/articles/T
Craig,
What is the reason the configuration gets "frozen"? I don't mean to ask
about the mechanics of how it's frozen. I am just curious as to why freeze
it and not let it be dynamically updated during application lifetime?
Thanks,
Yaakov.
-Original Message-
From: Craig McClanahan [mailt
I am not sure that you saw that Jim is not talking about changes to
your resources being expensive to do but rather access to your
resources being expensive to do with the database idea. I apologize
if this was clear to you, but you seem to be missing that.
Jack
On Thu, 16 Dec 2004 11:34:16 +01
It doesn't make any difference as the same works in another context.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, December 16, 2004 9:12 PM
To: [EMAIL PROTECTED]
Subject: Re: NullPointerException
Hmm -- I do see that you have two servle
Return Receipt
Your RE: "dynamic" dropdown select list?
document:
Specify a JavaScript function as an 'onchange' listener for the first
drop-down that submits to an action; passing the selected value from the
first drop-down on the query string ... like this:
function setFoo(form) {
fooCtl = form.elements["foo"];
form.action =
This is my application error log,
DEBUG - Path Based Include
DEBUG - insert page='/portal/forms.jsp'.
DEBUG - servletPath=/portal/forms.jsp, pathInfo=null, queryString=null,
name=null
DEBUG - Path Based Include
ERROR - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerExcept
Hmm -- I do see that you have two servlet mappings for the
ActionServlet. You should only have one of these.
uma.k wrote:
This is my web.xml file
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-
I've done this using a combination of things.
I think onClick gets fired if you change the value - even using keyboard,
and believe this works accross browsers.
I had onClick fill in a hidden field, and submit the form. The validate
method notices this, and throws back a single empty actionerror
Hi, i will let the user select on th first dropdown list and then make
an action to get the data from the db an fill the second dropdown list.
Do you need the lines?
-Mensaje original-
De: Riedling, Michael [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 16 de diciembre de 2004 9:19
Para:
hello,
1.)
I want to create two dynamic dropdown lists to select main- and submenus of a
navigation in a form.
I fill both lists with collections, when the User chooses a value in the first
dropdown menu (e.G. Navigation main menu), the site should reload and the
related collection of the seco
Yes, /WEB-INF/struts-config.xml" is located there
From: "David G. Friedman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Mapping issue
Date: Wed, 15 Dec 2004 19:31:14 -0500
Have you checked your ap
This is my web.xml file
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
action
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml
debug
2
detail
2
2
action
/do/*
Wierd -- it looks to me from the original message that you are getting
the error on line 1219 of TagUtils which is:
resources =
(MessageResources) pageContext.getAttribute(
bundle + moduleConfig.getPrefix(),
P
David,
Comments inline:
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> Julian,
>
> If you just need to invoke a chain, you can make
> your action be
> "org.apache.struts.chain.legacy.ChainAction".
Great thanks
>If
> you need some actions to
> do chain "A" and some to do chain "B" T
Joe,
I am including a list of things from the top of my
head that I like about Cocoon sitemaps, and how it
translates into struts-chain. I would like to say
that maybe this is a great area for cross-pollination.
Why reinvent the wheel? Perhaps a commons package
shared by the Cocoon developers
Bill,
yes that file is in web-inf/classes folder only.
Uma
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow
Sent: Thursday, December 16, 2004 7:34 PM
To: [EMAIL PROTECTED]
Subject: Re: NullPointerException
I am going way out on a limb here, but I might ha
Hi Jay,
Thanks for reply but a similar kind of app works fine in other context. Same
file name and context and same structure. What could be wrong?
Uma
-Original Message-
From: Jay Chandran [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 7:38 PM
To: Struts Users Mailing List
S
Maybe try using a double slash (\\r\\n) ...
Richard Reyes wrote:
Hello Guys,
How can I include a carriage return inside a properties file. I tried
\r\n and it show as \r\n on the
emails being sent.
Thanks
Richard
-
To unsubscribe,
I am going way out on a limb here, but I might have something to do with
retrieving your message resources. Make sure you have your
ApplicationResources.properties file located in your WEB-INF/classes.
uma.k wrote:
I get NullPointerException when I access this index.jsp page. I also have
Applica
Try this:
value="${requestScope['org.apache.struts.action.mapping.instance.name']}"
/>
Abdullah Jibaly wrote:
Thanks, the forEach works great. The problem with using a hardcoded form name is that I have an
abstract Base form with several derived children each with their own form name. Using the f
If you look at the error message, I get NullPointer at this line in the
generated java file
int _jspx_eval_bean_message_0 = _jspx_th_bean_message_0.doStartTag();
//NULLPOINTER
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apac
i am not a fundu in struts but still ..:)
please go through the below link and check whether it make sense. Null
pointer exception usually arises when we are trying to extract some values
from variables which are "null". Please check whether the variables u r
calling when the action is perfor
I get NullPointerException when I access this index.jsp page. I also have
ApplicationResources.properties file in web-inf/classes folder
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Add An Article
This is my struts-
Hello All,
I have been used jgsi quartz plugin for struts for a
while now and it has served me well so far. however,
now i realized that it would be nice to define a
global JobListener so that all jobs scheduled by my
scheduler can use it. however, i don't see the support
for listeners in jgsi qu
I think there is a difference between tieing things to struts, and ojb.
Struts is quite obtrusive - you have to use Actions if you're going to use
struts. Keeping business logic in actions ties you to struts. If you
decided to add a swing interface to your app, then you cant easily reuse
this co
The purpose for /ad is the module seperation.
as the property files are located under
\WEB-INF\classes\resources\i18n\ad
However, the problem is solved. The regional setting for the machine need to
be English(UK)..
learning curve is sucks >^<
Thanks for the help.
rgds,
Yen
-
Intermixed.
On Wed, 15 Dec 2004 19:46:07 +, Adam Hardy
<[EMAIL PROTECTED]> wrote:
> On 12/14/2004 12:32 PM Andrew Hill wrote:
> > According to the sevlet spec: "context attributes are local to the JVM
> > in which they were created. This prevents ServletContext attributes from
> > being a sha
Thank you for help,
About using database for messages, I agree it requires chaching and a reload
strategy. A simple "reload every 10
minutes" might allow changing messages without requirement to stop app or to
search for files on server.
I'm taking a look at Spring ReloadableResourceBundleMess
uma.k wrote:
Where can I get the best tutorial on struts?
http://www.reumann.net/struts/main.do
-VK
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Where can I get the best tutorial on struts?
Uma
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thank you Jack, that's very kind of you, I will take a look at
modifying the taglib this afternoon.
--b
On Wed, 15 Dec 2004 15:46:09 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote:
> Hi, Bryan,
>
> I could not agree more. But, you might as well bang your head against
> the wall as play Cassandra
Thanks! That works.
Regards,
Wessel van Norel
On Wed, 15 Dec 2004 17:08:48 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Try something like this:
>
>
>
>
>
>
>
>
>
>
>
> -Bill Siggelkow
>
> Wessel van Norel wrote:
>
> > Hi all,
> >
> > I wa
The problem here is the tag in your jsp:
It should be:
"Why without '/ad' ?" you may ask. Probably the example you copied from is
a Struts module named 'ad'; in such cases, when the message-resources tag
is in a Struts module config, then / is appended to the
name of the messages resource. In
Yes Jim, I'm agree with you. Maybe you have misinterpreted my last sentence
or maybe I've expressed the concept in the wrong way or both.
I want just to say that I'm using OJB+Struts using directly the persistence
broker instead of ODMG/OJB and I'm not implementig the DAO (yet).
Because liooil aske
75 matches
Mail list logo