Hi,
who knows how I can get the position of an object in a vector when
iterating about that vector?
logic:iterate id=myVector name=someBean property=list
bean:write name=myVector property=price/
/logic:iterate
(I want to have the position as parameter of a link in each row).
TIA!
Hartmut
check iterate tag in recent struts buidl - supports indexid as an
attribute .
Suhas
- Original Message -
From: Hartmut Bernecker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 2:48 PM
Subject: how to get the position when iterating over a vector?
Hi,
who knows
Matt
Yes I did use global forwards exactly as you say, although it should work
equally well with mapping level forwards. I'm not sure how to advise you
without knowing what you're trying to do. My problem was a sidebar menu
which needed to submit changes on the current page, and then to
The output of this shows a list of links, but i want stencilName=
apended to the url... how do i do that?
logic:iterate id=iterator1 name=stencils scope=session
type=com.eurobenefits.dta.domain.StencilSummary
html:link page=/stencilname.do?action=doopenfile bean:write
name=iterator1
Oh, I see, thnx! But I have no idea how to use it;
indexId is The name of a page scope JSP bean that will contain the
current index of the collection on each iteration.
- How to use it? What is the property of the page scope bean? Do I have
to write that bean first?
logic:iterate id=myVector
Check this out
logic:iterate id=element name=bean property=stringArray
indexId=index
liembean:write name=element//emnbsp;[bean:write
name=index/]/li
/logic:iterate
iterate tag which allows you to access
the
current index as a scripting variable. If you specify the 'indexId'
attribute, a
I am implementing form-based authenication and have a couple of questions.
I have all my JSP's setup so they can be accessed with no extension. I am also
using a DefaultAction class so these JSP's can be accessed via a .do extension.
Can you send me ideas on how you implemented form-based
Does your web.xml contain a login-config declaration?
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 12:53
To: [EMAIL PROTECTED]
Subject: Form-based Authentication using Struts
I am implementing form-based authenication and have a couple of
Hi,
(Not sure if this belongs to struts or tomcat). How do I find out what
language the user (resp. html-browser) preferes?
Second, I read at various places about users and roles in tomcat and
struts, where can i find out more about that mechanism and how to use
it?
Many thanks in advance,
I maybe taking the
wrong approach with Struts where rather than creating an attribute for every tag
html:text inputin the form for a web page, I create and and use an object
that has all those attributes and store that object in the session. I have
been able to get everything to work except
A new release of the Mapper framework is available on Ted Husted's site on
http://husted.com/about/struts/resources.htm. The Mapper framework can be
used for automating the process of validating/converting/transferring data
fields. Although the framework is independent from Struts itself, it can
I
figured out my problem.
Thanks,
Kent
-Original Message-From: Kent Roylance
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 30, 2001 6:09
AMTo: [EMAIL PROTECTED]Subject: Validation
problems
I maybe taking the
wrong approach with Struts where rather than creating an
Title: Struts menu and ear deployment file
Hi,
I am currently investigating the struts menu and I am having some trouble bundling it into a ear file.
In my ear file I put my war file which has the struts.jar and struts-menu.jar in WEB-INF/lib, and I also put those two jar files in the /lib
This is an odd ball question but ...nothing ventured ...nothing gained.
We use struts. It's working well for us. However, one thing it's missing is
rapid screen generation functionality. For example, in the spirit of an
MVC, we would like to generate screens in our views based on XML data
Andreas Leitner wrote:
Hi,
(Not sure if this belongs to struts or tomcat). How do I find out what
language the user (resp. html-browser) preferes?
request.getLocale()
Second, I read at various places about users and roles in tomcat and
struts, where can i find out more about that
Hi,
hope someone can help me out here. I think I have a problem with struts and
my classes caching list.
In my jsp I have some data that is displayed regularly. Therefore I have put
that object into the context via:
context.setAttribute(CommonProblemList ,tbeList );
When the data the list
Yes, please see below:
login-config
auth-methodFORM/auth-method
realm-nameSecurity/realm-name
form-login-config
form-login-page/signIn/form-login-page
form-error-page/signInError/form-error-page
/form-login-config
/login-config
Further to this mail,I tried using the syntax as suggested ,but I get a page
not found error.
My web.xml entry is ...
!-- Report Servlet --
servlet
servlet-nameDisplayReportsServlet/servlet-name
servlet-classcom.mizuho.rdw.reports.DisplayReportsServlet/servlet-class
/servlet
There's more about the dotted syntax here:
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties
under Property References.
Like Struts-Bean tags, the property attribute for the Struts-HTML tags
accept simple, nested, and indexed expressions.
Alex,
Did you try to set init param for ActionSerlvet to true for nocache tag?
-Original Message-
From: Alex Colic [SMTP:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 10:06 AM
To: Struts
Subject: Question about struts and list caching?
Hi,
hope someone can help me out
Hi,
I'm trying to use the Indexed tags from Dave Hays:
http://husted.com/about/struts/indexed-tags.htm
anyone got a replacement struts.jar with the relevant code changes in?
It's not that I'm lazy, I'm just having trouble getting the code built using
ant 1.3
java.lang.NoClassDefFoundError:
Oops! Posted to the wrong place. Thanks Patrick!
I just came up with another potential fix as well.
I've been trying to use Struts within the JBuilder5 IDE. JBuilder
automatically includes the struts.jar when compiling and executing,
so the issue of having struts on the CLASSPATH when
I'm not sure if this is what you're looking for, but Jakarta Taglibs has
an library called XTags that you might be interested in.
Calvin
On 30 Jul 2001 08:58:04 -0400, Will Spies/Towers Perrin wrote:
This is an odd ball question but ...nothing ventured ...nothing
gained.
We use struts.
Has anyone gotten a Struts project to work in JBuilder5? Currently, my
project is able to make but unable to execute. I get the following
message in the console:
Error: 500
Location: /WebCBP/error.jsp
Internal Servlet Error:
javax.servlet.ServletException: Missing message for key
That's a little help but I was looking for something more specific to UIs.
XTags seems to be a tag library for XML manipulation. Not so much screen
(UI) generation.
Thanks though, I may use that anyway. I didn't know about that one.
Will
Anthony,
Welcome to the strange world of JBuilder5!
Check if JB has copied your ApplicationResources.properties (or equivalent)
to the output path. If not, check if you have set your Project Properties -
Build - Resource - 'properties' to 'copy'.
Also I noticed, when I do a rebuild JB removes
looks like you need xalan-j *2* in your classpath when building...the
javax.xml.transform stuff is a new addition to xalan...
Jon Brisbin
Lamar, MO
- Original Message -
From: Nathan Coast [EMAIL PROTECTED]
To: Struts-User (E-mail) [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 9:37 AM
Stylesheets work as they would normally work in HTML or JSP. :) For the most
precise browser compatibility you can do either Server-side browser
detection, then use Struts to output the appropriate stylesheet reference
with some logic checks (using logic tags, etc. - basically the equivalent of
Hi Ines,
We are using stylesheets (XSLs, not CSSs). We use Cocoon XSP pages instead
of JSPs. These pages represent the XML that needs to be transformed by the
XSL.
Regards,
John
-Original Message-
From: Ines Pederiva [SMTP:[EMAIL PROTECTED]]
Sent: 30 July 2001 11:09
To: [EMAIL
Hi,
I would like to have one action-mapping trigger multiple actions and
then after the last one has performed forward to some view. What is
the preferred way to do that?
Many thanks in advance,
Andreas
I've got a collection of strings, and i want to populat a html:options tage
with the values in that Collection. where both the name and the value = the
string's value
this DOESN'T work:
html:select property=attributeName
html:options collection=fieldCodes
/html:select
Where
You might need to define that term.
Struts can generate all the standard HTML form elements, and link them
to a Java class to store and reproduce what is entered into the fields.
Struts does not provide any HTML controls outside of what is usually
provided by the browsers.
Paolo Balzarotti
We have gotten Struts to work under Jbuilder 5. We had a problem
getting Tomcat to see our classes and the application resources file.
We jury rigged it by adding the web-inf class path to the tomcat
configuration. This is probably not the correct solution but we have
not had time to go back
here is a good starting point incase you've missed it
http://husted.com/about/struts/resources.htm
-Original Message-
From: bill milbratz [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 16:47
To: [EMAIL PROTECTED]
Subject: Looking for developer's guide
Hello,
I'm new to struts and
Renzo,
Thanks for the suggestions. I tried both and neither would validate
successfully. I tried hh4 and it failed althought it is a valid
answer. I have been trying to find a combination that works. Too bad
there aren't simple AND and OR operations I could use.
I will keep trying.
As far as I know, neither the HTML specification nor the browsers allow
FORM tags to be nested.
The Struts custom tags expect that Web browsers will be the
application's client, and so are restricted to what can be done with a
HTML browser.
Paolo Balzarotti wrote:
Thank you Ted,
for
I believe the book Professional JSP 2 has a chapter devoted to it. I
haven't a clue how good / bad it is.
If you look on the struts pages you will see a section for resources that
points at a few tutorials and samples etc. However, there doesn't seem to
be a lot at the moment.
Dave
Hello B,
Monday, July 30, 2001, 7:35:09 AM, you wrote:
BM Further to this mail,I tried using the syntax as suggested ,but I get a page
BM not found error.
BM My web.xml entry is ...
BM !-- Report Servlet --
BM servlet
BM servlet-nameDisplayReportsServlet/servlet-name
BM
actually, I refer to the html tag as strutshtml - and I checked and it's
strutshtml:link for both start and end tags. I started to change values in my
post below, but did not follow through to the end. Here's *exactly* what I
have:
strutshtml:link
What type and version of browser are you using?
I'm looking at it and the example webapp work under IE
6.0, but doesn't in Netscape 4.75. Someone e-mailed
me the other day that in Netscape 4.0 (or close to
that version) that float and other primitives were key
words and you couldn't name
In subscription.jsp (webapp struts example), you can see :
...
%
java.util.ArrayList list = new java.util.ArrayList();
list.add(new org.apache.struts.webapp.example.LabelValueBean(IMAP
Protocol, imap));
list.add(new org.apache.struts.webapp.example.LabelValueBean(POP3
Protocol, pop3));
See http://struts.application-servers.com/
and specially section about css (Skinnable web application).
- Original Message -
From: Ines Pederiva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:08 PM
Subject: Style sheets with struts
Hi.. I?m new in Struts
Hello, anybody here have already use Flash with strut?
We are creating a site entirely in Flash and we have some problems.
The main problem is the HTML page is redirected to an another
when we use the loadVariables method in Action Script.
We want to avoid it, we want struts to return text in the
Hello there,
I am new to Struts and I have a couple of questions after studying
user guides and example.
1) Is it possible to assigne more than one form bean to the same
action mapping?
If it is not possible, is it possible to map one form bean to multiple
html forms on on web page.
Make sure all your forwards don't have use redirect=true
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
NetRexx: http://www.multitask.com.au/NetRexx.nsf
Philippe Dion [EMAIL PROTECTED]
31/07/2001 03:22 AM
Please respond to struts-user
To: [EMAIL
I believe you have to use the escape character for the
quotation marks inside the xml value. For example,
you have page=x Any quotation marks inside x must
be \
Try this: html:link
page=%=\/searchHolidayMonth.do?month=\ +
monthsCount + \year=\ + currentYear %
styleClass=secondaryNavigation
I added the following to my web.xml but it did not make a difference:
init-param
param-namenocache/param-name
param-valuetrue/param-value
/init-param
Any other thoughts?
Alex
-Original Message-
Date: Mon, 30 Jul 2001 10:22:08 -0400
To: '[EMAIL PROTECTED]' [EMAIL
Hi, I created a base actionservlet class that in its init method, the first
thing it does is call super.init(). In this base class I set up common
settings for all my web apps.
I then created a series of classes that all extend my base ActionServlet
class and in their init method the first
Antigen for Exchange found Alex Colic.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, why is servlet.init method
being called twice., was
sent from Alex Colic and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
When posting forms, does struts have a mechanism
for creating collections from an arbitrary
number of "beans" of the same type?
For example, if I have BeanX with values A, B, and
C; and I dynamically create a form with inputs:
A1, B1, C1
A2, B2, C2
etc.
Upon mapping it seems I should be
For some reason, my application cannot load
ActionServlet if we use Connection Pooling using
DataSource in the struts-config.xml, Please help me
spot my error. Thank you.
B Nguyen
--
strut-config.xml:
?xml version=1.0 encoding=ISO-8859-1 ?
Thanks, Dave. I tried it with IE 5.5 from another station, and it worked
fine again.
Turns out the Javascript on my local copy of IE is turned off, and, as
you say, many of the new validators don't work under Netscape 4.7x.
I was omitting most of these before, but just copied everything over
Following the thread concerning Struts/JB5 I thought that I should chuck in
my own thoughts - JB5 is great for debugging but - boy does it take some
effort to set up - I am sure that there must be a simpler way of getting it
all to hang together but here's my technique:
1 File|NewProject
I believe Dave Hays tags were included in the nightly builds in the last
week or so. So if you download that you should be OK.
Niall
-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 15:38
To: Struts-User (E-mail)
Subject: Indexed tags - Dave Hays
Form beans may reuse other form beans. For example, one could define a
DateForm bean and then reuse that DateForm in other forms that require a
date. An example of this reuse is in the struts example. Dot notation is
used to reference attributes. For example, the month field of the DateForm
Saw the following in borland.public.jbuilder newsgroup.
-
We use struts with JBuilder 4 5 no problem,
and problem you describe can be avoided.
Instead of using the default 'context' to store
your web app.,Create another 'context'
say
Hi all,
I am a first time struts user, and I am having trouble with the basics.
Specifically, I am trying to start at index.jsp, and in IndexAction
create a ListNamesForm bean, attach it to the session, and pass control
via a 'success' mapping to listNames.jsp.
ListNamesForm lnf =
Hi, all.
So, from what I've seen ex post facto, I have been looking at Struts a
bit differently than it had been intended to be used. I have designed
and (partially) built my application around the concept of exclusively
using forms for communications between the view and the controller (or
Scriptlets OK for view only?
Another developer in my group and I discussed this at length last week. I
believe scriptlets in the view to be bad practice...or at least a slippery
slope towards badness. grin
I suggest that there are two levels of separation we are trying to achieve.
1)
I think the problem with this is that the session is new on the login page
and is not established
until the request is sent back to the client.
for instance...
loginPage starts a new session, and sets a bean in the session.
loginPage then forwards the request to another page.
the other page
Tim Colson wrote:
Scriptlets OK for view only?
Another developer in my group and I discussed this at length last week. I
believe scriptlets in the view to be bad practice...or at least a slippery
slope towards badness. grin
I suggest that there are two levels of separation we are
The third wayif the Struts tags dont do what you want then write your
own. Then you dont have to use scriptlets, you have a re-useable bit of
functionality, the web designers are happy and you dont have to use
Velocity.
Niall
-Original Message-
From: Tim Colson [mailto:[EMAIL
Niall Pemberton suggested
...if the Struts tags dont do what you want then write your
own. Then you dont have to use scriptlets, you have a re-useable bit of
functionality, the web designers are happy and you dont have to use
Velocity.
While a custom tag is an option; this bit of
Timothy,
Sorry, I couldnt disagree with you more.
Custom tags are exactly the place to put html - they are part of the view,
if you look at struts html tags thats what they do. There isnt currently
javascript in any struts tags (just attributes for most javascript events)
and there are probably
On 30 Jul 2001 18:20:29 -0700, Tim Colson wrote:
While a custom tag is an option; this bit of functionality would have
required embedding javascript code and html inside the custom tag lib. To
me, putting view specific code like inside a tag library is also a slippery
slope in the quest to
On Tue, 10 Jul 2001, Calvin Yu wrote:
[snip]
I don't think that you'll need optional.jar, as the style tag is not an
optional tag. However, you will need xalan.jar (and maybe xerces.jar) if
they're not in ant.home/lib already.
[snip]
My experience with Ant was that optional.jar *was*
On Wed, 11 Jul 2001 [EMAIL PROTECTED] wrote:
Hi everyone.
I am placing a tag on each page to check the user is logged on, which, as
expected, takes them to a login page if they are not.
However, I want to then return them to the page they tried to access before
being asked to log
On Wed, 11 Jul 2001, gdelgado wrote:
On the struts-config.xml file:
1)Can someone give me a description of the use of the 'input' attribute
under an action tag.
The documentation is in the DTD itself. Basically, this attribute defines
where Struts will return control to if the
In servlet 2.2 environments, you basically won't be able to do this. But
in servlet 2.3 environments, you can create a Filter to do the compression
for you, on output from either servlets or JSP pages.
Tomcat 4 includes a compression filter in the examples web app that does
exactly this.
Tim,
What servlet container are you trying this on? Your assumptions about
what is *supposed* to work are correct (with one minor correction -- the
extra path info will be /user instead of user), so it could be either
a bug in Struts or a bug in the servlet container you are running on.
Craig
Struts maintains internal copies of the DTDs it uses (for
struts-config.xml and web.xml). As long as you use the correct public
identifier on your configuration files (and your XML parser is correctly
implemented) you should be able to run with no problems, without trying to
access the network
On Mon, 16 Jul 2001, Mark Ragan wrote:
It appears, or at least I've read that struts allows nested attribute
specifications in the tag properties, such as property=user.name.last. Is
this only when the nesting is in the form class?
Is it possible to specify nested collections in
On Mon, 16 Jul 2001, Michael Skariah wrote:
Hello all,
Can anyone tell me if I can have multiple html:text tags with the same
property name in a single JSP file. If yes, how can I map these tags with
the same name to a single attribute in the ActionForm class. Can I have
something like an
On Tue, 17 Jul 2001, Nino Walker wrote:
Hi,
I've noticed a number of postings asking about syntax using embedded
tags, a la: tag attribute=bean:write bean=... property=... /
.../
It's clear that this is not supported, but has anyone implemented a
different solution to address this?
On Wed, 18 Jul 2001, Oleg V Alexeev wrote:
Hello Peter,
Wednesday, July 18, 2001, 5:53:01 PM, you wrote:
PS Hi ppl,
PS Would it be possible to subclass the ActionServlet to add behaviour
PS needed for it to behave as central controller so it could handle all the
PS requests
Commercial
The folks responsible for the J2EE patterns catalog pages have also
published a (much extended) discussion of these patterns in book form. It
is ***well*** worth your time and money to acquire and read this!
Alur, Deepak, Crupi, John, and Malks, Dan, Core J2EE Patterns: Best
On Wed, 18 Jul 2001, Kevin McLain wrote:
Does anybody know how Struts handles concurrency when it uses Reflection to
update ActionForm attributes? I am assuming that it doesn't but this can be
problematic if, in the case of a web application, you have two browser
windows - for the same
77 matches
Mail list logo