Hi
This is the way I did it. I created an ActionForm with a language property. I search
this langauge in my Action :
language = switchLanguageForm.getLanguage();
if(language.equals("NL")) {
Locale be = new Locale("nl", "BE");
setLocale(request, be);
} else if (language.equals("FR"))
Hi Mitesh,
Are you using ?
gets translated to or etc
depending on the person's locale.
Yoo-Jin
-Original Message-
From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
Sent: 09 September 2003 20:41
To: [EMAIL PROTECTED]
Subject: Struts-example & i18n
I can successfully run the str
The example application defines a custom plug-in that is initialised at
start-up and loads the database and stores it in the ServletContext
(application scope).
struts-config.xml:
MemoryDatabasePlugIn.java
servlet.getServletContext().setAttribute(Constants.DATABASE_KEY,
database);
C
If you haven't already, you might make certain that your Xerces.jar exists
in either (or both - whatever works) your WEB-INF/lib and your
/jre/lib/ext directory.
jw
- Original Message -
From: "jw z" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 2:24 AM
Subje
Xerces1.4.4 and JAXP1.0.1???
Struts1.1b needs JAXP1.1.
and You shouldn't set the CLASSPATH.
jw z wrote:
> Hi, I am new to struts. I have a problem here. I installed Tomcat
> 4.0.4 on my Windows 98. It works fine. Then I downloaded struts binary
> code version 1.1 beta2 and try to test struts-exam
Title: Message
Thanks
for the info
rgds
C.Bhaskaran
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:
Friday, June 07, 2002 10:38 AMTo: Struts Users Mailing
ListSubject: Re: Struts-Example registration.jsp not
workingthe ActionClass
that
the ActionClass that forwards the request to registration.jsp has the responsibilty of filling up the bean and setting it against the key. By directly typing the URL, we by pass that action. So there is a error.
that is not the first page i guess. It has to be index.jsp. Infact index.jsp is the w
.
Regards,
Michael
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 2:45 PM
Subject: Re: Struts example doesn´t work
>
>
> Michael,
>
> Don't think this is your problem but wa
Michael,
Don't think this is your problem but wanted to post this for the benefit of
the group. Some time ago I had asked the group as to how I can get
java.net to recognize our proxy. Most answered me by saying to make DTDs
local and changing refs to local. For those who like the easy way
Hi,
I´ve tried the example again without JBOSS3.0RC2 and just with Tomcat4.0.3
on its own. Strangely enough it works now. Is anybody else having problems
with JBOSS3.0RC2 and struts.
bye Michael
- Original Message -
From: "Michael Delamere" <[EMAIL PROTECTED]>
To: "'Struts Users Mail
<[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > Subject: Struts declarative security policy? (was RE: Struts example -
> > redundant login checking?)
> &
t: Struts declarative security policy? (was RE: Struts example -
> redundant login checking?)
>
> Seems to me that neither the jsp nor the action is the correct place to
> enforce a security policy. It means both page designers and developers
> have to remember to do it every tim
e app server.
-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 4:56 PM
To: 'Struts Users Mailing List'
Subject: Struts declarative security policy? (was RE: Struts example -
redundant login checking?)
Seems to me that neither
Wittke Marcus-r32643 wrote:
> Since a user always has the chance to directly type into his/her browser the
> URL of JSP or action, you probably really need to check in both places.
This is one of the motivations behind putting all of your .jsp pages
above the WEB-INF directory. The servlet conta
-config.xml; i.e. access control
is just another property of an action mapping.
> -Original Message-
> From: Wittke Marcus-r32643 [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 18, 2002 10:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts example -
Since a user always has the chance to directly type into his/her browser the
URL of JSP or action, you probably really need to check in both places.
We're trying to avoid this with a Filter that does not allow users to
directly request JSPs at all (i.e. all our links always go to actions and
thos
The Online Auction sample that ships with WSAD is using struts !
>From the File New Project you can select the Auction example.
If you execute the installation steps in the help (to configure your
database) you should be able to run it.
Struts sample application is simple to deploy and run in WS
IBM has a redbook that tells how to use Struts with Websphere.
Look in Chapter 12 of the WebSphere Version 4 Application Development
Handbook. You can download it from http://www.redbooks.ibm.com/
Jay
On Tue, 12 Mar 2002, K J wrote:
> I'm not using tomcat. i'm using websphere webserver
> wit
re able to
work around this.
Bye,
Subhadra
-Original Message-
From: NTL [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 8:17 AM
To: Struts Users Mailing List
Subject: Re: struts-example won't run
> --- Subhadra Vemuri <[EMAIL PROTECTED]> wrote:
> > I had
> --- Subhadra Vemuri <[EMAIL PROTECTED]> wrote:
> > I had the same problem too - and I didn't have to
> > change any source code. I just reinstalled
> > tomcat and all my troubles were gone. It just
> > worked without any changes. I downloaded
> > tomcat version 3.3a.
Yes, I got around the same
omcat version 3.3a.
>
> Subhadra
>
>
> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 12:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: struts-example won't run
>
>
> Subject: Re: st
Sent: Wednesday, February 20, 2002 12:25 PM
To: [EMAIL PROTECTED]
Subject: Re: struts-example won't run
Subject: Re: struts-example won't run
From: "Wendy S" <[EMAIL PROTECTED]>
===
I wrote about an error with struts-example:
> > Error: 500
> > Location: /st
Subject: Re: struts-example won't run
From: "Wendy S" <[EMAIL PROTECTED]>
===
I wrote about an error with struts-example:
> > Error: 500
> > Location: /struts-example/logon.jsp
> > Internal Servlet Error:
> > javax.servlet.ServletException: cant
This is such a pain - it happens lots & I have no easy answer. I found
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19383.html
&
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18817.html
did you search for
'remove Attributes from request'
I never had this error us
Hi Mark,
'remove struts.jar from your claspath'
solution from here:-
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10093.html
If that's not the answer look for other errors in your server log, your error may be
the
by-product of some other error (like security).
To everyone -
Mark:
I'm a newbe, so take this with a grain of salt. However, it seems to me that
either:
(1) Your web.xml action servlet application init parameter doesn't point to
the Application.properties file, or
(2) It does point to it but you moved it and did not restart your container
so it could find i
My understanding is that anything put in the session stays there till I remove it -
that is why we
don't like putting things there.
A FormBean in the request stays there till the request is destroyed (ie. when output
of your page
is complete). It's clean & tidy to remove it from the request as s
I've used JRun 3.1 with Struts on WinNT/2000 without having to make any
modifications to the locale tag. Just unpacked the .war file and off it
went...
Mauro
-Original Message-
From: Sid Stuart [mailto:[EMAIL PROTECTED]]
Sent: 13 November 2001 15:47
To: [EMAIL PROTECTED]
Subject: Struts
Hi,
Among the possible reasons:
Turned Off (May be, I try not to turn the context off, but once I did to
change a class)
Does NOT exist (not possible, it is there :))
Busy (in which case you may try again). (may be)
So, please try again...
I suggest that you write to my e-mail address about wba
I get the error on your page???
Server Context Not Available. Possible reasons:
Turned Off
Does NOT exist
Busy (in which case you may try again).
-Original Message-
From: Turgay Zengin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 12:35 PM
To: [EMAIL PROTECTED]
Subject: Stru
The Database servlet in the example is for demonstratin purposes only.
You would not want to base a production application on it.
In general, you would retrieve the list of users from a data access
object (in this case the Database servlet), and then set that to your
ActionForm. For a select box
ind a real solution.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 11:31 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Struts example on Tomcat 4.0 b5
Here is the exception I got when I try on IE
A Servlet Exception Ha
Here is the exception I got when I try on IE
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:4
On Wed, 13 Jun 2001, Felix von Delius wrote:
> I'm having trouble to bring the struts-example application to work
> with resin-1.2.7 under linux. With Win2K it runs just fine, but when
> doing the same installation under linux, I always catch the exceptions
> appended at the end of this mail.
>
On Wed, 13 Jun 2001, Felix von Delius wrote:
> I'm having trouble to bring the struts-example application to work with resin-1.2.7
>under linux. With Win2K it runs just fine, but when doing the same installation under
>linux, I always catch the exceptions appended at the end of this mail.
>
Hi Peter
I like to handle the errors as you have described. First a user friendly
page and then for the developers the error details.
But how do I do this
Could you give me an example??
Thanks a lot
Andy
*** PLEASE NOTE ***
This message, along wit
Yes, it's an example of separating the model from the view in an MVC
application.
The Subscription class is part of the model - it's the real subscription
data being manipulated by the application. Notice that this class has no
Struts or servlet dependencies.
The SubscriptionForm class is part o
I wouldn't use the directions from the web site. Some steps are obsolte,
some aren't needed, and some are fine. I've combined everything into one
HOWTO and posted it here before, but I don't see that it's made it up to the
Struts web site yet.
I'll upload the writeup to my web site tonight whe
Follow the Steps:
-
· Start the WebSphere Administrative Console
· Once it's started, select "Convert a War File" from the tasks
toolbar option, or from the Console->Tasks menu. This will cause a "Convert
War File" Wizard dialog to appear.
· Select a Servlet E
Yup, it's in the download. Go to the directory that you unzipped the
download. There should be a directory called
"webapps". "struts-example.war" is what you are looking for. Copy this
file to your Web Server's "webapps" directory. In Resin, for example, that
would be C:\resin\webapps. V
Yeah it is in the download.
-Original Message-
From: Kathryn S Howard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 1:03 PM
To: [EMAIL PROTECTED]
Subject: Struts Example Application
Hello,
In the Struts Release Notes (1.0b1) documentation, there is a
reference to the "Strut
ib to
${TOMCAT_HOME}/lib and that worked.
Thanks a lot!
Keith
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 5:53 PM
To: [EMAIL PROTECTED]
Subject: RE: struts-example/index.jsp failed
It looks like you don't have your controller servl
It looks like you don't have your controller servlet defined to be
. This is needed in order to initialize several servlet
context attributes used on the JSP pages -- among them the
internationalized message resources.
Craig
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:893)
at java.lang.Thread.run(Thread.java:484)
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: struts-example/index.jsp failed
On Thu, 22
On Thu, 22 Mar 2001, emi john wrote:
> Hi,
>
> I had similar problem before. It looks like there is
> compatibility issue here. As I put old version
> struts.jar in the example lib directory, everything
> seems working fine. So the example doesn't work with
> new struts.jar (tested in JRun 3.0
I failed to mention that I am running tomcat 4.0 b2 nightly build as well.
Thanks!
keith
-Original Message-
From: Keith Kee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 2:01 PM
To: [EMAIL PROTECTED]
Subject: struts-example/index.jsp failed
Hi:
I just download a copy of
Hi,
I had similar problem before. It looks like there is
compatibility issue here. As I put old version
struts.jar in the example lib directory, everything
seems working fine. So the example doesn't work with
new struts.jar (tested in JRun 3.0). However, under
Tomcat 3.2, everything is fine.
Whi
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: struts-example - handle of ServletException
Thank you Incze. This is the 3rd or 4th good suggestions!!! We have so many
gurus.
The Life is good.
Maya
Incze
Thank you Incze. This is the 3rd or 4th good suggestions!!! We have so many gurus.
The Life is good.
Maya
Incze Lajos wrote:
> On Tue, Feb 27, 2001 at 12:07:15PM -0500, Maya Muchnik wrote:
> > Hi,
> > Do you have any ideas how registration.jsp file (struts-example) can be
> > changed to handle a
On Tue, Feb 27, 2001 at 12:07:15PM -0500, Maya Muchnik wrote:
> Hi,
> Do you have any ideas how registration.jsp file (struts-example) can be
> changed to handle a situation when a user call it directly. I do not "like" a
> SevletException to be displayed:
>
> Error: 500
> Location: /struts-examp
Thank you, Peter. So many good implementations around!
Peter Alfors wrote:
> We wrap errors in our own exception class, and store them in our request/session.
> Then redirect the user to a standard error page that knows how to retrieve the
> error from the request/session, and display it in a 'f
Thank you, David.
David Winterfeldt wrote:
> You can always add some logic tags at the top of the
> registration.jsp to check if he is logged in, certain
> objects are in scope that the form needs, etc. If the
> criteria aren't met, forward him to any page you want
> and display a message. You
We wrap errors in our own exception class, and store them in our request/session.
Then redirect the user to a standard error page that knows how to retrieve the
error from the request/session, and display it in a 'friendly' way to the user.
Our exception class contains a user message, as well as t
You can always add some logic tags at the top of the
registration.jsp to check if he is logged in, certain
objects are in scope that the form needs, etc. If the
criteria aren't met, forward him to any page you want
and display a message. You could also forward it to
an error.do page that could c
Thank you.
I thought, that some struts "magic" I can use. If I will use a standard
"errorPage" as you suggest, I will lose all pluses of the good struts
interface.
Maya
Jean-Noël Ribette wrote:
> - Original Message -
> From: Maya Muchnik <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Se
- Original Message -
From: Maya Muchnik <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 5:07 PM
Subject: struts-example - handle of ServletException
> Hi,
> Do you have any ideas how registration.jsp file (struts-example) can be
> changed to handle a situati
Craig Tataryn wrote:
> In your web.xml file change:
>
>
> action
> *.do
>
>
> TO:
>
>
> action
> *
>
>
The legal pattern for this would actually be "/*". But, if you do this, you're
going to discover another problem -- everything stops working :-(.
Why? Because the "/*" ma
: Re: Struts Example using Prefix Matching
In your web.xml file change:
action
*.do
TO:
action
*
Craig T.
"Hardee, Tony" wrote:
> Does anyone have an example Struts application using prefix mapping where
> all URLs that start after the context path a
In your web.xml file change:
action
*.do
TO:
action
*
Craig T.
"Hardee, Tony" wrote:
> Does anyone have an example Struts application using prefix mapping where
> all URLs that start after the context path are routed to the ActionServlet?
> I would like a rigid model 2 ar
ve that this is the right way to
> do this.
>
> Mark
>
> P.S. If you'd rather discuss this one-on-one, feel free to reply directly
> to me.
>
> > -Original Message-
> > From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001
Mark
P.S. If you'd rather discuss this one-on-one, feel free to reply directly
to me.
> -Original Message-
> From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 5:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts example doesn't work?
Mark Davidson wrote:
> I've seen other postings from people using both Tomcat and Weblogic, and
> having the same problem. My question is... why? I know some people have
> suggested unpacking the war file and struts.jar file so they can be in your
> classpath, but I would love to know the reason
I have this error, and a "fix" was very simple: you need to follow the
installation instructions. If you have got a nightly binary build, unjar it.
Under a subdirectory jakarta-struts read README file. Here is some extract from
it and you need to do ONLY this:
- Install the Struts example applica
>
>
> java.lang.NoClassDefFoundError
My guess is that is unable to find one of your class referenced in
your jsp file. This could be a custom tag or a java class.
Double check your class paths.
-Rob
Rob Leland wrote:
> The struts example for January 23 uses depreciated
> tags for error handling in login.jsp. This appears to be
> the last place the old tag library is used.
>
> -Rob
Thanks Rob ... I just fixed this one.
Craig
> Nick Afshartous wrote:
> > I'm getting the following exception below trying to run the struts
> > example (using Tomcat 3.2.1). Thanks for any tips.
Craig R. McClanahan writes:
> I assume there is a little more to the stack trace than this (the
very next few lines are the critical ones),
Nick Afshartous wrote:
> Hi,
>
> I'm getting the following exception below trying to run the struts
> example (using Tomcat 3.2.1). Thanks for any tips.
> --
>
> Nick
>
I assume there is a little more to the stack trace than this (the very next few lines
are the critical ones), but the
Besides the workaround, I believe Craig is working on the "big fix" to
this, see:
<
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01054.html
>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- htt
Hi,
I posted the same question about a week ago. Please see an attached answer
to my message by Mikael Eriksson.
Hope this helps.
Alex
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 29, 2000 10:04 AM
To: [EMAIL PROTECTED]
Subject: struts ex
"Sayles, Scott SAXONHQ" wrote:
> Uh... nevermind. I think I just found the answer.
>
> The Subscription object is passed a reference to the "parent" object via
> it's setUser method and it calls the parent's addSubscription method to add
> itself.
>
> I'll just throw this out there: It would see
Uh... nevermind. I think I just found the answer.
The Subscription object is passed a reference to the "parent" object via
it's setUser method and it calls the parent's addSubscription method to add
itself.
I'll just throw this out there: It would seem to me that it would make more
sense for
unday, October 22, 2000 7:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: struts example
Hi Steve,
This is the error I got with a war file and without it (expanded) , as you
see the action package wasn't created at
Code)
//--
-
-Original Message-
From: Stephen Earl [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 22, 2000 3:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: struts example
Sara,
I didn't understand your message completely. When you e
Sara,
I didn't understand your message completely. When you expanded the war file
did you have any success?
Steve...
-Original Message-
From: Sara Zukerman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 22, 2000 2:46 AM
To: '[EMAIL PROTECTED]'
Subject: struts example
Hi all,
I see
74 matches
Mail list logo