Folks
I am having problems getting the keyboardmonkey nested tags tutorial
working. I can get only the most basic part working and get the hello
message, I tried making the changes up to milestone 1 with no success and
even after I download and use the milestone one war file that is on the
site
Swaroop,
I am trying to implement the way you have mentioned for populating drop downs.
I'm getting the following exception:
javax.servlet.ServletException: Exception thrown by getter for property countries of
bean dropdown
Here's the code that I'm using:
jsp:useBean id=dropdown
hi,
i guess u r not following the java-bean rules
private ArrayList countries = new
ArrayList();
public ArrayList getCountries() {
// here u can populate the
arraylist... as u did
earlier return
countries;
}
I cant figure out whats wrong in ur approach..Seems to be perfectly
alright.. However I have never used LabelValueBean.. Are u getting any
stack trace display for which u have given
} catch (Exception ex) {
ex.printStackTrace();
}
It is actually
Nagendra,
I have modified the bean as follows:
public class DropDownCollections {
private ArrayList countries = new ArrayList();
public ArrayList getCountries() {
ArrayList list = new ArrayList();
try{
countries.add(new LabelValueBean(Australia, 1000));
countries.add(new
Swaroop,
I tried instantiating the array list in the getter method itself as follows:
public ArrayList getCountries() {
ArrayList countries = new ArrayList();
try{
countries.add(new LabelValueBean(Australia, 1000));
Sriram,
} catch (Exception ex) {
ex.printStackTrace();
}
This exception block wont be shown on the JSP page.. but will be shown
on ur appserver's output window. Check whether any such exception is
being thrown..
Swaroop
-Original Message-
From: sriram [mailto:[EMAIL
Before I wash anymore time out on stuff that really shouldn't happen,
may I ask if anyone else has had problems with anything being stored in
the request and/or session returning null..
for example imagine i've 2 actions
// in action 1
HttpSession session = request.getSession()
Swaroop,
I have given a system.out.println statement in catch block (as follows):
public ArrayList getCountries() {
ArrayList countries = new ArrayList();
try{
countries.add(new LabelValueBean(Australia, 1000));
snip
Now there appears to be something setting the request to
null between actions, I just have no idea what.
/snip
Well of course the request attributes are null (i presume its the request
attribute thats null and not the request reference itself!) in the second
action. Unless you do a
Burc,
Since the browser is going to make a seperate request for the image data,
you really just want to render an img tag with a src URL that can be used to
retrieve the image from the db. You will also need an Action (or a servlet,
for a reason I will explain below) that will get the image from
I know I should rtfm for this but Im feeling lazy:
Its not possible to forward outside of the application (for example to
another webapp) using an ActionForward is it? Its always relative to the
context yes?
-
To unsubscribe,
yes u can do that
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 2:43 PM
To: Struts
Subject: Forward outside application can or not?
I know I should rtfm for this but Im feeling lazy:
Its not possible to forward outside of the application
Think I got it..
Change ur method as public Collection getCountries() and try..
Swaroop
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 2:17 PM
To: 'Struts Users Mailing List'
Subject: RE: drop-down list help
Swaroop,
I have given a
I can?
Excellent. So I just need to put the full path including the http:// etc in
the forward definition in struts-config is it?
-Original Message-
From: PREETAM Balijepalli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 23 July 2003 17:13
To: Struts Users Mailing List; [EMAIL PROTECTED]
I had to use the scope attribute on the action tag in struts-config.xml
Which i thought would only be to scope the form bean, defined by the
name attribute but it would appear not.
Btw, thanks for the best practice tip.. When's the book comming out ;)
Cheers Mark
On Wednesday, July 23, 2003,
Hello,
Another unlucky one trying to get it to work on IPlanet...
I'm using the templates taglib and IPlanet throws an exception from the JSP page:
root cause: javax.servlet.jsp.JspException: org.apache.struts.taglib.template.
InsertTag
at
:-(
Same error! I modified the function as follows:
public Collection getCountries() {
ArrayList countries = new ArrayList();
try{
countries.add(new LabelValueBean(Australia, 1000));
countries.add(new
snip
Btw, thanks for the best practice tip.. When's the book comming out ;)
/snip
Hehe, I could never hope to compete with the excellent books already out
there:
Sruts In Action (No the title is not a dig at how long it took to release
1.1 ;- )
Yes I know that there is something wrong in bean:define. As the next
step remove the try {} catch{} block in the getCountries method. Let it
show up where exactly its failing..
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:00 PM
To: 'Struts
Swaroop,
I have made a change to bean:define.
I removed 'property' -- (If not specified, the bean identified by name is given a new
reference identified by id.)
Then my println statements are working till Step 3. So, I presume the previous problem
is solved.
There's some problem now with
I don't think u r proceeding the right way.. When u removed property
what has happened is u have eliminated the getCountries method call..
and thus u r able to see ur 3rd print statement. U need to have the
property cauz the collection u need is an attribute of the
DropDownCollections class, not
Yes, what you said is correct.
I removed the try, catch block from getCountries() method, but still I'm getting the
same error.
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:34 PM
To: Struts Users Mailing List
Subject: RE: drop-down
This idea works nicely but remember if you have pages of any size the user
experience will suffer. As an example Bugzilla does it using dynamic
javascript and it still has annoying pauses, a page load would be worse.
Also, you should have an additionaly piece of javascript to put the cursor
back
Swaroop,
You are right. I have commented LabelValueBean statements and I got the displayed with
a blank dropdown list.
My bean method is now as follows:
public Collection getCountries() {
ArrayList countries = new ArrayList();
HI,
well, if ur using struts1.0, LabelValueBean is no supported..
u can still get that class from the struts1.1 jar and use it...
(or)
u can create a simple javabean with two variables, with set,get
methods and use it
it is as easy
hi,
i'm using struts 1.1 and so i'm trying to use lablevaluebean.
u can create a simple javabean with two variables, with set,get methods and use it
it is as easy
- so in my bean, i should have get and set methods for CountryID and CountryName.
And how should I refer them in html:options
if u r using struts 1.1... LabelValue bean should be available to
u...
i feel , u got to debug and find that problem rather than using a new
javabean
trust me , i have used the labelvaluebean many times ... it works
very well for me
Philippe,
You haven't pasted the full exception stack trace (1st half). Have you
tried the struts-template application bundled with struts 1.1?
Regards,
Thiru
-
Philippe Wrote:
Hello,
Another unlucky one trying to get it to work on IPlanet...
I'm using the templates taglib
I'm stuck w/ this:
15:32:07,375 WARN [jbossweb] WARNING: Exception for
/naker/test.jsp
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1627)
at
Sriram,
Did u remove the try catch block as I said.. If u remove that u will
be able to know whether its an error withLabelValueBean or not..
And as you said if you are using another bean what you are doing is
correct..It should work.
Swaroop
-Original Message-
From: sriram
Oops sorry.. Sriram.. since the problem is with LabelValueBean
use the separate bean which u have created
html:options property=CountryID labelProperty=CountryName/
-Original Message-
From: Swaroop George
Sent: Wednesday, July 23, 2003 5:01 PM
To: Struts Users Mailing List
Subject:
Swaroop
I have removed the try catch block, but I got the same error as before.
I'm still trying to debug with LabelValueBean..haven't ventured into using another
bean yet.
Sriram
-Original Message-
From: Swaroop George [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 5:01 PM
[EMAIL PROTECTED] wrote:
Philippe,
You haven't pasted the full exception stack trace (1st half).
Have you tried the struts-template application bundled with struts 1.1?
An excellent suggestion!
It seems I get a bit further now until I get this exception (I smell a nightly
build
make sure your custom tag is defined in web.xml and the
ApplicationResource.properties file is defined in struts-config.xml
-Original Message-
From: Monang Setyawan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 7:19 AM
To: Struts Users Mailing List
Subject: plz
I'm stuck
Hello.
I have a text box on JSP page. In action class , i want to validate input (input
should be an integer) . If input is valid,i take some action. If input is not valid, I
wish to post some error message on the same/other JSP page. I do not know the NAME of
text box from which I read data
Good afternoon,
I have just changed one of my forms to use the DynaValidatorForm and I'm not convinced
of the benifits of it!
I remove the Form with the getX() and setX() methods and also validate() and reset(),
so I have less classes floating about. But now I don't have the reset method
I think this is a mapping error. Did you map /tags/struts-template to
/WEB-INF/struts-template.tld in your web.xml? If you didn't then your
inclide won't work.
It should be:
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
Suzette
-Original Message-
From: Philippe Van Der
It's beneficial for simple forms that are initalized to null. For more
complex stuff do it the old way.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: drop-down list help
Good afternoon,
I
Suzette Daniel wrote:
I think this is a mapping error. Did you map /tags/struts-template to
/WEB-INF/struts-template.tld in your web.xml? If you didn't then your
inclide won't work.
I did.
taglib
taglib-uri/tags/struts-template/taglib-uri
Hi Philippe,
Your declaration that you listed below seems correct I don't think that the
problem. What does your jsp/siteTemplate.jsp look like?
-Original Message-
From: Philippe Van Der Gucht [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 8:46 AM
To: Struts Users Mailing
Suzette Daniel wrote:
Your declaration that you listed below seems correct I don't think that the
I forgot to mention that development went on on a Tomcat server with no
problems whatsoever.
problem. What does your jsp/siteTemplate.jsp look like?
%@ page language=java
H, it all looks good. I'm not using Iplanet, but I had a similar problem
when I moved from Tomcat to Oracle9I server. I'm quite sure the problem is
in the web.xml. Do this create a simple jsp and test which include works;
direct path or mapping.
Test1:
%@ taglib uri=/WEB-INF/struts-bean.tld
I'm looking for a good example of HTML manipulation of dynamic tree menus
i.e. adding nodes dynamically, reshuffling of nodes, deletion of nodes etc.
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
In the past (asp) I have done this within in a single server response. I
built client-side javascript arrays of options for each option in the first
list, and populated the second list from the appropriate array.
Obviously this is only going to work for some data sets - at some point the
user
Am using Struts with tomcat.
Can I use ServletFilters for processing login permissions on URLs?
Or would I have to rewrite the controller Action Class adding a if-then-else
there?
'Cause the web.xml dosent have the servlet entries for rest of the action
classes.
Hi all,
I am struts newbie.
I am stuck with a problem of capturing dynamically
growing form elements. I have to know a way to
capture recurring data in either DynaValidator or Form
bean.
My jsp can contain html elements say CoBorrower
Information like CoBorrower Name, CoBorrower Address,
Hi all
Can I prefill the values of my form bean ahead of displaying the jsp page
that is associated with this form?
If yes, how?
I am trying not to override the values entered by the user on this result
page.
Because when an error occurs the page is redisplayed and since I am getting
the values
Hello,
I'm wondering if anybody has already extended the validator framework
- to use it in the business layer instead of the controller layer
- supporting dynamically loaded/created forms
Validating user input is no special struts or web application
requirement. In my case, all applications are
Use Tomcat's container managed (user) authorization, via one of the Realms
(I use JDBCRealm, but there are others) - this has nothing to do with
Struts. Search Tomcat's website about this - it's pretty well-documented, I
think.
- Cecile
-Original Message-
From: Balaji R [mailto:[EMAIL
Struts doesn't have anything to do with Servlet filters (Servlets 2.3). You
can use filters.
You don't have to rewrite anything.
web.xml only has entries for servlets. A Struts action is not a servlet. Do
you mean role based permissions for actions ?
Mohan
-Original Message-
From:
Either way would work.
The controller you need to extend is actually the RequestProcessor
(TilesRequestProcessor if your using Struts/Tiles)
Check the archives for more information (archives are accessible from the
jakarta site)
-Tim
-Original Message-
From: Balaji R [mailto:[EMAIL
Suzette Daniel wrote:
H, it all looks good. I'm not using Iplanet, but I had a similar problem
when I moved from Tomcat to Oracle9I server. I'm quite sure the problem is
in the web.xml. Do this create a simple jsp and test which include works;
direct path or mapping.
Test1:
%@ taglib
As Ranko asked, about the redundancy of Struts I would like to know that the
heck is the deal with SOME of these tag libs out there?
I mean, look at this: c:if test=${index%2==0} and look at this: %
if(index.intValue()%2==0){ %
I like NOT to use Java scriptlets in my JSPs and I am pretty
On Wed, Jul 23,'03 (03:34 PM GMT+0200), Struts wrote:
Hi all
Can I prefill the values of my form bean ahead of displaying the jsp
page that is associated with this form?
If yes, how?
Sure just do it in Action before you go the form or if you know they
will always be the same values you can
Since the questionnaire is the model for the form, couldn't you just
encapsulate a real questionnaire business object within an ActionForm?
It adds a layer, but since ActionForms are objects and not interfaces I
don't see an easier way than delegation.
Derek
Jens v.P. wrote:
Hello,
I'm
As Ranko asked, about the redundancy of Struts I would
like to know that the heck is the deal with SOME of
these tag libs out there?
Think of the standard taglib of a full universe of things
anyone would reasonably want to do with JSP tags. I believe
an if statement with flexible conditiions
--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
As Ranko asked, about the redundancy of Struts I would like to know that
the
heck is the deal with SOME of these tag libs out there?
I mean, look at this: c:if test=${index%2==0} and look at this: %
if(index.intValue()%2==0){ %
I like
IMO, I wouldn't take examples like that as a best practice for using tags.
In some cases I think people sometime try to squeeze too much functionality
out of a set of tags, rather than creating higher-level tags to accomplish
what they want. Or there might be shortcomings in the tags they're
Hi ... I am quite new to Struts and like to know what is the best practice to provide
a solution for the following problem (with Struts 1.01 in use):
I'd like to have a jsp with a form A (e.g. Project) and nested within a editable list
of the people who work at this certain project based on
Check out http://jakarta.apache.org/struts/faqs/newbie.html#prepopulate
- Cecile
-Original Message-
From: Struts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:34 AM
To: [EMAIL PROTECTED]
Subject: prefill form bean ahead of the jsp
Hi all
Can I prefill the values of my form
Are there any struts gurus here that can help me? I did not get a single
answer to this question. If there was a solution to this question, it
would help many people that are working with portlets, like me, who can
use JSP and cannot use servlets durectly to stream binary content to the
browser.
What's really so wrong with scriptlets?
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: 23 July 2003 15:30
To: Struts Users Mailing List
Subject: RE: Ranko like question: What is the sense of some of these
tags libs?
IMO, I wouldn't take examples like that as a
Hi, all.
In Struts 1.1, is there a way to use one's own implementation/extension of
ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how
this could be done in any of the config *.xml files.
If this is not configurable then an option that was suggested to me was to
invoke
I think in a previous post someone mentioned setting the content-type of the
page to be that of a PDF document, then you write the stream back to the
client from the JSP. The client will handle launching the appropritae
viewer.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
You can write minor extensions to some config elements like action and
forward. This extension class is named via the className attribute of
those elements.
-Original Message-
From: Karachiwala, Aslam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:39 AM
To: Struts-users
JSP is the same as Servlet. Put your pdf content in the session scope, you can
get it on your jsp page through session.getAttribute(pdfContent);
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 7:18 PM
To: [EMAIL PROTECTED]
Subject: Using
Hi,
Am Mittwoch, 23.07.03 um 16:24 Uhr schrieb Derek Chen-Becker:
Since the questionnaire is the model for the form, couldn't you just
encapsulate a real questionnaire business object within an ActionForm?
It adds a layer, but since ActionForms are objects and not interfaces
I don't see an
Struts will work with Container based authentication/authorisation (a+a)
and with Servlet Filters. If you plan/need to use a Filter to do a+a
with a Filter, take a look at http://securityfilter.org/
Sean
On Wed, 2003-07-23 at 14:40, Balaji R wrote:
Am using Struts with tomcat.
Can I use
The problem is: what is the type of the attribute in the form bean? If I
use byte array, it fails -- just displays the address of the array in
memory as a string on the screen. If I use String attribute in the form
bean and convert my pdf byte array into a string by doing this str = new
And then what? I can easily access it from the form bean field and from
the session. There's no problem here. The question is how to stream it to
the client. Please see my previous email.
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
The problem is: what is the type of the attribute in the form bean? If I
use byte array, it fails -- just displays the address of the array in
How are you writing out the byte array? Also, I'm no PDF expert but are we
sure the content-type is specified correctly? Meaning is application/pdf
I think you're missing the bigger concept. A PDF is the same as a JPG -
it's a media file that differs from just the plain text sent in an html
page.
You can't just stream a PDF in the middle of HTML. You have to associate it
with a content type, and the browser has to make a request for it,
bean:write name=myForm property=content/
where content is defined as a bte array.
I am pretty certain that the contentType is specified correctly, since I
saw several examples of servlets that worked with PDF correctly and
specified the mime type the same way.
Please respond to Struts Users
I'm a 'tard.
you should call the setContentType() and whatever the ...size() method is
on the response object, rather than writing that to the output stream.
*THEN* write the bytes out.
From: Adam Levine [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL
Did you try this code yourself? I am telling you that this is exactly what
I have done and it does not work. I have a form bean that has a byte array
attribute that I populate in the action and then set the content type and
use bean:write on that attribute in the JSP and it just displays the
one more follow up, then Im done.
I don't think using a tag to deliver a PDF will work. I believe once the
tag is hit, the user has already received a Content-Type=text/html string.
I believe you should be using the servlet approach, especially considering
there is no browser tag (like
Bean write may not be converting the property correctly, it's just
tostring'ing it, which is why you see the address of the object. You need
something that will stuff the binary form of the PDF into the response
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent:
That is what I need. I mentioned the word gurus in my question :)
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:RE: Using bean:write to display/stream PDF content --
please help.
Bean write may not be
I was getting this error also. I have another struts
application working in my environment so I copied the
struts files and checked the versions of dtds in the
.xml files to match that environment. Voila, it
started working. My environment had struts-nested.tld
and the download was using
Even when you get it streaming your bytes out properly, I'm sure it's still
not going to work.
Your options are:
- use a servlet to deliver the content, using a mapped url
- use the EMBED html tag (rtfm for syntax and how to use)
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
I should have put the smiley face closer to the conspiracy statement. That
was a joke.
I think having $ in a tag is a skewed perception of a tag. I have only ever
seen such things in scripts or macros. I can't remember using a $ in
anything but a scripting language (personally).
Anyway, I
That was what I was thinking of. I hadn't thought of client-side
validation, but that's kind of tricky unless you want to extend the form
tags and Form classes. If you wanted to automate client-side validation
you would have to extend the ActionForm class so that you can provide
information
As Ranko asked, about the redundancy of Struts I would like to know that the
heck is the deal with SOME of these tag libs out there?
I mean, look at this: c:if test=${index%2==0} and look at this: %
if(index.intValue()%2==0){ %
I like NOT to use Java scriptlets in my JSPs and I am pretty
--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
I should have put the smiley face closer to the conspiracy statement.
That
was a joke.
I think having $ in a tag is a skewed perception of a tag. I have only
ever
seen such things in scripts or macros. I can't remember using a $ in
Don't use a form property and don't set the content type in the action. Stuff
the data in a request attribute instead and forward to a JSP with something like:
%@ page contentType=application/pdf %
%
ServletOutputStream oStream = response.getOutputStream();
byte[] pdfData =
Hey,
I could really be missing the point and I haven't had time to delve into the
struts/validator code. To me, it sounds like you might want to look into
dynamically building a validator action (or whatever object is defined in
the validation.xml) and map that to your form. If your jsp then has
I have ONLY ever run into the JSTL tags on this forum (and in Struts In
Action on pgs 272-273) so I didn't think it was that OT. Especially since
it can be used with Struts and code examples posted here nearly daily with
no complaint. I just never went anywhere looking for these tags.
I never
IV wrote:
I remove the Form with the getX() and setX() methods and also validate()
and reset(), so I have less classes floating about.
I don't. I still have a Form class that extends DynaValidatorForm, and I
still have a reset and validate method. DVForm gets you out of writing all
those
Hi all,
I changed from using the HTML embed tag to using the jsp:include tag to
embed a applet in a webpage. The problem however is that since I'm using
tiles I can't get the values of the attributes passed to tiles in the
attributes of the jsp:include tag because it is itself a jsp-tag. Can
Try:
tiles:useAttribute name=division classname=java.lang.String /
...
jsp:param name=division value=%=division% /
Or alternatively use EL.
H.
Hi all,
I changed from using the HTML embed tag to using the jsp:include tag to
embed a applet in a webpage. The problem however is that since I'm
Kris wrote:
Forget the call to encodeURL, you don't need it.
You are correct, I must have had something else wrong with the URL. I'm
feeding a URL with spaces to the ActionForward constructor, and it's working
fine.
--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University,
Still haven't found a solution for this. Any suggestions?
Thanks,
- Mike
-Original Message-
From: Doyle, Michael J
Sent: Wednesday, July 09, 2003 9:43 AM
To: '[EMAIL PROTECTED]'
Subject: When the Struts webapp is not at the root of the server
Hi,
I have been
How did you declare the app context? (in the web.xml, I believe)
From: Doyle, Michael J [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: When the Struts webapp is not at the root of the server
Date: Wed, 23 Jul 2003
I declare the app in the weblogic.properties file, thusly:
weblogic.httpd.webApp.myStrutsApp=/home/weblogicInstances/Wls_port/myStrutsA
pp
The web.xml file in myStrutsApp/WEB-INF contains a bunch of weblogic
specific context-params, the Struts action servlet config:
servlet
I asked before without reply, I'am trying again...
I known html:text of any other form related html:*
tag can get values from a Map within an ActionForm:
public class MyActionForm extends ActionForm {
HashMap myMap = new HashMap();
public Map getMyMap() { return myMap; }
}
Hi,
thanks Derek, thanks Chuck.
Am Mittwoch, 23.07.03 um 17:24 Uhr schrieb Derek Chen-Becker:
[..]
I hadn't thought of client-side validation, but that's kind of tricky
[..]
Or am I misunderstanding what you mean by client-side?
No, that's what I meant. But: the validator framework already
--- Bailey, Shane C. [EMAIL PROTECTED] wrote:
I have ONLY ever run into the JSTL tags on this forum (and in Struts In
Action on pgs 272-273) so I didn't think it was that OT. Especially
since
it can be used with Struts and code examples posted here nearly daily
with
no complaint. I just
Hi,
If I have a collection of employees, an employee has a
name and id (int). How can I iterate through this
collection and put every employee between
html:option?
--
logic:iterate id=employee name=employees
html:option/html:option
/logic:iterate
--
regrads,
Rick
If both JSTL and Struts are failing, it's probably your code that's
broken.
David
Often a reasonable assumption, in the circumstances, but it turns out not so.
I got my page to work with a straight Servlet full of out.println() statements.
Then I got it working using one Servlet filling my
1 - 100 of 193 matches
Mail list logo