Mike Campbell wrote:
I want to be able to have a set of errors returned to an input page
such that I can spit out an error of a particular TYPE next to a
particular input, to indicate something in particular was wrong with
this particular field. I'm a bit lost on how to accomplish
christian reichlin wrote:
hi,
im looking for an easy way to "configure" actions.
One general approach to this comes from the fact that you can subclass the
ActionMapping class with your own, which could then include some additional
properties. Then, you could say:
action
"Geddes, Mark (ANTS)" wrote:
Using last night's build (20010128) I get the following error using Weblogic
6 and the struts-example web-app.
Error in using tag library uri='html' prefix='/WEB-INF/struts-html.tld':
There is no setter method for property 'lowsrc', for Tag class
I am working with mod_jk with Apache 1.3.14 and Tomcat 3.2.
I configured the Tomcat to use Ajpv13 protocol.
I am doing upload of files.
When the upload files are text files: there is no problem, but when the
upload files are binary files, I get Unexpected end of file
I read the file from the
Misak,
I've found the pager tag that James over at http://www.jsptags.com has
developed is quite powerful and usable. I've used it in some prototypes
using Struts and Tomcat. One of my colleagues attempted to get it to work
under Weblogic without much luck, but we didn't spend much time on it.
"Winters, Jason" wrote:
I'm trying to setup my application so that the initial page is an action.
When the user enters a URL like this, http://server/myapp they should be
sent to http://server/myapp/index.do. At the moment, they get forwarded to
http://server/myapp/index.jsp which crashes
Is there a prefered way to implement graphical buttons within a struts form ?
By graphical buttons I mean 4-state buttons
(enabled/disabled/mouseover/down) that display a different image for each state.
Christophe
Hello Christophe,
Thursday, February 01, 2001, 2:31:28 PM, you wrote:
CT Is there a prefered way to implement graphical buttons within a struts form ?
CT By graphical buttons I mean 4-state buttons
CT (enabled/disabled/mouseover/down) that display a different image for each state.
You can use
Title: Blank
Hi -
Am I correct in inferring
that the Struts templates don't process Struts tags in the subordinate
files?
Carl Tallis
Director Of Products
SupplyLinks, Inc.
Tel:(703) 796-6010
Fax:(703) 796-6014
email: [EMAIL PROTECTED]
I had the same results using Tomcat 3.2. I ended up taking Ted's advice and
used a logic:redirect in my index.jsp page that redirects to index.do if the
request scope beans that are needed are not there. Thanks for your help
everyone!
Jason
-Original Message-
From: renzo estrella
Thanks a lot,
--- Matthias
Matthias Bauer +++ [EMAIL PROTECTED] +++ LivingLogic AG +++ www.livinglogic.de
"Craig R. McClanahan" wrote:
Matthias Bauer wrote:
Hi all,
I tried to use struts with MySQL (driver "mm.mysql.jdbc-1.2c" = class
"org.gjt.mm.mysql.Driver") and ran into an
Hi All,
Here's a sequence diagram (.GIF format courtesy of TogetherSoft) that I created based
on the article below. Although outdated, conceptually it is still valid.
Enjoy!
Gerry
At 06:18 PM 01/29/2001 -0800, Wong Kok Wai wrote:
There was a very good article of Struts in the Nov
2000 issue of
Hi,
If the bean:parameter is used and the request parameter (the name
specified)
isn't found i don't want an exeception but i want the bean parameter to use
a
empty string ("").
So that after that all bean:write prints that empty string if the paramter
wasn't there.
I want this behaviour
In [EMAIL PROTECTED] this issue was discussed (why and when
IE supports different sessionID, and Netscape - not). The main thing is,
Netscape is reading any cookies from one file, IE - from different files.
Peter Alfors wrote:
I.E. 5.0 and 5.5 generate unique session ids for each simultaneous
Hi guys
I want to access a property of my ActionForm in a jsp file and use it to
construct a anchor..
The ActionForm is in the request scope and is being passed to the
desired jsp page.. (verified using request.getAttributeNames())
However how do i access the value of a property..
Please
In [EMAIL PROTECTED] this issue was discussed (why and when
IE supports different sessionID, and Netscape - not). The main thing is,
Netscape is reading any cookies from one file, IE - from different files.
Do you have a reference to said article? If not how about the subject and date?
I.E. 5.0 and 5.5 generate unique session ids for each simultaneous
browser session. However, both Netscape 4.7 and Netscape 6 return the
same Id.
I dont think that URL-rewriting will help in this situation. If I
understand URL-rewriting correctly, all that is happening is that the
session id
My experience is the same as yours.
--- [EMAIL PROTECTED] wrote:
Wong,
Yes you are correct it works fine (today) with jaxp
as well. I am not sure
why I had problems before. So step 1 can be changed
then...or just
excluded):
(1) Verify that an XML parser (e.g. Xerces or JAXP)
has
...maybe that is what you want to do..?
jsp:useBean id="myForm" scope="session" type="myPackage.MyForm"/
table
tr
td%= myForm.getSomething() % /td
/tr
/table
where you have to 'deploy' your form with scope 'session'
form-beans
Is there a to remove the bean from the session scope
after the purpose is solved.
Say I have 50 pages and out of that 5 pages share one
form bean. I would put that bean in the session scope.
But I dont want that to be alive for that entire
session except for that 5 pages right
Another
I have just tested our web application prototype on Netscape 4.7 and there
are no problems
with URL-rewriting and jessionid's.
The servlet container (Resin 1.1.5) picks the right sessions for the right
clients.
We use a mix of hardcoded with dynamic jsessionid insertion, Struts
html:link and
The html:text tag
documenation says that the property attribute must be the name of a bean
property of type String but it seems to work with other types because I have a
form field that maps to a property of type double. The html:hiddentag does
seem to enforce the String only rule. I wasn't
Similar question. Is there good recommendation to
handle html:text when the
property attributeof a bean whose propertyis type "Timestamp"?
Thanx.
Silvia
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]Sent:
Thursday, February 01, 2001 8:44 AMTo: Struts ListSubject:
html:text vs html:hidden
Peter,
I.E. 5.0 and 5.5 generate unique session ids for each simultaneous
browser session. However, both Netscape 4.7 and Netscape 6 return the
same Id.
What do you mean by simultaneous browser sessions. If you create a new window
CTL+N in IE5.0 you get the same id. (Is this simultaneous?)
On 2/1/2001 at 9:03 AM John Hunt wrote:
Is there a to remove the bean from the session scope after the
purpose is solved.
Yes. You can remove the same as any other bean. If a new one is needed
later, Struts will create it again. Here's a snip from the example
application:
// Remove
Mike Bell wrote:
Hello,
Is it possible to create an ActionError
without using a message resource?At this time we don't really have a need
for a message resource and wouldlike to just put the error message string
directly in the call. like:
ActionErrors errors = new ActionErrors();
Wong Kok Wai wrote:
The latest 20010131 binaries is only 1k byte in size!
Yah ... some stuff changed in Ant and other tools that caused my nightly
build process to croak. I will do what I can to get this rectified
soon.
Craig
Title: RE: question on errors, how to handle
Perfect Craig, thanks. I suspected there was something like this.
When you store an error in the ActionErrors collection, you have the
option to associate it with a particular field:
ActionErrors errors = new ActionErrors();
String username
Amir Nuri wrote:
I am working with mod_jk with Apache 1.3.14 and Tomcat 3.2.
I configured the Tomcat to use Ajpv13 protocol.
I am doing upload of files.
When the upload files are text files: there is no problem, but when the
upload files are binary files, I get Unexpected end of file
I
Craig,
Is there a way that only the error message(e.g., username is required) appears next to
the error field instead of the headings:
VALIDATION ERROR
You must correct the following error(s) before proceeding
also appearing with it. It will be good if the heading could be at the top of the
It was posted as a Subject : "what starts session?", Date: Wed, 24 Jan 2001
16:07:49 -0800 (PST) and responses were followed.
"Steven D. Wilkinson" wrote:
In [EMAIL PROTECTED] this issue was discussed (why and when
IE supports different sessionID, and Netscape - not). The main thing is,
If you are using WL 5.1 then please try the following (see attachment) and
let me know if it works...
I never encountered this classCastException, but if the workaround suggested
by Renzo is successful please let me know so it can be added to the install
notes for WL. More than likely after you
"Steven D. Wilkinson" wrote:
Peter,
I.E. 5.0 and 5.5 generate unique session ids for each simultaneous
browser session. However, both Netscape 4.7 and Netscape 6 return the
same Id.
What do you mean by simultaneous browser sessions. If you create a new window
CTL+N in IE5.0 you
Could any one tell me the mail archive URL?
http://archive.covalent.net/jakarta/struts-user/2001/01/date.xml seems to be
outdated
thanx,
vijay
Title: RE: session ids cont...
I had similiar problems. You need to turn off the use of Cookies on your server (in Tomcat this setting is in server.xml). When the user opens 2 browsers, they will always have different session ids in both IE and Netscape since the first URL they will use will
-BEGIN PGP SIGNED MESSAGE-
Hello, Im trying to use Struts with BEAs Weblogic, but cant even
make the example work! Im having ClassCastException errors at the load()
method at MessageTag; its probably some problem with the ClassLoaders,
since the class is really a
1.What is the normal practice in the case where you
have two pages, and part of the input entered in the
first page needs to be displayed in the second page. I
would say use the same form bean for both the pages.
Any objections to this?
2. When displaying readonly contents on a page where
the
Peter Alfors wrote:
"Kramer, Gary" wrote:
I had similiar problems. You need to turn off the use of Cookies on
your server (in Tomcat this setting is in server.xml). When the user
opens 2 browsers, they will always have different session ids in both
IE and Netscape since the
John Hunt wrote:
Action class calls reset of the form bean. Can we
explicitly call that method in the Action class.
Actually, the controller servlet calls reset() before it calls all the
property setters that correspond to your input fields.
You can certainly call this method from within an
John Hunt wrote:
1.What is the normal practice in the case where you
have two pages, and part of the input entered in the
first page needs to be displayed in the second page. I
would say use the same form bean for both the pages.
Any objections to this?
This would also be the normal
Robert Quillen wrote:
Maybe the "scope" attribute should be "fromScope" as well?
That would make sense, but there's a consistency argument to consider as well --
the "name", "property", and "scope" attributes are comon to lots of Struts tags,
and they always do the same thing -- I'd rather
Hi All,
I am pretty new to struts. But when I read about it , I really liked it.
Whats the status of it ? I know the latest release was 0.5. When is 1.0
expected ?
Can I use it for production now ? Is it that stable ?
Does 0.5 version supports DataStore ( for connection pooling ) ?
Thanks in
"Craig R. McClanahan" wrote:
John Hunt wrote:
1.What is the normal practice in the case where you
have two pages, and part of the input entered in the
first page needs to be displayed in the second page. I
would say use the same form bean for both the pages.
Any objections to this?
Hi all
I've created a form like so:
form:form name="users" action="users.do" focus="username"
type="com.admin.forms.UsersForm"
which contains a select box named 'username'
I want to provide a link which will post the form. I've created
UsersForm.java to validate, and it returns an error if
Hello all.
I am very new to Struts. I have downloaded the binary version of Struts 0.5 from
the web and read thru the docs and also ran the examples. I was interested in
building the example application instead of copying the WAR file to the webapps
directory of jakarta-tomcat. I am not nure
Hello all.
I am very new to Struts. I have downloaded the binary version of Struts 0.5 from
the web and read thru the docs and also ran the examples. I was interested in
building the example application instead of copying the WAR file to the webapps
directory of jakarta-tomcat. I am not nure
First off let me suggest to you to download the latest nightly build and
start from there. Porting from 0.5 to 1.0 is a real headache. If you do
this, remember that action.xml is depreciated in 1.0 use struts-config.xml
instead.
About your problem. At first glance, it seems that you are pointing
Whats the status of it ? I know the latest release was 0.5. When is
1.0 expected ?
The 1.0 todo list is part of the package, which you can check on the
Web site. There are a few documentation tasks, and Craig mentioned a
showstopper that needed to be fixed, but it's not listed in BugRat
i posted a suite of tags for improved handling/dealing with ActionErrors
to the struts-dev list some time ago. maybe these would be of use
in some or all of these cases. feel free to pilfer...
they may require some tweaks to work with the current build of struts
(i haven't tested it since i
Matthias Bauer wrote:
Hi all,
I tried to use struts with MySQL (driver "mm.mysql.jdbc-1.2c" = class
"org.gjt.mm.mysql.Driver") and ran into an Exception each time I tried to start
Tomcat:
I just submitted a patch to catch this -- it will show up in tonight's nightly build.
Craig
"Steven D. Wilkinson" wrote:
Maybe Craig can answer you direct concern about 'error-less version' as compared
to 0.5 version?
My feeling is that the currently nightly builds are pretty solid -- several bugs in
0.5 have been fixed here, and the new code seems to work well for lots of folks.
The first step is to check you're using SP8.
The second step is to check whether struts.jar has
been added to the Java or Weblogic classpath. If so,
you must remove it from both these classpaths and just
put struts.jar in the WEB-INF/lib directory and
WebLogic will load the classes from there.
I should have made it clear that I am using POCKET PC IE which doesn't support
MultipartRequest (i.e., the input type="file" ... ). I try to URLConnection
class to simulate an HTTP PUT request to upload a file to the server. But I
couldn't find out how the PUT protocol should be handled in
53 matches
Mail list logo