Agreed, but not the case.
- Original Message -
From: "Dan Miser" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 11:13 PM
Subject: Re: struts not reading properties file
Most likely you have a copy of struts.jar somewhere on your CLASSPATH. It
only belongs in
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.
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
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,
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,
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
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 autocomplete
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
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
It is possible to use the bean:size tag to expose the size of a collection:
bean:size name="items" property="values" id="itemsSize" scope="session"/
...
...
logic:greaterEqual name="itemsSize" value="1"
...
...stuff
...
/logic:greaterEqual
logic:lessThan name="itemsSize" value="1"
...
...other
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.
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 bean:iterate ... problem for some time now.
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
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,
What do you mean by "it is required". Is that your requirement or struts.
I have a similar thing called reset which is just
action path="/reset" type="a.b.c.ResetAction"/
Cheers
Kris.
-Original Message-
From: Stanley Tan [mailto:[EMAIL PROTECTED]]
Sent: 17 April
Hello.
How do I define the following radio button using htlm:radio tag. I don't
find the checked attribute
In html:radio tag.
input type="radio" name="fd" value="" checked
Thank regards
sundaram
- 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");
Thanks, it defined like this
bean:size name="list" id="itemsSize" scope="page"/
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
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 Servlet Configuration --
servlet
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
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
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 a
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
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
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
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,
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
global-forwards
forward name="logon" path="/logon.jsp"/
/global-forwards
in session expires I need to
When I do this
html:link page="/editLoginInfo.do"
paramId="srcAction" paramName="personalInfoForm"
paramProperty="personal"
paramId="action" paramName="personalInfoForm" paramProperty="action"
paramId="personnelID" paramName="personalInfoForm"
paramProperty="personnelID"
Hi, all,
If I want to use bean:define 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
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
Hello,
I have the following code to build the table:
==
logic:iterate id="exchangeRate" name="cache" property="displayRates"
tr
td class="td0" align="middle"
bean:write name="exchangeRate"
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
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
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
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 bean:define didn't seem to like
an integer primitive as opposed to a String.
%
int rowCount= 0;
int columnMod = 0;
%
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
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
form-bean
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
bean:define id="dayList" name="LogFilterForm" property="days"/
html:select
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,
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!
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
Have created a hack to do this, using
bean:define id="thisDay" name="LogFilterForm" property="day"/
html:select property="day" value="%=(String)thisDay%"
html:options collection="dayList" property="value"
Can anyone help?
See code below. It's a very simple iterate.
I have an html:hidden 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
I'm using the bean:write tag to add parameters to a dynamically generated
URL used by some javascript on my JSP page. The problem with bean:write
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
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
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
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
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').
As you
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:
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 forward element in its corresponding action
element has a path with a suffix of "do" instead of
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:08
I like Christine's answer better, but here's a simple solution using
(ugh) a scriptlet.
tr
% int i = 0; %
logic:iterate id="lot" name="rows"
% i++; if ( i % 2 == 0) { %
tr bgcolor="#EE"
% } else { %
tr bgcolor="#FF"
% } %
td { columns } /td
/tr
/logic:iterate
What I would really
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.
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).
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
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 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
Although I don't like to place Java code in my JSP
pages, this is how I accomplished this:
strutlogic:iterate id="row" name="list"
% if(index%2==0) { %
TR class="rowoff"
% } else { %
TR class="rowon"
% } %
index++;
/strutlogic:iterate
--- Anthony Martin [EMAIL PROTECTED] wrote:
I'm sure
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
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'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 has
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
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).
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
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.
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 suggesting
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:
Hi,
I am having a strange problem.
I have an action nmapping defined as
action path="/viewadminconfig" type="..."
forward name="success"
path="/XDIViewAdminConfigForm.jsp" /
/action
And then in my XDIViewAdminConfigForm.jsp, I have the
following :
html:form onsubmit="..."
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
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-
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
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 bean:message tags and html:text tags
etc. This page tends to be slow when it is rendering. It is compounded
if I open
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
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 doing some
There isn't a 'text' attribute for the html:option 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
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
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?
:-)
You don't need the import, or the scriptlet, or the 'type' attribute in the
logic:iterate 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
78 matches
Mail list logo