The ActionForm class is the base class from which your form bean classes
should be derived. The ActionFormBean class is used internally by the Struts
controller, and is very rarely used in Struts applications.
--
Martin Cooper
- Original Message -
From: "Will Spies/Towers Perrin" <[EMAI
I don't know if this would explain the exact errors you're seeing, but
Tomcat 3.2.1 is known to have many bugs that could affect a Struts
application. You should switch to Tomcat 3.2.2 or later if you can.
Mail archives can be found in at least these two places:
http://archive.covalent.net/
http
Did you remember the taglib directive at the top of your JSP? That is, you
need:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
Otherwise, your and tags will be silently
ignored. Annoying, but true. :-}
--
Martin Cooper
- Original Message -
From: "Abraham Kang" <[EMAIL P
You don't need the import, or the scriptlet, or the 'type' attribute in the
tag, and you should be able to use the 'name' and 'property'
attributes instead of the 'collection' attribute with a scriptlet. That is,
given what you said about your 'floorplan' object, the following should be
all you n
Newbie question.
Is the form parameter in the perform method meant to be used both for input
values and output values (from the Action)?
If not how do I specify the output form?
:-)
What issues are there if i give access to all the jsp pages in an
application only through the action servlet? Is this a good practise to
follow?
Is there any collection of struts best practices somewhere?
TIA.
Ajit
There isn't a 'text' attribute for the tag. If it is
referenced somewhere, that would be a documentation bug - please let us know
where you are seeing this.
The documentation says: "The text displayed to the user comes from either
the body of this tag, or from a message string looked up based on
You have to prefix the path to your DTD with "file:" to make it a valid URL.
--
Martin Cooper
- Original Message -
From: "Trevor Griffiths" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 03, 2001 9:26 AM
Subject: Newbie - Digester/Sax Parsing Error
> Hi,
>
> I'm doin
To have multiple items selected, I believe your levelOneClassifList property
will have to be a String array (i.e. String[]). The tag will
use the array specified by the 'name' and 'property' as the list of values
which should be initially selected.
--
Martin Cooper
- Original Message -
Forgive me for replying to myself, but I think I may have figured out
what's going on: the second bean is not populated from the first bean
as I mistakenly assumed -- it's populated from the request! So, just as
the first bean got its name from the request parameter, the second get
its name from
I have a project where internationalization was a requirement. For the
most part, the page display speed is pretty fast. However, I have one
page where there are several tags and tags
etc. This page tends to be slow when it is rendering. It is compounded
if I open more than one browser a
You would need more than just enhancements to however to
have paging functionality similar to the pager taglib at jsptags.com, you
would also need tags for the index (previous/next, etc).
I've used the pager taglib inconjunction with Struts and find it to work
well... is there any point inventi
Hi Ted,
I did a redirect instead of forward in the perform method of Action class.
String url = aMapping.findForward("somepath").getPath();
ActionForward fwd = new ActionForward( url, true );
return fwd;
Regards
Eric
Ted Husted wrote:
> Any lu
same here. I would like to get involved in this also
[EMAIL PROTECTED] wrote:
> Hi Stanley,
>
> I was thinking of doing exactly the same. Although I am a struts newbie, I
> myself am dabbling with such a task. I'd like to help in any way I can.
>
> Cheers,
>
> Joseph.
>
> -Original Message--
I think it is a good idea to have a generic attrbitue for the tag too.
Do anyone has any idea when when will this feature be in Struts?
Regards
Eric
Alastair Briggs wrote:
I think it would be a good idea to have this property
on all tags as this means that the system is able to cope with those
Hi,
I am having a strange problem.
I have an action nmapping defined as
And then in my XDIViewAdminConfigForm.jsp, I have the
following :
When I request this, I get the following exception :
"javax.servlet.jsp.jSpException : Cannot retrieve
definition for form bean n
Hi Stanley,
I was thinking of doing exactly the same. Although I am a struts newbie, I
myself am dabbling with such a task. I'd like to help in any way I can.
Cheers,
Joseph.
-Original Message-
From: Stanley Tan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 18 April 2001 9:14 PM
To: [
Sorry for the confusion. My aside was off-topic and not directly related
to the odd/even question (though I ~would~ need to do both in the end
result).
I meant using iterate instead of something like
< http://jsptags.com/tags/navigation/pager/ >
David Winterfeldt wrote:
> What are you suggesti
What are you suggesting when you mention having
iterate work like a pager? Do you mean having the
iterate tag call a method on a bean before or after it
iterates? If the interface gave the bean a handle on
the environment then it could even a create a variable
that could have the row color.
Dav
Is there a good example that I can use, to represent a table of select
inputs ?
I tried using a two dimensional array without much success.
thanks
Venkata Allamsetty
At 16:24 18/04/01 -0400, you wrote:
>You probably * don't * want to copy anything over from Struts except for
>the WARs.
>
>Having the struts.jar on your classpath while running your container is
>problematic (since it is also loaded from the WAR).
>
><
>http://jakarta.apache.org:8080/jyve-faq/Tur
It has been replaced by struts-config.xml
-Deep.
>
> Hi,
> I am new to struts and was going thru the
> documentation for struts 1.0-b1. I found that
> action.xml file is no more necessary in version 1.0.
> Could anyone please clarify with this. The
> docuementation says that this file has been
it's now called struts-config.xml
sampath kanakaraju wrote:
> Hi,
> I am new to struts and was going thru the
> documentation for struts 1.0-b1. I found that
> action.xml file is no more necessary in version 1.0.
> Could anyone please clarify with this. The
> docuementation says that this file
Hi,
I am new to struts and was going thru the
documentation for struts 1.0-b1. I found that
action.xml file is no more necessary in version 1.0.
Could anyone please clarify with this. The
docuementation says that this file has been
deprecated. I am confused.
Thanx for the information.
sampath
__
It is true that patch 3 does not speak about change of version of XML parser
or
the introduction of JAXP in WTE. Maybe patch 4 :-)
- Original Message -
From: "Kyle Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 10:55 PM
Subject: Re: How to run Struts in
Although I don't like to place Java code in my JSP
pages, this is how I accomplished this:
<% if(index%2==0) { %>
<% } else { %>
<% } %>
index++;
--- Anthony Martin <[EMAIL PROTECTED]> wrote:
> I'm sure I'll get to this in my project. Why not
> make it a read property of
> the bean?
>
I agree that VAJ 3.5.3 will be released next week -- in fact I'm working
with an IBM internal beta now. It should work with Struts, however, that
does not necessarily mean it will work with Struts :) I'm going to remain
commentless until I prove that it works. I'm working on moving Struts over
Is there any simple example that shows how i can link page from one page to
another page.
e.g.
I have one jsp that shows user list
USER IDUSE NAMELOCATION
PHONE
=== == ==
1TAHIR IQBAL
I'm sure I'll get to this in my project. Why not make it a read property of
the bean?
protected String rowColor = "#FF" ;
public String getRowColor ( ) { return this.rowColor ; }
public void setRowColor ( String value ) { this.rowColor = value ; }
Then all you need i
You probably * don't * want to copy anything over from Struts except for
the WARs.
Having the struts.jar on your classpath while running your container is
problematic (since it is also loaded from the WAR).
<
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/S
Yes, but I haven't tried it with Orion.
[EMAIL PROTECTED] wrote:
> Anyone using components on top of struts? I got a problem when I tried to
> execute comps-tutorial.war (tutorial from components) within orion.
I like Christine's answer better, but here's a simple solution using
(ugh) a scriptlet.
<% int i = 0; %>
<% i++; if ( i % 2 == 0) { %>
<% } else { %>
<% } %>
{ columns }
What I would really like to see (before I write it myself) is code for
using iterate as a pager. The hooks seem
VAJ 3.5.3 will be released next week.
http://www7.software.ibm.com/vad.nsf/data/document4541
And WTE will implement Servlet 2.2 and JSP 1.1,
so it will work with Struts.
- Original Message -
From: "Kyle Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 3:
I think I found a bug or, as Larry Wall might say, it would be difficult
to interpret it as a feature. :-)
I have an Action that occasionally needs to forward its request to
another Action. So the element in its corresponding
element has a path with a suffix of "do" instead of "jsp". The
ass
Yes, I thought of that, but reset() is not being called (I put a println to
see). Rather, a brand new form is being passed (which is correct if it was
at request level). This is why I wanted to keep the old one in session.
- Original Message -
From: "Rob Leland" <[EMAIL PROTECTED]>
To:
> Eric Rasmussen wrote:
>
> I am trying to set a form bean in session so it can be used accross
> Action classes. Specifically, I am trying to get the form bean to
> remember a value so it can repopulate the jsp page accordingly when
> that page appears again (if the user hits 'cancel').
> A
James Howe wrote:
It's not a
> terribly big deal, but it seems as if the name attribute shouldn't have to
> be required if some sort of "default" bean is available for the page.
The original designers were probably trying not to couple the logic
tags to the html tags, or to struts itself.
The na
I would like to configure a form bean with a property that contains a
collection to be rendered as a select statement, but I can't get it to work.
If the options collection attribute is not specified, the docs say that you
can
specify just the property:
"The value of this attribute is the name o
I am trying to set a form bean in session so it can be used
accross Action classes. Specifically, I am trying to get the form bean to
remember a value so it can repopulate the jsp page accordingly when that page
appears again (if the user hits 'cancel').
My assumption: that setting
woul
I'm using the tag to add parameters to a dynamically generated
URL used by some javascript on my JSP page. The problem with
is that it doesn't URL encode the result. In general, this is probably a
good thing. However, there are times when it would be nice to have the
value encoded. Would
Can anyone help?
See code below. It's a very simple iterate.
I have an form item called 'id'.
I want to set itemName (in the submitRollo tag) to the value of that id.
(it's a submit button tag)
Keep in mind this is in an iterate tag and that there will be many buttons
all with the same action
Have created a hack to do this, using
Surely there is a cleaner way to do it than this?! Not least as I have to do it
for month, year, hour and minute as well!
Seems like I already have "day" right there, but can't figure out how to acc
Hi, people!
I am beginning in JSPs, Tomcat and Struts now: please, be pacient. ;)
What I do:
Copy *.war files from struts distribuition into webapps
tomcat directory
Copy * from struts .\lib dir into tomcat .\lib dir
Modify se
Folks,
Anyone using components on top of struts? I got a problem when I tried to
execute comps-tutorial.war (tutorial from components) within orion.
Any ideas? Pls c the attachment for error.
P.S.
I already moved the dtd files from struts.jar into the classes directory.
Thanks in advance!
Ch
I apologize in advance if this topic has come up before, but ...
I'm building a Struts JSP page containing a form. I've noticed that the
HTML tags typically do not require the specification of a "name" attribute
in order to retrieve property values from a bean. If the name isn't
specified, t
Hi. Am aware that you can set value= on html:select tag, as "the value to
compare with for marking an option selected". For example, in the code below,
to display "08" when jsp loads
Before this jsp, I am filtering some records and want
The form bean is created by the html:form tag, or by an Action class,
under the attribute name given in the config file. Are you looking for
it before it is created?
But, given that the flow has passed the html:form tag, or returned from
the action, and given something like
then
should exp
Hi, try extending the iterate tag and modify it to take in 2 (or however
many you want) stylesheet parameters. Say styleGrey and styleWhite. While
iterating through your collection use the different stylesheet attributes
and apply them to every other row.
I've got something that works similar t
I used a simple java/jsp hack to do this for something similar
(multiple columns for one resultset), but maybe there's a better way.
One thing I noticed is that didn't seem to like
an integer primitive as opposed to a String.
<%
int rowCount= 0;
int columnMod = 0;
%>
<%
Actually it may work. According to the documentation the Oracle Servlet
Engine (which is different to JServ) is Servlet 2.2 compliant so should be
able run Struts-based applications. If anybody does get something working I
would be interested in details of how they did it.
> -Original Message
Then don't call removeAttribute. Just call setAttribute to replace the
value of your key. Your app server's session implementation will (or
should) manage synchronization. Of course, one or two of your clients
might get a slightly stale list, but you can't help that. At least,
they'll never ge
problem solved.
my struts-config action didn't match the .do action on my link.
duh.
thanks for all who gave it thought.
:)
jessica
-Original Message-
From: Anderson, Jessica [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:36 AM
To: '[EMAIL PROTECTED]'
Subject: iPlanet and S
Hello,
I have the following code to build the table:
==
Maybe your browser doesn't render correctly your page, due to a problem with
generated html tags. Check the source code of the resulting page : do you see
evidence of "missing" parts ?
Cedric
Olivier Houyoux wrote:
> Hi,
>
> I'm using the template library to create a dynamic template for
iPlanet users:
I've built my WAR file to include content, action classes, controller and
config files (I also have struts.jar, parser.jar, and jaxp.jar in
WEB-INF\lib), but i am getting the following error when clicking a link with
a
.do?[some parameters] extension.
Error:400 SC_BAD_REQUEST
nu
Hi, all,
If I want to use to retrieve one property of current form bean as
a JSP bean(an attribute accessible to the remainder of the current page), how
can specify the attribute name of the form bean? I have tried the name from
struts-config.xml where I define the form bean, it is still saying:
When I do this
The rendered URL is
http://192.168.0.190:8082/mm06/editLoginInfo.do?personnelID=1">Login
Information
If I change the order of the paramId's the rendered query string only
contains the last parameter specified.
I know I can use a hashtable of parameters, but I'm trying to
Hi,
How can I access the action mapping instance if session is expired?
I have a global forward in struts-config.xml which points to logon page
in session expires I need to forward to logon page
something likeif ( session == null ) mappin
A couple of possibilities:
1) Are you storing the list or a reference to it in session as well as servlet
context? It may be that you still have a reference to the old list somewhere.
2) Are you calling context.getAttribute() again to replace your reference with
one to the new list?
3) Sanity
Hi all,
I get this error when trying to access my struts app over an
intranet using just IP:port/context rather than hostname:port/context.
I'm using struts source( ~4/13), tomcat 4.0-b1 standalone.
This is a new one to me.
thanks
john ware
Oh,
I thought about using removeAttribute() and then setting the attribute of
the list again but I am worried about pulling a list out of the
servletcontext just as a person might be accessing a page that needs that
list.
Regards
Alex
Hi so far my list caching is going well,
I have set up a thread to monitor database changes and to update the lists
stored in the servlet context. Unfortunately, although my program is
noticing the change in the database and it is recompiling the data and
putting the new data into the context un
The new upload code still does not work under ATG Dynamo. In the upload
example, it still hangs just after the actual file is uploaded, and the
trailing fields are being processed.
I have tried it with all the popular browsers and different JDK's on the
server.
Anyone else out there using file u
Soeren,
>with version 1.0-b1 the parameter maxFileSize is recognised and a
>exception is. With the nightly build from 2001-04-17 it doesn't work
>any more. Obviously something changed in the mean time.
This was just recently fixed.
>Another problem is that that with version 1.0-b1
Mike,
I just added two new exceptions to be thrown when the content length or
maximum length is exceeded, they will be the root cause of the
ServletException thrown. Is this good enough to be able to elegantly handle
the problem for you?
-Original Message-
From: Rack, Mike [mailto:[EMAI
Hi Andreas,
I am running VAJ 3.5 enterprise with tomcat 3.1 as testing env. I found
this mail to be extrememly helpful, which guide you through the installation
and setup process.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00019.html
Besides, you can download the Apache To
Hi,
I have subclassed actionservlet. In the init method of my subclass I have
called super.init();
For some reason as I step through my code the init method of my subclass is
being run through twice.
Any idea why?
my web.xml file is as follows:
action
com.myCompany.rd.pwActionSe
Your form bean must have a property "fd". If the value of this property is equals to
"aValue" the button will be
checked.
Jean-Noel
- Original Message -
From: Sundaram Ramasamy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 3:24 PM
Subject: radio buttion c
This is done by checking the value of your radio tag and the value returned
by your getter method.
e.g if you have
if the getXxx method returns "2" the second radio button will be
selected.
Thierry
Thierry Cools Senior Java Developer S1 Brussels
Kleine Kloosterstraat, 23 1932 st
Thanks, it defined like this
its working.
-Original Message-
From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject:Re: getting size of a collection
- Original Message -
From: Sundaram Ramasa
If you do not need to pass any information back to the previous page,
then you could use a standard javascript call as your cancel link.
CANCEL
However, this requires that the user has a javascript enabled browser
(and does not have it turned off).
If you cannot guarantee this, you may want to a
- Original Message -
From: Sundaram Ramasamy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 3:14 PM
Subject: getting size of a collection
> Hi
>
> I have collection like this.
> <%java.util.ArrayList list = new java.util.ArrayList();
> list.add("First");
Hello.
How do I define the following radio button using htlm:radio tag. I don't
find the checked attribute
In html:radio tag.
Thank & regards
sundaram
Hi
I have collection like this.
<%java.util.ArrayList list = new java.util.ArrayList();
list.add("First");
list.add("Second");
list.add("Third");
list.add("Fourth");
list.add("Fifth");
pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
%>
Before processing this collection, I
Hi,
What do you mean by "it is required". Is that your requirement or struts.
I have a similar thing called reset which is just
Cheers
Kris.
-Original Message-
From: Stanley Tan [mailto:[EMAIL PROTECTED]]
Sent: 17 April 2001 10:43
To: [EMAIL PROTECTED]
Subject: No Ac
If you mean VAJ 3.5.2 (3.5.3 has NOT been released yet) then the following
instructions should work. This is from an upcoming article on this subject
that I'm going to submit to the VisualAge developer domain website.
Warning! This is a work in progress -- in particular I have NOT validated
that
Hi
I studied the documentation and now I like to run Struts in VAJ 3.5.3. I
would also like to run the Test Enviroment since I use EJB's.
I found a lot of mails in this mailing-list, but I did not found a
installation guide.
Can somebody help me ?
Does anybode know if there is such a guide or
I've received that error before when I forgot to include the taglib
directive for the logic library. That would prevent the "field" bean
from being created and result in the error you're seeing.
"Brett G. Palmer" wrote:
>
> I've been working on this problem for some time now. I
> finally had
Any luck with this Eric?
I'd like to do the same thing, a la auctions.yahoo.com
Everything works if I hardcode the references, but then you end up stuck
in SSL.
I started a SSL FAQ, and would like to include how to do this too.
<
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/Displa
It is possible to use the tag to expose the size of a collection:
...
...
...
...stuff
...
...
...other stuff
...
Jean-Noel
- Original Message -
From: Firmin David <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 11:17 AM
Subject: Using a collection a
There aren't any Struts tags for writing tables (at least not yet ;-),
but one workaround would be to try a standard JSP expression, like
background="<%=request.getContextPath()%>/images/table_top_chip.gif%>"
Jacob Thomas wrote:
>
> When creating a table row, is there a way to avoid having to
Hi all,
I am building a shopping cart example using the struts framework for
beginner's like myself. So far, I have a pretty simple shopping cart that
connects to a database.
Because I am new to this, I was wondering if any experienced programmer is
willing to review my work and help me impr
Hi Stanley,
> Let's say I have a link that allows a user to empty his/her shopping
> cart. The link to empty the cart points to "/empty.do". I
> do not believe
> this requires an ActionForm bean (PLEASE, correct me if I am
> wrong). Nonetheless, I have specified an ActionForm Bean
> because it
Title: RE: autocomplete attribute for html form tag
I think it would be a good idea to have this property on all tags as this means that the system is able to cope with those demands that are needed as things change. I get quite frustrated when using systems that don't offer this sort of funct
Something we could consider in the 1.1 timeframe is a generic "options"
property that would just render non-standard options verbatim. So in
this case we might have something like options="autocomplete=off" in the
Struts tag, and then the tags would just append that to the tag
properties, no quest
Hi Eric,
> Currently I am using the Struts html form tag to come up with
> the login form.
> As far as I know, we can have an attribute autocomplete='off'
> in the normal form
> tag to turn this feature off.
> However, the Struts form tag does not support this attribute.
There's no autocomplet
Hi all,
Let's say I have a link that allows a user to empty his/her shopping
cart. The link to empty the cart points to "/empty.do". I do not believe
this requires an ActionForm bean (PLEASE, correct me if I am
wrong). Nonetheless, I have specified an ActionForm Bean because it is
required
Hi,
I want to use a datasource in a Struts based application but I also want
to lookup this dataSource in objects that do not have an action or a
servlet object in their scope, f.e. DAO's. In this case, using the
struts-config.xml dataSource description doesn't seem the best of
sollutions to me, I
Hi all,
I'm having trouble using the logic taglib (specifically
greaterEqual/lessThan) with a bean of type java.util.Map.
I need to do varying logic based on the size of the map, but am having
trouble making the value of .size() available to the tags.
I'd like to do something along these lines, bu
well, for me with weblogic i noticed that putting
a specific location in the classpath helps...
and putting the file there. in the case below
it would require putting your properties file
in /com/yourDomain java classpath.
action
org.apache.struts.action.ActionServlet
Hi,
I found time to do a bit more testing on file upload.
with version 1.0-b1 the parameter maxFileSize is recognised and a
exception is. With the nightly build from 2001-04-17 it doesn't work
any more. Obviously something changed in the mean time.
Another problem is that that with
Hi,
Just wondering has anyone manage to turn off the autocomplete feature in IE thru
Stuts form tag?
Currently I am using the Struts html form tag to come up with the login form.
As far as I know, we can have an attribute autocomplete='off' in the normal form
tag to turn this feature off.
Howeve
92 matches
Mail list logo