What if you add a size property, then put a logic greaterThan (zero) tag
around the iterate tag.
- Original Message -
From: "Stanley Tan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2001 1:56 AM
Subject: Iterate Tag
> Hi,
>
> I have an iterate tag that loops throu
Hi,
I have an iterate tag that loops through the items in a shopping
cart. Now, everything is working fine UNLESS I view the page when the
shopping cart is empty.
">
When it is empty, I get
javax.servlet.jsp.JspException: Cannot create it
Title: RE: Pre populating a Form Bean
Does jsp1 forward to jsp2? If so, populate the bean
in the perform method, stuff it in the request, the jsp2 can find it
there.
- Original Message -
From:
Tewathia, Atul
To: [EMAIL PROTECTED]
Sent: Sunday, April 15, 2001 12:46
Title: RE: Pre populating a Form Bean
It can't be done in action of jsp1 because there is no reference to the form of jsp2.
-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Pre populating a Form Be
Title: Pre populating a Form Bean
Jsp1
and jsp2 use different forms and different data.
-Original Message-From: Tharwat Abdul-Malik
[mailto:[EMAIL PROTECTED]]Sent: Sunday, April 15, 2001 1:06
AMTo: [EMAIL PROTECTED]Subject: Re: Pre
populating a Form Bean
Assuming that jsp2
I think u should be able to Populate it in the Action of JSP1.
--- "Tewathia, Atul" <[EMAIL PROTECTED]> wrote:
>
> I want to pre-populate a formBean in this scenario.
>
> Jsp1 --> Jsp2
>
> When I process the data of jsp1 using form1 in the perform method how do
> I
> set the form2 attributes ..
"Craig R. McClanahan" wrote:
> One of the items on the TODO list for Struts 1.1 will be to support the
> optional creation of client-side JavaScript for validation of simple
> things like required fields, valid date formats, and such. But, even if
> you utilize this feature when it becomes availa
Title: Pre populating a Form Bean
Assuming that jsp2 will use the same data in the
formBean, just stuff it in the request object in the perform method. Then jsp2
can use the bean.
- Original Message -
From:
Tewathia, Atul
To: '[EMAIL PROTECTED]'
Sent: Saturday, April
Hello Tharwat,
Thank you very much for your help.
cheers,
Amar..
-Original Message-
From: Tharwat Abdul-Malik [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 14, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: select option
I'm a newbie to struts. In fact I just downloaded it ye
I'm a newbie to struts. In fact I just downloaded it yesterday (Friday) and
thought I'd get involved. I built a very simple application last night. But
I think the struts tags already selects the correct item. I use something
like the following to display the items in a list.
// Code Bean
I don't think anyone has written the text book yet, but there's a WAR of
the application I'm building now (Gavel) at <
http://husted.com/about/struts >.
It validates users, uses templating (the components version), and a JDBC
backend, but isn't quite finished. There's a working beta at <
http://
No, I don't agree with you.
My model is unchanged, containing validation rules, whether I use my
approach or standard Struts stuff.
I wouldn't have any validation rules in ActionForms if a could help it
except for the fact that, initially you need to store input as Strings so
that you can re-dis
JavaScript just makes the client side more interactive (which is good) but
it doesn't reduce the need to do stuff server side since for safety you
still need to repeat all the validation on the server side.
> -Original Message-
> From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
> Sent: 14 Apr
Ach du lieber!
I suppose translation is also the sincerest form of flattery!
(If you subscribe to Struts-Dev, you can watch for any CVS updates to
the documentation ;-)
Hartmut Bernecker wrote:
>
> Einleitung in Struts 1.0
> (German translation of "Struts User's Guide")
>
> URL:
>
> http://
Einleitung in Struts 1.0
(German translation of "Struts User's Guide")
URL:
http://habweb.de/struts/
cheers
Hartmut Bernecker
//
Hartmut Bernecker
Heinrich-Rorbeck-Weg 30
73614 Schorndorf
Tel. 0 71 81 / 25 75 39
Fax. 0 71 81 / 25 75 41
[EMAIL PROTECTED]
\
I think the best discussion of "Why we need Struts" is summed up in
Jason Hunter's. article regarding the difficulties with JSP Model 1
applications.
< http://www.servlets.com/soapbox/problems-jsp.html >
What all this boils down to is that Struts gives you a place to stand.
Without a controll
Title: Pre populating a Form Bean
I want to pre-populate a formBean in this scenario.
Jsp1 --> Jsp2
When I process the data of jsp1 using form1 in the perform method how do I set the form2 attributes .. so that the jsp2 is displayed with preloaded data.
Can any body guide in this ??
Hi
Young Wayne posted an previous in regards to getting version mismatch error
when serializing class.
I encountered similar problem when serializing my object as well. The errors
are
java.io.InvalidClassException: java.lang.Integer; Local class not
compatible: stream classdesc serialVersionUID
Hi,
I'm using the template library to create a dynamic template for index pages
that share the same format (see below). One of the pages (menu.jsp) that
compose the template has a form which validation is handled by two
components : the associated ActionForm object for the simple validation and
t
See below.
"Craig R. McClanahan" wrote:
>
> > 2) I have a bean that has a collection of Phone objects, accessible via
> > its getPhones() method. Shouldn't I be able to return EITHER a Phone[]
> > or a java.util.Collection? The following element works fine when a
> > Collection is returned, bu
"Craig R. McClanahan" wrote:
>
> You might ask your staff to look inside the "commercial" pacakges they are
> using - they would probably be fascinated to find that the web server
> inside IBM's WebSphere is actually Apache (for example).
Not to get too off-topic, but IBM didn't stop with Apache
I'm unsure if you should mention using more than one controller at
< http://www.jspinsider.com/tutorials/jsp/struts/struts.html >
Typically, there is just one ActionServlet (controller), but several
Actions.
The text also seems to imply that Struts provides a model object, which
may confuse pe
I finally got this to work.
My problem was that I thought that
< http://java.sun.com/products/jsse/INSTALL.html - item 7 >
meant I can use
java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
add the property permanently from the command line. I finally added it
to the c
23 matches
Mail list logo