Hi,
Have a look on struts nested tags.
Regards,
Nuwan
- Original Message -
From: "Oscar Guindzberg" <[EMAIL PROTECTED]>
To:
Sent: Thursday, January 25, 2007 6:29 PM
Subject: Nesting logic:iterate tags and indexed="true"
I have a problem nesting logic:iterate tags along with using
Hi,
Is it safe to create an instance of a action class in
another action class and use.
For example ..
public NewAction extends Action
{
public ActionForward execute ()
{
OtherAction oact = new OtherAction();
oact.execute();
}
}
Thanking you,
Chamal.
Properties must begin with "get" -- which means "length" is not a
property. You will have to use scriptlets, or wrap your File in some
class which can expose a getter for you.
chuanjiang lo wrote:
Hi all,
I have an ArrayList (fileList) that stores the type java.io.File
Im trying to iterate t
Hi all,
I have an ArrayList (fileList) that stores the type java.io.File
Im trying to iterate through the list to get the name and size of the file
java.io.File provides a method length() that return us the size of the file.
So how i can get the size of the file?
i tried and
--- Christopher Schultz wrote:
> No. The /request/ body after form processing (i.e.
> at the top of the Action code, which gets executed
> /after/ the request body has been read
> by struts to populate the form bean.
Oo.
How is that going to help him see if it meets
accessibility requirement
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> --- Christopher Schultz wrote:
>> I think you might be missing what he's trying to do.
>
> I'm pretty sure I am ;)
>
> You mean the HTML body after Action execution?!
No. The /request/ body after form processing (i.e. at
What you're trying to do wont work. In your original attempt, you had a
JSP which invokes a bean, and the bean reads from the request. The
request doesn't contain the HTML the JSP generates, so that wont give
you what you wanted.
The code below also wont work. You're trying to read the HTML so
On Thu, 2007-01-25 at 15:25 -0700, Weisfield, Russell (HAC) wrote:
> Hello,
>
> To abide by Section 508 compliance I need to associate my form inputs
> with a tag. I therefore tried to add in an "id" attribute to my
> html:text tag (which is using the TextTag object). While the page
> rendered
--- "Weisfield, Russell (HAC)" wrote:
> [...] the text inputs did not have the id
> attribute with them and therefore [...]
http://struts.apache.org/1.2.9/userGuide/struts-html.html#text
styleId?
Dave
Expec
--- Christopher Schultz wrote:
> I think you might be missing what he's trying to do.
I'm pretty sure I am ;)
You mean the HTML body after Action execution?!
I'm still not sure how this can be done on the server
side without resorting to minor treachery; it seems
like driving the site w/ HttpUni
Hello,
To abide by Section 508 compliance I need to associate my form inputs
with a tag. I therefore tried to add in an "id" attribute to my
html:text tag (which is using the TextTag object). While the page
rendered successfully ( I did modify my .tld file to correct a rendering
error), the tex
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Célio,
Célio Cidral Junior wrote:
> The problem happens when the user
> is *altering* an existing customer (creating a new customer works
> fine), more specifically when the user is submitting changes from the
> form to an existing customer object (al
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
Dave Newton wrote:
> From: Marcello Savino
>> Up again with more details, please help!
>
> Okay, what if you re-rendered the action you submitted from but gave it
> a StringWriter? This is sick and wrong.
>
> What *specifically* are you attemp
I think your best bet would be to break up the parameter setting into 2
parts. (A variation on the paramsPrepareParamsStack) The first part would
set all parameters needed to load the data from the data. Then in the
prepare, you would have the id's needed to load the data from the database.
The
Célio Cidral Junior wrote:
Well, having Struts passing parameters in the order defined by the
html form would solve my problem. :-)
While setting parameters in a request struts has no idea what order they
were ordered in the originally generated form--remember that a single
action may be cal
2007/1/25, Tom Schneider <[EMAIL PROTECTED]>:
Unfortunately I don't think that's possible. The parameters get put into a
map structure, so the original parameter order is lost by the time it gets
to the servlet API. We've run into several instances where something will
work on one app server, b
Unfortunately I don't think that's possible. The parameters get put into a
map structure, so the original parameter order is lost by the time it gets
to the servlet API. We've run into several instances where something will
work on one app server, but break on another because we had duplicate
pa
2007/1/25, Tom Schneider <[EMAIL PROTECTED]>:
This is an issue with the typical edit/save scenario. The problem we are
discussing is that the domain model is needed in some form before the
parameter can be repopulated from the form save. The technique you are
using is to reread the data from th
This is an issue with the typical edit/save scenario. The problem we are
discussing is that the domain model is needed in some form before the
parameter can be repopulated from the form save. The technique you are
using is to reread the data from the database before the parameters are
set. An a
2007/1/25, Dale Newfield <[EMAIL PROTECTED]>:
Célio Cidral Junior wrote:
> Implementing Preparable does not seem to solve the problem because the
> parameters are set before the prepare() method is invoked.
Which is needed in order to know which object to retrieve from the DB.
I think you have
I have a problem nesting logic:iterate tags along with using indexed="true"
I have a form that extends ActionForm which has a Car array. Car class
has in turn a type and a Components array. Component has 2 fields:
name and qty.
This is the jsp:
This is the generated html:
Célio Cidral Junior wrote:
Implementing Preparable does not seem to solve the problem because the
parameters are set before the prepare() method is invoked.
Which is needed in order to know which object to retrieve from the DB.
This model usually includes including the parameters interceptor tw
2007/1/25, Dave Newton <[EMAIL PROTECTED]>:
From my point of view it seems like your implementation is broken: if you need
to create a Customer from an ID passed via a form or URL then you either need
to implement Preparable or do the DAO operations in the (in your case) input or
save methods.
Hi
The Java Web User Group (JAVAWUG, LONDON) is holding a web framework
smackdown
BOF 24 at Skills Matter's offices in London on 19 Feb 2007. At the
moment we have
representatives for RIFE, Spring MVC, and standard API. Hey! If someone
wants
to rock the house with Struts 2 or Wicket demos and ``
Hello,
Issue WW-1570 itself is 'just' an improvement, but since yesterday we
know that solution for issue WW-1665 depends heavily on it.
Can WW-1570 get a higher priority and be included in 2.0.4?
It 'only' adds some property to some ajax tags, and does not hurt.
Plase :)
Best regards
Dariu
Up again with more details, please help!
In an Action subclass the execution of "request.getReader()" throw an
IllegaStateException.
I found that this is the normal behavior in the servlet, but i need to
do this in all my LookupDispatchAction subclass. Any idea to get a
turnaround to solve this p
From: Célio Cidral Junior
> public Customer getCustomer() {
> if (customer == null)
> customer = id != 0 ? dao.get(id) : new Customer();
> return customer;
> }
> [...]
> The way I built both the action and the view prevents me from writi
Struts don't set the form data onto the Action in the same order in
which the fields appear in the form. For instance, suppose you have a
form like this:
And its corresponding Action, which is something like:
public class CustomerAction extends Act
From: Marcello Savino
> Up again with more details, please help!
Okay, what if you re-rendered the action you submitted from but gave it
a StringWriter? This is sick and wrong.
What *specifically* are you attempting to do?
Dave
--
From: Marcello Savino
> I've read what you suggested but the problem is that i need a "submit
> tag" in other words, i need to process the request content after the
> user press a specific button (the others are handled in a
> LookupDispatchAction subclass).
...you want to submit a form and have a
Very interesting approach, thanks a lot
Marcello Savino
ALDEBRA S.p.A.
tel. 0461302441
-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED]
Inviato: giovedì 25 gennaio 2007 15.49
A: Struts Users Mailing List
Oggetto: [OT] RE: Error : request.getReader()
From: Marcello Sav
I've read what you suggested but the problem is that i need a "submit tag" in
other words, i need to process the request content after the user press a
specific button (the others are handled in a LookupDispatchAction subclass).
I think i need some more info to built this kind of tag. Do you know
Hi
Anyone else having difficulty connecting to planetstruts.org? A few of
the Struts2 tutorials link out to the site and I've been unable to
connect for the past week.
Anyone know why it's down and/or when it'll be back up?
Cheers
Dan
--
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]
> I tried it last week with Websphere 6.0 (jdk 1.4.2) using
> retrotranslator - with success.
Ditto on 8.1 with 1.4.2.
I don't recall that I had to do anything else in particular to get it to
work, the '-advanced' flag was the ticket.
Unfortunately
For the sake of completeness:
S2 2.0.3 fixes the map-based type conversion issue; it works like a
charm. I believe there was a JIRA issue filed against this; here's
another datapoint saying it now works.
The type conversion stuff is *really* handy.
Dave
From: Marcello Savino
> I really don't undestand what you mean.
> Can you explain with a little example ?
http://www.phptr.com/articles/article.asp?p=26119&seqNum=7&rl=1
http://java.sun.com/developer/Books/javaserverpages/cservletsjsp/index.h
tml has a link (PDF) to the chapter about creating cus
I really don't undestand what you mean.
Can you explain with a little example ?
Thanks in advance
Marcello Savino
ALDEBRA S.p.A.
tel. 0461302441
-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED]
Inviato: giovedì 25 gennaio 2007 13.11
A: Struts Users Mailing List
Oggetto
In doing some other work on the Tiles tags, I found some problems with how
the PutListTag is implemented.
I fixed these (SVN revision r495431 and r495722, see also
http://svn.apache.org/viewvc/tiles/trunk/tiles-core/src/main/java/org/apache/tiles/taglib/PutListTag.java?view=log
)
I didn't build
Bollocks.
--- Marcello Savino wrote:
> In an Action subclass the execution of
> "request.getReader()" throw en
> IllegaStateException.
Why not just create a custom tag that does whatever it
is you think you need to do, wrap it around your
entire page contents, then getting the body becomes as
sim
--- Marcello Savino wrote:
> In an Action subclass the execution of
> "request.getReader()" throw en
> IllegaStateException.
Why not just write a *really* simple custom tag that
does whatever it is you think you want to do with the
output?
Dave
___
Hi,
I have problem using putList tag on jsp page. Namely I`m trying to use
definition that looks like this:
On a page whose contains code:
Unfortunately this cause some problems which results in ex
In an Action subclass the execution of "request.getReader()" throw en
IllegaStateException.
I found that this is the normal behavior in the servlet, but i need to
do this in all my Action subclass. Any idea to get a turnaround to solve
this problem ?
Any help will be appreciated
Thanks in advance
42 matches
Mail list logo