about it. Cant be too difficult..
Thanks
Claire
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 27, 2004 11:43 AM
Subject: Re: microsoft sqlserver driver struts
Can i see the bits of code in the servlets (non
set the value of the form property that you wish to select.
On 27 Feb 2004, at 17:40, Daniel wrote:
How can change the selectedIndex of dropdown values
obrigado
Daniel S.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
do your source files contained in the same directory structure as you
package path?
e.g.
package com.sparrow.struts;
..
/src/com/sparrow/struts/*.java
You might have more luck on the xdoclet list. I use xdoclet but not for
action classes as struts console helps me cross that bridge.
On 27 Feb
html-el:link page=${mylink}
a href=c:url value=${mylink} /
or if you're running tc5 then just use the expression language in
html:link .. (i think it should work).
On 26 Feb 2004, at 08:37, Zsolt Koppany wrote:
Hi,
how can (should) I use html:link... with JSTL?
Zsolt
Perhaps validate=true..
Another point is you don't need to cast DynaValidatorForm in your
action, DynaActionForm will do or even DynaBean.
When the action servlet see's that validate = true the validate()
method is called and errors returned to the view before the action is
run. If you
First when debuging javascript alert boxes are handy.
alert(this.form,'%= val %')
or
alert(this.form,'c:out value=${val} /')
or on tc 5
alert(this.form,'${val}')
if that does what you want start debuging the functions by using alert
boxes.
function myfunction(form,val) {
wouldn't mind an example of how to use lazy list if you have one.
On 26 Feb 2004, at 15:33, Paul, R. Chip wrote:
Or use the Commons Collections LazyList which handles this problem
automatically.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26
yeah thanks..
you know, i'd never thought of that..
On 26 Feb 2004, at 15:39, Jim Theodoridis wrote:
Another solution is to to see the source of the page
ie-View-source
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent
(),
factory);
}
// Getter/setters for list omitted
}
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:49 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
wouldn't mind an example of how
PersistentManager was the keyword i needed..
Nice one
On 26 Feb 2004, at 17:27, Craig R. McClanahan wrote:
Quoting Mark Lowe [EMAIL PROTECTED]:
sure i agree .. but I've been wanting to dick around with alternatives
to storing in the session for a while (since the request vs session
debate
to your production one to determine which method is
more
efficient.
Personally I'd just spend the money on a bit more ram instead of
developer
time...
Paul
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 26 February 2004 13:24
To: Struts Users Mailing List
Subject: Re: need
shirish posted this a few times.
if you're scoping to request you'll need a while loop in your
getFoo(int index) method
public class OrgManagementForm extends ActionForm {
private List addressList = new ArrayList();
public Address getAddress(int index) {
while(index =
like a good candidate for a session
scoped
form.
I agree with what Mark Lowe said - usually/often ...theres no more
work
invloved scoping to request - thats been the case for my app. I would
also
do what you said in a previous post - which is clean up the session
stuff
when they navigate away
() are still very useful though. Espcially for bugs that only
come up
in IE!)
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, 26 February 2004 18:58
To: Struts Users Mailing List
Subject: Re: JavaScript Parameter
First when debuging javascript alert boxes are handy
Okay following the session vs request debate I've a situation like the
one I was describing. If you wanted to make someone see the light this
is the time to do so.
I've success fully scoped a few forms with indexed properties to
request, and all is fine and dandy.
but I've a form with 2
Seems to be working now..
Also i had a while loop not an if statement in my getFoo unlike my
example.
Just to deal with wizard style forms now.
On 25 Feb 2004, at 10:46, Mark Lowe wrote:
Okay following the session vs request debate I've a situation like the
one I was describing. If you
the mutipart stuff that did the trick?
Niall
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 10:21 AM
Subject: Re: request scoped forms
Seems to be working now..
Also i had a while loop
I have to say I'm changing sides in this debate. The only 'need' i see
to store forms in the session is for wizard type interfaces, although
I'm looking into a tidy solution into this.
I agree that hardware it cheaper than time, and that sessions are by no
means evil, but unless there's a
forms increase development time as you cant see problems
until runtime, but okay for the odd simple form.
On 25 Feb 2004, at 12:36, Mark Lowe wrote:
I have to say I'm changing sides in this debate. The only 'need' i see
to store forms in the session is for wizard type interfaces, although
I'm
html-el will do you. If you're running tc5 then you can use the
expression syntax in standard tag libs (i think).
if not then .
html-el:link page=${refVO.link}
or
html:link page =%= refVO.getLink() %
or
a href=c:url value=${refVO.link} /
If you get the jstl route then use c:forEach rather
I hereby confirm that you can have more that one servlet mapping
according to the servlet 2.2 spec
On 25 Feb 2004, at 16:51, Kale, Nilesh wrote:
Hi
Can anyone confirm if on servlet can have more then one
servlet-mapping in
Servlet 2.2 spec?
Thanks
Nilesh
The Royal Bank of Scotland plc,
to
my customers they may have their own JSP developer show extra
prpoerties of
the selected Person.
So, that's my justification for using session scoped form beans. Any
comments gratefully recieved.
Paul
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 25 February 2004 11
I'm not sure that session doesn't do this anyway, but you could write
to a text file and save the values that way. The overhead will be
reading an' writing but it should stay pretty constant.
Could even develop it saving to httpsession and then replace http
session with your file appending
True..
Writing to the db is another option, but I suspect slower than writing
to a flat file (probably depends on the db and jdbc drivers).
Still think store in the session and see what breaks. If you use
request scoped forms but store the values in the session, should be
easier to swap out
First please HTML formatted email really get on my wick, i know you
whizz-band outlook power users like this sort of jazz, but the jakarta
mailing list rules do clearly state that this isn't cricket.
If your problem has a request scope form, as a diagnostic measure scope
the form to session
the name of the form will be whatever you called it in struts config.
There was a name attribute in 1.0 but this became deprecated and now
must have been removed.
I imagine that something will be done in newer releases (perhaps
already) to support strict xhtml and thus do away with rendering
styleId will give you a hook if you need have a way of drilling to
something. But i'm guessing what your needs are.
On 24 Feb 2004, at 13:38, Mark Lowe wrote:
the name of the form will be whatever you called it in struts config.
There was a name attribute in 1.0 but this became deprecated
Pass the values back by returning a body tag from a servlet with an
onload function, I've done this by generating an iframe in javascript,
and the servlet when its done its stuff returns
if(isDone()) {
response.write(body onload=\myfunction()\);
}
But passing back anything more than a boolean
is populated my the sneakyForm hidden in an iframe, frame window
or something (ns4 a dic should work also).
You'll be reaching for the crack trying to get this to work, across
browsers.
On 24 Feb 2004, at 19:38, Mark Lowe wrote:
Pass the values back by returning a body tag from a servlet
http://jakarta.apache.org/site/micromail.html
On 23 Feb 2004, at 08:44, Dixit, Shashank (Cognizant) wrote:
Hi all
I am using Tomcat 4.0 plugged in Eclipse 2.1
In any jsp I cannot use %= .. % i.e. JSP Expression.
E.g if I define
%! String var = Anyvar %
And
html:select name=form
use c:out it wont display null values.
On 23 Feb 2004, at 13:51, [EMAIL PROTECTED] wrote:
Hi,
I am thinking of overriding get and set methods of DynaForm Class in my
Base Form class which extends Dyna Form in that if I can make a check
it
should be good ..
What do you think?
Regards
anant
Ah..
I remember giving eclipse a go, and it ate my homework also. My guess
is that it get you producing at such supersonic rates that the files
just ant keep up.
:o) sorry I've nothing useful to add.
On 21 Feb 2004, at 20:45, [EMAIL PROTECTED] wrote:
Hi list,
I have a weird problem with all
Look at the posts on nesting beans, indexed properties and such like. I
haven't looked but Niall's post yesterday I believe covers this sort of
problem.
The basic idea is that you have a bean/actionform per row.
On 20 Feb 2004, at 04:41, Vishal Arora wrote:
Hi,
My problem is that on my
I wouldn't use hide show by way of css for this. Use an old fashioned
image swap with the transparent gif. Unless you need the image
positioning over the top of anything (if its a form you'll need to hide
that to c/o z-indexing and forms).
In short don't hide-show but swap.
On 20 Feb 2004,
global-forwards
forward name=error path=/error.jsp /
/global-forwards
in your action you can forward to error in the event that something's
gone pear-shaped.
On 19 Feb 2004, at 01:58, Russ Baker wrote:
I am having a real issue with the way Tiles handles an error page. I
am
setting up
make
more sense
than mine..:)
Hope this will sustain you without the crack..;)
Geeta
Mark Lowe wrote:
I said no such thing about javascript.
I'm in the httpsession != evil school and I'd say this isn't an
occasion where you'd use it as you don't need anything to persist
beyond the request
What about indexed=true on the radio button?
On 19 Feb 2004, at 04:36, Johnson, Gary wrote:
Hello *,
I've been trying to generate a variable list of text fields with
each
row containing a radio button and 2 text fields. The getters seem to
work
OK, but can't seem to make the setters work.
without a refresh its a javascript question
find the oreilly book on javascript and look at the Option()
constructor.
Struts and tiles may help you to get the data to the page, but the
re-population of select menus is javascript.
On 19 Feb 2004, at 13:05, Daniel wrote:
How can I make two
That tag lib guillermo suggested, or writing your own javascript like i
suggested is the way to do it then ..
On 19 Feb 2004, at 13:34, Daniel wrote:
I used iframe, some time ago at one project but I was not using
struts,tiles
with iframe it's work very well, but don't have many advantages
How's this? you can put it in a tile wooo (I hear gasps of amazement) ..
script language=javascript type=text/javascript
!--
function ajavascriptfunctioninatile() {
alert(Mellow World!!);
}
//--
/script
a href=javascript:ajavascriptfunctioninatile()Hit me/a
On 19 Feb 2004, at 18:14,
..
Use of javascript is restricted. So i cant call a javascript
function
to set the action atribute and then call the submit function.
Avinash Tiwari
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Mark Lowe [EMAIL PROTECTED
Umm
I like the sound of that. I haven't thought it through fully yet so
there could be some glitch i've missed. just to complement the
suggestion (other than having an ant task the fire everything up) you
could have xdoclet comments to generate your web.xml
%
/**
*
* @web.servlet
*
well make more
sense
than mine..:)
Hope this will sustain you without the crack..;)
Geeta
Mark Lowe wrote:
I said no such thing about javascript.
I'm in the httpsession != evil school and I'd say this isn't an
occasion where you'd use it as you don't need anything to persist
beyond the request
. This allows you to construct
links
and test in a manner that isn't locked to a particular deployment. In
development, we work within the JSP directories so we want to compile
these
as they change.
If you're still skeptical, remember that Tomcat does the same thing
on-the-fly.
Mark Lowe wrote:
Umm
String's always a safe bet.. But you can use Boolean although I
understand that you don't want to use the primitive boolean.
On 18 Feb 2004, at 22:46, Anand M S wrote:
Hi All,
Is we use html:checkbox, what should be the type in struts-config.xml?
is that boolean or string?
THanks,
Anand
Take a look at the advanced tiles pdf that someone else mentioned on
another tiles thread. If you extend tilesaction then you could generate
your definitions from the data collected from your model.
I'm not sure of the performance issues related to this. And i don't
thing anyones done the work
I doubt you need to store your list in the session, 'in this case' you
can use the request without introducing additional work, complication,
geeking and/or messing around.
request.setAttribute(list,data);
[data is the plural (datum singular), not that this matters I
understood what you are
May I ask why you don't want a submit button?
On 17 Feb 2004, at 15:55, [EMAIL PROTECTED] wrote:
Hi
How can we submit a form without using html:submit tag. I dont want
to use JavaScript for this?
Thanks Regards
Avinash Tiwari
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website:
In which case you want a
input type=image ..
in stuts speak
html:image ..
On 17 Feb 2004, at 16:26, [EMAIL PROTECTED] wrote:
there is a hyperlink in my form - clicking this hyperlink should
submit the form.
I can't use html:submit because it displays a button instead of a
hyperlink.
Should java.sql.Date belong in an form bean?
On 17 Feb 2004, at 16:15, Marco Mistroni wrote:
Hi Guillermo,
I have one question: will 'your trick' work also if I have
properties of type, for example, Short, or Integer, or java.sql.Date?
Thanx and regards
marco
-Original
Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Mark Lowe [EMAIL PROTECTED]
02/17/2004 08:57 PM
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
To
Struts Users Mailing List [EMAIL PROTECTED]
cc
Subject
Re: Form Submission
May I ask why you don't
input
DynamicBean to validate rules.
4) the service passes the validated DynamicBean to the persistence
layer, where DynamicBean is transformed to Persistence Object.
5) Persistence framework persists this object in the database.
Regards.
Guillermo.
-Original Message-
From: Mark Lowe
Assuming you're not cramming too much formatting inline then change the
layout.
On 17 Feb 2004, at 17:58, Eric Dahnke wrote:
What is the best way to do printer friendly pages using Tiles?
We've got a portal type application. I'm looking at the Dynamic Look
Feel capability of Tiles as a
DynamicBean to the persistence
layer, where DynamicBean is transformed to Persistence Object.
5) Persistence framework persists this object in the database.
Regards.
Guillermo.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Martes, 17 de Febrero de 2004 12:34 p.m.
To: Struts
/
/action
So you can plug any validations you need.
And ValidatorDynamicForm invokes Validator framework in the validate()
method. Note that we are using old version of validator
(com.wintecinc.struts.action.Validator)
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Martes
You can store the values from formA and put them into the request
before forwarding to the jsp with formB
FooForm theForm = (FooForm) form;
String foo = theForm.getFoo();
String bar = theForm.getBar();
//do what you want with form data.
//
Then
request.setAttribute(foo,foo);
On 15 Feb 2004, at 23:43, Michael McGrady wrote:
You [Mark Lowe] said:
Having additional fields that may not related to the given form I'd
say at least would confuse a site builder who comes along and has to
work out what's going on. For example a bunch of user details in a
credit card form
One advantage hibernate has over ibatis is xdoclet support. You can
generate your mapping files from xdoclet comments which means that you
have the mappings and java code in the same place.
Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages
vs disadvantages I haven't a clue
fours but purring like a kitten :o)
Mark
On 16 Feb 2004, at 15:56, Michael McGrady wrote:
You [Mark Lowe] said:
Perhaps HttpSession is a blunt instrument, and would need to be
substituted by another persistence mechanism like say writing to a
temporary text file, but IMO this would be something
: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 3:41 PM
Subject: Re: [OT] - Request against Session
Ah.. I'm having a bad hibernate day instead today so I'm a bit more
distracted from this debate.
Truth is I'm pretty stupid, my simplistic
thinking about hardware while
developing, approaching the problem in a general way like you're
suggesting I like.
Cheers Mark
On 16 Feb 2004, at 18:48, Michael McGrady wrote:
At 07:41 AM 2/16/2004, you [Mark Lowe] wrote:
Not on all fours but purring like a kitten :o)
I think you are making
I'm only joking here guys so don't take me too serious.
Role description: Must be able to spam mailing lists an forums with
poorly defined questions like I need to build a webapp using struts
and oracle, please help.
On 16 Feb 2004, at 18:58, Andy Engle wrote:
deepak saini [EMAIL PROTECTED]
Look the US is the great bastion of free trade, take a look around the
world and get real please.
Both the US, UK and others have done well out of global trade. So its
no good crying when the competition comes along. US and UK companies
also benefit from being able to exploit the emerging
interesting.
do you havce a name for this methodologysomething that when it
rolls
off the tongue impresses the hell out of managers - they're a sucker
for
believing its not my fault if I can give them a good acronym.
Niall
- Original Message -
From: Mark Lowe [EMAIL PROTECTED
On 14 Feb 2004, at 20:12, Craig R. McClanahan wrote:
Quoting Michael McGrady [EMAIL PROTECTED]:
Now let us assume that the ActionForm for the record editing form
needs to
go in session scope (nb: in request scope there is not a problem so
if the
design can be done practically with request
On 15 Feb 2004, at 14:02, Michael McGrady wrote:
At 04:20 AM 2/15/2004, you wrote:
You Said:
During a payment process one may want to collect various details
about a user, likewise in other parts of a system you perhaps want to
do the same albeit in a different order. Hiding form values from a
wrote:
Well, Mark, I love you. But, I don't know what the issue is. LOL
At 08:21 AM 2/13/2004, you wrote:
Am i to assume that there's no issue then ? or am i being too stupid
to warrant a response?
On 13 Feb 2004, at 09:55, Mark Lowe wrote:
hi shirish
You said something yesterday about never
hi shirish
You said something yesterday about never being sure what data is being
displayed when using a session scoped action form, have you any
references or can you elaborate? Sounds interesting, and I think its
something I should know about.
Cheers Mark
On 13 Feb 2004, at 09:49, [EMAIL
At least i'm not the only one.
I also have/had no idea about this issue. Which is why I asked. Oh well
I've just asked shirish what he meant, see what s/he (not taking the
piss just not familar with the name) comes up with.
Cheers Mark
On 13 Feb 2004, at 04:47, Michael McGrady wrote:
At
There are a few ways of going about this.
What are you trying to do?
On 13 Feb 2004, at 12:20, Vishal Arora wrote:
I want to use DynaActionForm...
my problem is in my jsp i have no of textfields. but they r generated
dynamically
now in struts-config.xml how should i decaler those dynamic
I see no reason why you can't create you tiles defs form data retrieved
from you model, rather then defining in xml file.
If you're familar with tiles defs then reading the javadocs on tiles
should show you the way, I've never done this. But my cousin told me
some he works with does the same
Am i to assume that there's no issue then ? or am i being too stupid to
warrant a response?
On 13 Feb 2004, at 09:55, Mark Lowe wrote:
hi shirish
You said something yesterday about never being sure what data is being
displayed when using a session scoped action form, have you any
references
(Understandable)explanation in short time.So the mail is
incomplete till now :-((.
I will try to explain it now..(Hopefully there will be no more bugs to
eb fixed till end of day...)
BTW, I am HE :-)) and not SHE
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday
is either
added to
Order B (instead of the intended Order A)
Seems to me a pretty easy thing to check if the info they are updating
relates to the info in the session, but that could be just me.
-Rob
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004
yeah.. there's always someone :o)
On 13 Feb 2004, at 18:12, Niall Pemberton wrote:
I keep getting these messages - I'm thinking its when I send an email
to
this list - is anyone else getting them?
Niall
- Original Message -
From: Ben Janes [EMAIL PROTECTED]
To: Niall Pemberton [EMAIL
if you're saying what i think you are
function submit(form,dispatch) {
// jsut to test
alert(form.name);
}
onclick=submit(this.form,'MyDispatch')
perhaps i haven't understood however.
On 13 Feb 2004, at 18:43, Voinea, Marina wrote:
Thanks a lot Jean-Christian, this is a
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 4:45 PM
To: Struts Users Mailing List
Subject: Re: [OT] - Request against Session
There was an interesting posting the other day on this, I tend to stick
stuff in the session because I cant be arsed
Hi ben
I assume you know how to get request parameters, construct query
strings and get a byte array from you db. Here's some code that will
stream an image. This should get you far enough to adapt to you needs.
if you use an action just return null instead of a forward, or just use
a
have a look at the posting
called struts actions and content/type responses
and see the randomaccessfile bit.. Not sure but I reckon that could be
the beef..also perhaps
response.setHeader(Cache-Control, no-cache);
On 12 Feb 2004, at 13:29, Villalba Arias, Fredy [BILBOMATICA] wrote:
Hi,
You can have a string that looks like a date and validator will still
validate it. To my knowledge there is no need to have the property of
type Date. same is true of other types also.
On 12 Feb 2004, at 14:36, Carl Walker wrote:
Hi,
I'm having a problem setting an initial value for a
i believe that disabled form elements return null.
I hate to say it, but you could have the uid stored as a hidden
variable in the case of the non admin user but still display a text
field with the value displayed.
On 12 Feb 2004, at 14:31, Arne Brutschy wrote:
Hi,
I have a problem with
is
not required, so specifying a string like '1970-01-01' for an initial
value isn't desirable.
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
Date: Thursday, February 12, 2004 8:44 am
Subject: Re: validation.xml and java.sql.Date
You can have a string that looks like a date
While I found your solution interesting. But whether the session is
bloated or not is other folk's problem. The javadoc for HttpSession
says what its for, the other way is to persist out-side of the web tier
which is another subject. Sure you don't want to use session for
everything that would
as abuse very much depends on your
expected load (and things like whether you need to cluster). Whats
abuse for
a public portal with 1000 hits per second is just fine for an intranet
app
thats unlikely to have more than a dozen simultaneous hits...
-Original Message-
From: Mark Lowe [mailto
is not an issue..Even in that case i will refrain from using session
scoped form beans...U are never sure which set of data you are working
with...:-((
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 4:54 PM
To: Struts Users Mailing List
Subject
the
indexedList property in the validation.xml. I am not sure how I can
convert the internal action form to a DynamActionForm without
subclassing it.
Nathan Maves
Sun Microsystems
On Feb 11, 2004, at 2:17 PM, Mark Lowe wrote:
yeah.. I read that too never seen it working though (made a nice
article
Hi Michael..
Do you know anything about this not knowing what data one is looking at
issue when scoping forms in the session? I've never come across this
and you sound like you might know about this kind of thing.
On 12 Feb 2004, at 23:47, Michael McGrady wrote:
There is no such thing as work
Okay..
Sure speed wise the filling ram approach that java uses would have
everything ready n waiting. While most c cgi's will be hitting the
disk. But as the beef was bloat and thus I assume ram usage then I'd
say that our session-shy friend would be all the happier.
Java would only win/draw
I've always found that BeanUtils doesn't like BigDecimal and use type
string then convert to BigDecimal before passing it up to the model .
If you don't want to use string then perhaps Double or even its
primitive (if you can get away with it) might work for you.
On 11 Feb 2004, at 11:47,
You can do all the work in one action, just don't do the image stuff if
there's not one present.
int imageLength = image.getFileData().length;
if(imageLength 0) {
//do the image stuff.
}
On 11 Feb 2004, at 14:57, Turner Benjamin wrote:
hi,
well i have an action that compiles all the
If you're new to this stuff then jstl might be preferable
c:choose
c:when test=${email.type == 'html'}
Stop sending HTML Emails they suck
/c:when
c:when test=${email.type == 'rtf'}
What the f**k is wrong with plain text then?
Ohh.
Make a wish :o)
On 11 Feb 2004, at 15:18, Slattery, Tim - BLS wrote:
Can anybody tell me how to make decision making in
struts (IF-THEN-ELSE).
I couldn't find proper tags in LOGIC.
That's because they aren't there. Instead use the JSTL logic tags:
c:choose
c:when test=${...}
this
Yep.. I've done this with arrayList before, don't know if you can use
an array of DynaForm's but I'd imagine you can. But it works with
ArrayList.
On 11 Feb 2004, at 15:52, Nathan Maves wrote:
I need a DynaFormBean that has an array property. I want this
property to be of made up of a second
form-property name=nestedForms type=java.util.ArrayLIst /
On 11 Feb 2004, at 16:18, Nathan Maves wrote:
What do you use to specify the type attribute of the form to be?
Nathan Maves
Sun Microsystems
On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote:
Yep.. I've done this with arrayList before, don't
, Nathan Maves wrote:
Ok I got that part but what is the best way to populate that arraylist
with other DynaActionForm?
Nathan Maves
Sun Microsystems
On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote:
form-property name=nestedForms type=java.util.ArrayLIst /
On 11 Feb 2004, at 16:18, Nathan Maves
Microsystems
On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote:
In a referring action.
DyanActionForm theForm = (DynaActionForm) form;
//could use dynabean also
DynaActionForm nestedForm = new DynaActionForm();
ArrayList nestedFormList = new ArrayList();
nestedFormList.add( nestedForm );
theForm.set
There was an interesting posting the other day on this, I tend to stick
stuff in the session because I cant be arsed messing around. After
things are working I then see whether i can move things out. There
seems to be a lot on not storing stuff in the session i imagine because
things can
I was in the same boat, thinking that html:errors tag was up for
deprecation, but no. Just ActionErrors are, ActionMessages can be
rendered using html:errors.
On 10 Feb 2004, at 17:10, Slattery, Tim - BLS wrote:
With Struts 1.1, we have support for both error messages and
non-error messages.
There are two ways of dealing with this (that i know of), as you've
seen scope to session or you can use lazy list.
Usually complex forms have limited users anyhow so I scope to session.
However folks on the list have used lazy list which apparently works
although i've never seen it down
..
http://marc.theaimsgroup.com/?l=struts-userm=107458904510606w=2
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 5:03 PM
To: Struts Users Mailing List
Subject: Re: Problems (re)populating nested bean
There are two ways of dealing with this (that i
101 - 200 of 636 matches
Mail list logo