This is due to the javabean convention. If the method name begins with two uppercase
letters, the property name is the
same as the method name.
For example getXXX() = property XXX.
getXxX() = xxX
There are more messages about this problem on the mail archives.
Jean-Noël
We used that, too.
Accessing the http server at a different port is no problem.
Uli
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Montag, 23. April 2001 22:28
To: [EMAIL PROTECTED]
Subject: Re: Load Testing
Were you able to get that running with an
Hi,
There is no problem with components, just a syntax error in your jsp
overiding parameter : you have ended comp:insert ... tag while you still
using it. Remove the '/', and all will work fine.
I agree that returned error is not accurate : I think that jsp preprocessor
should detect the
From: Iraklis Kourtidis [EMAIL PROTECTED]
2) The source for the struts-example sample application (although not part
of the source code you're likely talking about) was to me the
most useful resource in understanding Struts. Any other example I found on
the web was highly confusing and/or
I'm using
logic:iterate and I want to know the index on each
iteration.
Is there a tag I can
use - I've looked but I can't find one.
Cheers
Kris.
Hi all,
Quick question about session.invalidate(). I created a login management
framework that works fine but for one problem. When I introduce the
session.invalidate() command for when the user logs out, naturally, all
the Struts-required beans in the session are destroyed so a
Sorry all. Please ignore my previous post. My assumptions were completely
wrong. You can use invalidate() since mapping variables are in application
scope, and in fact I had already put an invalidate() in my code which was
why the second invalidate() I added was throwing an exception. Sorry
Can DHTML Lab's Hierarchical menu be implemented using Struts ?
Mani
Hi all
After my action class is instantiated the method findForward(admin)
returns a blank html page instead of the admin-frame page.
If I type the full URL path to the admin-frame it works.
I have included the html:base/ in the admin-frame page.
Any ideas
Thanks
Michael
!-- Process a user
Just the binary with docs and examples (with sources).
Thanks!
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
As we move towards a 1.0 release of Struts (really!
:-), one of the
things I am cleaning up is the way that binary
distributions are
packaged. Currently, we follow the typical
binaries including source is perfect. I can get everything in one download
instead of multiple downloads.
Thanks,
Amar..
-Original Message-
From: Wong Kok Wai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Packaging Question -
Hello,
I want to organize one action bean for changing
language (there is very similar form on several pages for such action).
How can I forward request to the page which from
this request comes?
Please help,
Bajo
I would prefer to have the source available. I like
the ease doing an installation without having to run a
build, and the ability to look at the source if
anything goes wrong.
I'd suggest jaring up the source in a src.jar, like
the JDK.
Calvin
--- Wong Kok Wai [EMAIL PROTECTED] wrote:
Just
mapping.findForward(mapping.getInput() ) where 'input' is specified
in the struts_config.xml action mapping
cheers,
Amar..
-Original Message-From: Marcin Baj
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 9:40
AMTo: [EMAIL PROTECTED]Subject: forwarding
to itself
Hello struts-users,
I am very new to Struts (or JSP for that matter), and in need of
some examples that I can get my hands on.
Specifically, an application that uses "wizard" style, multiple-page
input forms would be very nice. Couple of Struts documents I looked
mention that Struts works well
Yes, but I want to have only one (not about 50)
section action in struts.config and
singleformaction bean...
- Original Message -
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Tuesday, April 24, 2001 3:46
PM
Subject: RE: forwarding to itself
Here's my experience with this issue. We used
in-memory session failover in WL, but due to problems
with the WL proxy we switched to JDBC session
persistence. We then dropped clustering and session
persistence altogether because of performance reasons
and used switches to make sure that users
In
that case use a meta tag which contains the name of the page . Whenever
you want the action to forward to the input page, use the mapping.findForward(
"jsp page name") . The name of the page will be got from the meta tag. If you
search the archives you will find something similar like
Here are your options:
You can deliver the interim page but hold the
connection until the action finishes. The interim
page should have javascript that onload will redirect
to a resolution page. The resolution page will look
into the session for errors and redirect to the error
page if an
Sorry, i was using the deprecated perform method and it was not being
called.
Michael Gluckman wrote:
Hi all
After my action class is instantiated the method findForward(admin)
returns a blank html page instead of the admin-frame page.
If I type the full URL path to the admin-frame it
you can try the example provided with the installation
-Message d'origine-
De?: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoye?: mardi 24 avril 2001 15:51
A?: [EMAIL PROTECTED]
Objet?: wizard style example, anywhere?
Hello struts-users,
I am very new to Struts (or JSP for that
If your calling this funcation
mapping.findForward(mapping.getInput()
)
How to you
pass the argument to that input page,
-Original
Message-
From: Nanduri, Amarnath
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:47
AM
To:
'[EMAIL PROTECTED]'
Hi i am getting the following error using the Resource
file. Has anyone come across this error.
Missing message for key hello.title:
My JSp file uses the bean.tld and is as follows:
html
head
title
struts-bean:message key=hello.title/
Hi i am getting the following error using the Resource
file. Has anyone come across this error.
Missing message for key hello.title:
My JSp file uses the bean.tld and is as follows:
html
head
title
struts-bean:message key=hello.title/
I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample. I've checked the classpath already. Whatelse can I
check.
CLASSPATH: d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples
COMMAND
the syntaxd is wrong
struts-bean:message key=hello.title/
try this
bean:message key=hello.title/
-Message d'origine-
De: sampath kanakaraju [mailto:[EMAIL PROTECTED]]
Envoye: mardi 24 avril 2001 18:17
A: [EMAIL PROTECTED]
Objet: struts resource file error
Hi i am getting the
We're trying to separate the pages in our app into secure and non-secure.
As part of that, we would like to have situations like the login page, the
one that displays the form for getting your username and password, to be in
the non-secure section and the Action that receives the submit from the
You need to add the .jar files for Xalan to your classpath, not just the
folders (you only add folders to your classpath when they contain unarchived
.class files). This means including at least xalan.jar and xerces.jar
(the XML parser which Xerces requires) in your classpath (see the bin
folder
HELP!! Does anyone have a suggestion!
-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build
I am getting this problem when testing to make
Here is the content of my properties file:
*
prompt.hello=Message from Session Bean
prompt.hello.heading=h1Sample page just to see the
working of session with struts/h1
errors.footer=/ulhr
errors.header=h3font color=redPage
Validation/font/h3Please
Title: please help me with ActionForm
Hi all,
Is anybody knows how Struts clean up object like ActionForm? can we program to control the clean up this object explicitly? also, can i put ActionForm into the session container that i create where i uses it to store proxies to session, mean
We may be able to steal an idea here from Zope (which is a Python-based
application server). The built-in templating language (called DTML) has a
tag to iterate over a sequence much like logic:iterate. Within the scope of
that tag, it defines several variables that can be used in each
Use a
bean (filled with the arguments / parameters to be used in the input page) and
do
request.setAttribute("mybean", mybean) ;
mapping.findForward() ;
-Original Message-From: Sundaram Ramasamy
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 11:43
AMTo:
Title: please help me with ActionForm
Everything depends on the scope your ActionForm is
in
If it
is request scope, after a response was submitted, the bean gets destroyed. If in
session scope, once the session gets invalidated. If in application scope then
when the server goes down.
everything seems to be allright but
what's the name of you .properties file and is it in the classes folder ??
-Message d'origine-
De: sampath kanakaraju [mailto:[EMAIL PROTECTED]]
Envoye: mardi 24 avril 2001 18:56
A: [EMAIL PROTECTED]
Objet: here is my properties file
Here is the
Hi,
I can run the struts-example sucessfully in VAJ 3.5.2-Tomcat environment,
however, I got a error of missing message for key when I load my own
project.
I placed properties file under myproject\Web-inf\classes\, and it is
specified correctly in the web.xml. The project containing java
In general, people expect the page that receives their password to be
secure. When that is the case, the Struts forms operate properly, and
maintains the secure connection.
I believe that if you do this any other way, the password will not be
transmitted by SSL.
The trouble I'm having is
Hallo Niall,
during my first steps in Struts I walked straight into the same Problem and get
arround with ugly
indizes in the JSP. As my solution works fine, it's not very elegant.
So could you please send me your modified Taglib-Code or a download address?
Thanks in advance
Uwe
Niall
Chris Brown was correct. You need to understand how the Classpath works.
Instead of
CLASSPATH: d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples
1) Locate the xalan.jar and ensure that it is in your classpath:
You will have to
Do you need . in your CLASSPATH also?
Just a thought?
Todd
[EMAIL PROTECTED] 4/24/01 2:14
Im sending to both groups for maximized feedback.
I am executing a compiled Xalan sample and getting an error. Does anyone
know why I could be getting thread issues.
Also, do you need the package information on the SimpleTransform class? Does it have a
package? Or is this a class that you wrote?
HTH,
Todd
[EMAIL PROTECTED] 4/24/01 2:14
Im sending to both groups for maximized feedback.
I am executing a compiled Xalan sample and getting an error. Does
You aren't having thread errors, Java just can't find
your class. If the SimpleTransform class is in
current directory make sure . is in your classpath.
scott.
--- TODD HARNEY [EMAIL PROTECTED] wrote:
Also, do you need the package information on the
SimpleTransform class? Does it have a
How exactly do I implement it? The doc
say "The application context-relative path to the action", but this is not
clear to me. I am having the same trouble implementing the "input"
attribute. Can anyone make this clear for me: What should the
value
thanks. solved it already. we had 2 pairs of eyes looking at the classpath
and still missed it.
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Thread errorWHY?
You aren't having thread
something like /menu.jsp instead of
menu.jsp
-Original Message-From: Jonathan
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 3:35
PMTo: [EMAIL PROTECTED]Subject: Can someone
explain the "path" attribute in action-mappings
How
Try
using a single Form but 3 different Actions (for flexibility). The form is send
from page to page. Set a dirtyflag in the form which checks what page the user
is in. Based on that value, do the corresponding validation in the
Form.
Amar..
-Original Message-From: Jonathan
Hi G.L.,
I don't know if this helps but can you do a global search for all
*.properties files on the classpath (including your web-app classpaths) and
put main.title in them. I have a feeling Orion is reading the wrong
*.properties file on your system.
Good Luck,
Abraham
-Original
Hi everyone.
Just wondering if anyone is compiling their Struts pages using Ant?
Is there a built in task that will work with Struts tags etc?
Thanks,
Dave
I have an example doing multi-page validation, but you
need to define what field is on what page in the xml.
I'm working on a more MVC'ish multi-page design, but
that isn't done yet.
http://home.earthlink.net/~dwinterfeldt/
David
--- Nanduri, Amarnath
[EMAIL PROTECTED] wrote:
Try using a
Hello all,
Sorry this is a bit off topic...I posted this on the taglibs-user
list but haven't had any luck.
How do you make an object available to the page as a script variable in
a taglib without having to use a getAttribute() method to retrieve it?
The jsp:useBean taglib allows you to
Can you elaborate? Are you saying1
ActionForm and3 Action objects? Do you validate in the ActionForm or
in the Action? Can you please explain the "dirty flags"
technique?
- Original Message -
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Tuesday, April 24,
Please share some techniques
guys.
Do we get a Local object when we use struts, or do
we have to implement it? It look like I get a default Local object for
free, but if I want to be able to change languages on the fly I have to
implement more Local objects. The documentation says:
"When the user logs on, the application can
If a Locale object isn't in scope, the ActionServlet
will make one based on Locale.getDefault(). You can
change it like this.
session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY,
new java.util.Locale(fr, ));
David
--- Jonathan [EMAIL PROTECTED] wrote:
Do we get a Local object
1
ActionForm and 3 Action objects. The reason for the 3 actions is it gives you
flexibility in your business implementation. I personally would not do any
business logic till i have all values in hand. So ActionObject1 and
ActionObject2 will just send the user to the correct next pages. It
I
believe Locale Object (or) Local object is stored under a key in session. All
you have got to do is create a new Local Object and put it under this key. In
this way struts will be easily able to pickup the new locale. Somebody in the
mailing list has asked for this before. If you check
I have followed the instruction on configuring iPlanet but I am still
getting no where. I have unzipped the struts example war file.
[24/Apr/2001:17:54:57] warning ( 1152): Internal error: Failed to get
GenericServlet. (uri=/strut/index.jsp,SCRIPT_NAME=/strut/index.jsp)
[24/Apr/2001:17:55:56]
I've looked through the mail list but still don't quite get it.
I'm working on a form that can create or edit a particular role and it's
functions I want to (in create mode) select multiple functions and then in
edit mode display those multiple functions selected in a multiple select
listbox. Do
I'm getting a javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:449)
when I try to do validation, so I went back to the basic struts example
and tried to dissect it. I've ended up being even more confused about
how
Someone told me they thought some of my tag-libs
were depricated and that I shouldn't be using them anymore. From the examples at
Bluestone, I added these to my web.xml file. The web site only shows four that
look to be needed.
template, logic, form, bean.
Are these correct?
If anyone
Gary,
I
believe the form taglibs are deprecated. Instead, the 'html' taglib is used.
Iraklis
-Original Message-From: G.L. Grobe
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 8:14
PMTo: [EMAIL PROTECTED]Subject: needed
taglibs
Someone told me they thought
Anyone know why struts uses forward instead of
redirect?
At 11:13 PM 24/04/01 -0400, you wrote:
Anyone know why struts uses forward instead of redirect?
A redirect sends a request back to the browser, thus generating another
connection between the client and server. Forward keeps it internal
to the server, which also means you can re-use the request
Im sending to both groups for maximized feedback.
I am executing a compiled Xalan sample and getting an error. Does anyone
know why I could be getting thread issues.
--
REVISED CLASSPATH (i re-installed jdk to root
65 matches
Mail list logo