struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh P" <santhos...@svw.com>
Subject JSP help
Date Tue, 04 May 2004 06:31:43 GMT
Hi,

I have a select box in jsp page having data loaded as collection and is
working well.
My problem is the display text content "datalist" is too large and i want
the display limited
content in select box for good look and feel of the display page.
I have set a size="10" for select tag.
But still the select box is streched to include the full text content.
Why here the size attrribute not working here but works well for
<html:textbox>
Any one help me

Cheers
San Pedro

       <html:select property="datas" multiple="true" size="10">
           <html:options collection="datalist" property="value"
labelProperty="label"/>
          </html:select>
----- Original Message -----
From: <struts@yahoogroups.com>
To: <struts@yahoogroups.com>
Sent: Tuesday, May 04, 2004 12:44 AM
Subject: [struts] Digest Number 3851


> There are 25 messages in this issue.
>
> Topics in this digest:
>
>       1. Validator execution-order, all at once possible?
>            From: nils.mueller@accenture.com
>       2. Re: Setting html:text readonly attribute
>            From: Jason Miller <jason.miller@danteconsulting.com>
>       3. RE: Setting html:text readonly attribute
>            From: Paul McCulloch <paul.mcculloch@axiossystems.com>
>       4. Re: How to use resource bundle in attributes
>            From: Nathan Maves <Nathan.Maves@Sun.COM>
>       5. RE: Setting html:text readonly attribute
>            From: John Moore <john@jmsd.co.uk>
>       6. Re: How to use resource bundle in attributes
>            From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
>       7. RE: forwarding to a pop-up window
>            From: "Ricardo Cortes" <rcortes@boltstaff.com>
>       8. Re: trouble with taglibs in xml syntax
>            From: Tomasz Dreßler <tomek@terragate.net>
>       9. Re: How to use resource bundle in attributes
>            From: bOOyah <booyah@nowhere.org>
>      10. Re: How to use resource bundle in attributes
>            From: Nathan Maves <Nathan.Maves@Sun.COM>
>      11. Re: trouble with taglibs in xml syntax
>            From: Kris Schneider <kris@dotech.com>
>      12. Re: How to use resource bundle in attributes
>            From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
>      13. Re: How to use resource bundle in attributes
>            From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
>      14. nested:iterate & nested HashMap
>            From: Serhiy Brytskyy <uranium@ukr.net>
>      15. sslext - non-ssl http links available from https pages
>            From: "Eric Dahnke" <edahnke@nyc.yamaha.com>
>      16. RE: forwarding to a pop-up window
>            From: "Brian Lee" <brian_a_lee@hotmail.com>
>      17. RE: forwarding to a pop-up window
>            From: "Ricardo Cortes" <rcortes@boltstaff.com>
>      18. Re: Way to reload struts Action classes in WebLogic8.1
>            From: Craig McClanahan <craigmcc@apache.org>
>      19. Re: Split web.xml into multiple files
>            From: Craig McClanahan <craigmcc@apache.org>
>      20. issue with LazyList
>            From: "Mathew, Manoj" <Mathew.Manoj@principal.com>
>      21. Alpha and Beta testing...
>            From: "Michael Marrotte" <marrottem@homes.com>
>      22. Re: Remembering form values across requests
>            From: Jason Miller <jason.miller@danteconsulting.com>
>      23. Special Characters (german Umlaute)
>            From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
>      24. Re: Alpha and Beta testing...
>            From: Vic Cekvenich <cekvenich.vic@portalvu.com>
>      25. Re: [OT] Page Cannot Be Displayed
>            From: Rick Reumann <struttin@reumann.net>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
>    Date: Mon, 3 May 2004 17:06:10 +0200
>    From: nils.mueller@accenture.com
> Subject: Validator execution-order, all at once possible?
>
>
> http://marc.theaimsgroup.com/?t=105902599300002&r=1&w=2
>
> Hi folks,
>
> I got stuck on a problem discussed earlier in this list (@see link
> above).
> Hope this hasn't been answered elsewhere - it was the only thing I could
> find.
>
> Forms seem to get validated in a certain order. First, all required
> fields are checked. Only after passing all required checks is other
> validation performed. Correct?
>
> Suppose you have a field "name" and a field "age". Both a required and
> age also has integer checking applied. If user leaves "name" blank and
> enters bogus values (non-int values) in age, validation will complain
> only about name being required - not age being invalid. Only after name
> is filled, integer validation complains.
>
> I would like to see all applicable error messages at once. Is that a
> configurable option? Work-arounds?
>
> Thanx
> Nils
>
>
>
>
> This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 2
>    Date: Mon, 03 May 2004 11:08:02 -0400
>    From: Jason Miller <jason.miller@danteconsulting.com>
> Subject: Re: Setting html:text readonly attribute
>
> Actually, you can't use a tag as the value of another tag's attribute.
>
> If you use the html-el taglib you can do something like this:
>
> <html:text property="licenceCount" size="3"
> readonly="${purchaseForm.newPurchase}" maxlength="5"/>
>
> John Moore wrote:
>
> > I'm having a big problem trying to dynamically set a value for the
> > readonly attribute of an <html:text> tag. I'm using a JSTL core tag to
> > try to set it and whatever I do is ignored.
> >
> > In the example below, the newPurchase property is a boolean. If I use
> > exactly this tag elsewhere on the page, it outputs true or false as
> > expected. Here, though, it has no effect on the attribute, whether
> > newPurchase is true or false - the input tag generated is missing the
> > 'readonly' attribute.
> >
> >         <html:text property="licenceCount" size="3" readonly="<c:out
> > value='${purchaseForm.newPurchase}'/>" maxlength="5"/>
> >
> > I've also tried the following (with as little effect), using an escaped
> > double-quote instead of a single quote:
> >
> >         <html:text property="licenceCount" size="3" readonly="<c:out
> > value=\"${purchaseForm.newPurchase}\"/>" maxlength="5"/>
> >
> > The curious thing is that I can use a similar construct but with an
> > integer property to dynamically set other attributes, such as size, as
> > in the following example (ignore the logical nonsense of assigning a
> > size on such a basis, it's just a test of technical feasibility):
> >
> >         <html:text property="licenceCount" size="<c:out
> > value=\"${purchaseForm.totalLicences}\"/>" maxlength="5"/>
> >
> > Is there something to do with assigning boolean attributes in these tags
> > which I haven't got yet? Or is it just soemthing weird with the readonly
> > one?
> >
> > John
> >
> >
> > =============================================
> > John Moore     -    Norwich, UK    -    john@jmsd.co.uk
> > =============================================
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 3
>    Date: Mon, 3 May 2004 16:09:34 +0100
>    From: Paul McCulloch <paul.mcculloch@axiossystems.com>
> Subject: RE: Setting html:text readonly attribute
>
> You cannot use one jsp tag to supply another jsp tag with a value for an
> attribute.
>
> Some solutions are:
>
> 1) Use an html (rather than a jsp) tag:
>
>  <input type="text" name="licenceCount" value="<c:out
> value='${purchaseForm.licenceCount}'/>" size="3" readonly="<c:out
> value='${purchaseForm.newPurchase}'/>" maxlength="5"/>
>
> 2) Use a bean defintion and an rt expression:
>
> <bean:define id="readOnly" name="purchaseForm" property="newPurchase"/>
>
> <html:text property="licenceCount" size="3" readonly="<%=readOnly%>"
> maxlength="5"/>
>
> 3) Use struts el tag:
>
> <html-el:text property="licenceCount" size="3"
> readonly="${purchaseForm.licenceCount}" maxlength="5"/>
>
>
> Paul
>
> > -----Original Message-----
> > From: John Moore [mailto:john@jmsd.co.uk]
> > Sent: Monday, May 03, 2004 2:30 PM
> > To: user@struts.apache.org
> > Subject: Setting html:text readonly attribute
> >
> >
> > I'm having a big problem trying to dynamically set a value
> > for the readonly
> > attribute of an <html:text> tag. I'm using a JSTL core tag to
> > try to set it
> > and whatever I do is ignored.
> >
> > In the example below, the newPurchase property is a boolean. If I use
> > exactly this tag elsewhere on the page, it outputs true or false as
> > expected. Here, though, it has no effect on the attribute, whether
> > newPurchase is true or false - the input tag generated is missing the
> > 'readonly' attribute.
> >
> >          <html:text property="licenceCount" size="3" readonly="<c:out
> > value='${purchaseForm.newPurchase}'/>" maxlength="5"/>
> >
> > I've also tried the following (with as little effect), using
> > an escaped
> > double-quote instead of a single quote:
> >
> >          <html:text property="licenceCount" size="3" readonly="<c:out
> > value=\"${purchaseForm.newPurchase}\"/>" maxlength="5"/>
> >
> > The curious thing is that I can use a similar construct but
> > with an integer
> > property to dynamically set other attributes, such as size, as in the
> > following example (ignore the logical nonsense of assigning a
> > size on such
> > a basis, it's just a test of technical feasibility):
> >
> >          <html:text property="licenceCount" size="<c:out
> > value=\"${purchaseForm.totalLicences}\"/>" maxlength="5"/>
> >
> > Is there something to do with assigning boolean attributes in
> > these tags
> > which I haven't got yet? Or is it just soemthing weird with
> > the readonly one?
> >
> > John
> >
> >
> > =============================================
> > John Moore     -    Norwich, UK    -    john@jmsd.co.uk
> > =============================================
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 4
>    Date: Mon, 03 May 2004 09:12:21 -0600
>    From: Nathan Maves <Nathan.Maves@Sun.COM>
> Subject: Re: How to use resource bundle in attributes
>
> I am not 100% sure but I believe that you just use the <fmt:message>
> tag.
>
> Just use something like...
>
>
> <fmt:message key="login.tooltip.username" />
>
> if you need to send parameters just put them in the body of the tag.
>
> <fmt:message key="login.tooltip.username" >
> <fmt:param value="${username}"/>
> </fmt:message>
>
>
> Nathan
>
> On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:
>
> > Could you give a short example of how this can be done with JSTL or
> > point me
> > to an example?
> >
> > I looked into the Java Web Services Tutorial, but the chapter about
> > internationalization with JSTL only describes the use of
> > internationalized
> > strings in the body of a tag (e.g. <fmt:message ...>).
> >
> > Ralf.
> >
> > Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:
> >
> >> Use jstl!
> >>
> >> On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
> >>> Hi,
> >>>
> >>> how can a use internationalized text strings stored in a resource
> >>> bundle as
> >>> values of attributes?
> >>>
> >>> For example:
> >>>
> >>> <html:text property="username" title="login.tooltip.username"/>
> >>>
> >>> I know, this will not work, but how can it be done?
> >>>
> >>> Ralf.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 5
>    Date: Mon, 03 May 2004 16:27:28 +0100
>    From: John Moore <john@jmsd.co.uk>
> Subject: RE: Setting html:text readonly attribute
>
> At 16:09 03/05/2004, Paul McCulloch wrote:
>
> >You cannot use one jsp tag to supply another jsp tag with a value for an
> >attribute.
>
> This certainly explains my problem. I could swear that I was doing so
> successfully with an integer attribute, though, as I mentioned in my
> original post. Trying it again, though, it fails (as it apparently
should).
> Goodness knows what I did last time!
>
> Thanks for your suggestions, which I'll try out.
>
> John
>
> =============================================
> John Moore     -    Norwich, UK    -    john@jmsd.co.uk
> =============================================
>
>   ----------
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004
>
>
>   ----------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> [This message contained attachments]
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 6
>    Date: Mon, 3 May 2004 17:38:40 +0200
>    From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
> Subject: Re: How to use resource bundle in attributes
>
> But this is not the way I want to use it. This way, I could use it to put
a
> translated text into the body of a tag like
>
> <td><fmt:message key="login"></td>
>
> But how can I use the translated text as an attribute value as written
before?
>
> Ralf.
>
> Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves:
> > I am not 100% sure but I believe that you just use the <fmt:message>
> > tag.
> >
> > Just use something like...
> >
> >
> > <fmt:message key="login.tooltip.username" />
> >
> > if you need to send parameters just put them in the body of the tag.
> >
> > <fmt:message key="login.tooltip.username" >
> > <fmt:param value="${username}"/>
> > </fmt:message>
> >
> >
> > Nathan
> >
> > On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:
> > > Could you give a short example of how this can be done with JSTL or
> > > point me
> > > to an example?
> > >
> > > I looked into the Java Web Services Tutorial, but the chapter about
> > > internationalization with JSTL only describes the use of
> > > internationalized
> > > strings in the body of a tag (e.g. <fmt:message ...>).
> > >
> > > Ralf.
> > >
> > > Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:
> > >> Use jstl!
> > >>
> > >> On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
> > >>> Hi,
> > >>>
> > >>> how can a use internationalized text strings stored in a resource
> > >>> bundle as
> > >>> values of attributes?
> > >>>
> > >>> For example:
> > >>>
> > >>> <html:text property="username" title="login.tooltip.username"/>
> > >>>
> > >>> I know, this will not work, but how can it be done?
> > >>>
> > >>> Ralf.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
> --
> ##     Ralf Schneider
>  ##     Fürstenallee 14 - 34454 Bad Arolsen
>   ##     Tel. +49-5691-625994
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 7
>    Date: Mon, 3 May 2004 12:01:46 -0400
>    From: "Ricardo Cortes" <rcortes@boltstaff.com>
> Subject: RE: forwarding to a pop-up window
>
> Here's an example of what I'm doing in my Struts application to handle
opening up a popup window:
>
> <a href="javascript:popup('<core:url value="/displayNotePopup.do">
> <core:param name="messageSubject">
> <core:out value="${aMessageInstance.message.subject}"/></core:param>
> <core:param name="messageRecipient">
> <core:out value="${aMessageInstance.sender.memberName}"/></core:param>
> </core:url>')">Reply</a>
>
> The DisplayNotePopup action gets called when the user clicks on the link.
The parameter messageSubject and messageRecipient get passed as request
parameters to the DisplayNotePopup action.  Note that I'm also using the
core JSTL tag library.
>
> -Ricardo
>
> -----Original Message-----
> From: rchar@sears.com [mailto:rchar@sears.com]
> Sent: Monday, May 03, 2004 10:50 AM
> To: struts-user@jakarta.apache.org
> Subject: forwarding to a pop-up window
>
>
> Hi,
> I'm new to struts. I have a JSP form which when submitted, needs to open a
> pop-up window that will display a confirmation message after processing is
> complete. How would I do this?
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 8
>    Date: Mon, 03 May 2004 18:11:14 +0200
>    From: Tomasz Dreßler <tomek@terragate.net>
> Subject: Re: trouble with taglibs in xml syntax
>
> Thank you for your answer.
> It works. Can you help me understand why :)
> Someone looks in all jar's for
> 'http://jakarta.apache.org/struts/tags-bean' namespace?
> When I am use JSP 2.0 what I sould take instead of <jsp:root> element?
> I use tiles so I can't take <html> as root element.
>
> Greetings
>
>
> Kris Schneider schrieb:
>
> >Try:
> >
> >xmlns:bean="urn:jsptld:/WEB-INF/tags/struts-bean.tld"
> >
> >But since JSP 1.2 you really don't need separate TLD files for packaged
taglibs
> >(like Struts and JSTL). This should also work:
> >
> >xmlns:bean="http://jakarta.apache.org/struts/tags-bean"
> >
> >Then you can remove the TLD files from your app as well as the <taglib>
elements
> >from your web.xml. Also note that as of JSP 2.0 you don't have to use
> ><jsp:root> for your document's root element.
> >
> >Quoting Tomasz Dreßler <tomek@terragate.net>:
> >
> >
> >
> >>Hi!
> >>I have problems to use the struts taglibs in jsp with xml syntax.
> >>
> >>When I use
> >>   <%@ taglib uri="/WEB-INF/tags/struts-bean.tld" prefix="bean" %>
> >>the generated servlet contains the line
> >>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")'
> >>and everything is ok.
> >>
> >>But with the following syntax the line
> >>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")' disappeare
> >>   <?xml version="1.0" encoding="UTF-8"?>
> >>
> >>   <jsp:root version="1.2"
> >>       xmlns:jsp="http://java.sun.com/JSP/Page"
> >>       xmlns:c="http://java.sun.com/jsp/jstl/core"
> >>       xmlns:bean="/WEB-INF/tags/struts-bean.tld">
> >>           [...]
> >>
> >>   </jsp:root>
> >>
> >>I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:
> >>
> >>   <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> >>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >>       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
> >>       [...]
> >>   </web-app>
> >>
> >>
> >>Any Idea?
> >>
> >>Tomek
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 9
>    Date: Mon, 03 May 2004 17:28:31 +0100
>    From: bOOyah <booyah@nowhere.org>
> Subject: Re: How to use resource bundle in attributes
>
> Ralf Schneider wrote:
>
> > how can a use internationalized text strings stored in a resource bundle
as
> > values of attributes?
> >
> > <html:text property="username" title="login.tooltip.username"/>
>
> Hi Ralf
>
> Have you tried
>
>      <html:text property="username" titleKey="login.tooltip.username"/>
>
> I use the 'titleKey' attribute like this on 'html:submit' buttons.
>
> --
> bOOyah
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 10
>    Date: Mon, 03 May 2004 10:29:18 -0600
>    From: Nathan Maves <Nathan.Maves@Sun.COM>
> Subject: Re: How to use resource bundle in attributes
>
> Sorry....
>
> how about this..
>
> <fmt:message key="login.tooltip.username"  var="userNameTitle"/>
>
> I am not sure what the title attribute tag does.  Since it is a struts
> only attribute you will have to use the struts el tags to access the
> var userNameTitle that is now in scope.
>
> in web.xml
>
> <taglib>
>      <taglib-uri>struts/html-el</taglib-uri>
>      <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
>    </taglib>
>
> make sure you have the struts-el.jar in your classpath
>
> in your jsp
>
>
> <%@ taglib uri="struts/html-el" prefix="html" %>
>
> then use something like (never done this some I am really not sure how)
>
> <html:text property="username" title="${userNameTitle}" />
>
>
>
>
> On May 3, 2004, at 9:38 AM, Ralf Schneider wrote:
>
> > But this is not the way I want to use it. This way, I could use it to
> > put a
> > translated text into the body of a tag like
> >
> > <td><fmt:message key="login"></td>
> >
> > But how can I use the translated text as an attribute value as written
> > before?
> >
> > Ralf.
> >
> > Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves:
> >> I am not 100% sure but I believe that you just use the <fmt:message>
> >> tag.
> >>
> >> Just use something like...
> >>
> >>
> >> <fmt:message key="login.tooltip.username" />
> >>
> >> if you need to send parameters just put them in the body of the tag.
> >>
> >> <fmt:message key="login.tooltip.username" >
> >> <fmt:param value="${username}"/>
> >> </fmt:message>
> >>
> >>
> >> Nathan
> >>
> >> On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:
> >>> Could you give a short example of how this can be done with JSTL or
> >>> point me
> >>> to an example?
> >>>
> >>> I looked into the Java Web Services Tutorial, but the chapter about
> >>> internationalization with JSTL only describes the use of
> >>> internationalized
> >>> strings in the body of a tag (e.g. <fmt:message ...>).
> >>>
> >>> Ralf.
> >>>
> >>> Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:
> >>>> Use jstl!
> >>>>
> >>>> On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
> >>>>> Hi,
> >>>>>
> >>>>> how can a use internationalized text strings stored in a resource
> >>>>> bundle as
> >>>>> values of attributes?
> >>>>>
> >>>>> For example:
> >>>>>
> >>>>> <html:text property="username" title="login.tooltip.username"/>
> >>>>>
> >>>>> I know, this will not work, but how can it be done?
> >>>>>
> >>>>> Ralf.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >
> > --
> > ##     Ralf Schneider
> >  ##     Fürstenallee 14 - 34454 Bad Arolsen
> >   ##     Tel. +49-5691-625994
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 11
>    Date: Mon,  3 May 2004 12:30:02 -0400
>    From: Kris Schneider <kris@dotech.com>
> Subject: Re: trouble with taglibs in xml syntax
>
> As of JSP 1.2, the container makes packaged taglibs pretty easy to deal
with.
> For details, you really should check out the JSP spec (or get a decent
book).
> One of the things the container will do is inspect each JAR file in
WEB-INF/lib
> and look for TLD files in their /META-INF dirs. If a TLD contains a <uri>
> element, then an implicit <taglib> element is automatically created. Most
> packaged taglibs will document their official URIs, but you can always
inspect
> the TLD files if you need to.
>
> As for whether or not to use the <jsp:root> element, that's totally up to
you. I
> just wanted to mention that you don't have to use it. An abbreviated
example
> from the JSP 2.0 spec:
>
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:jsp="http://java.sun.com/JSP/Page"
>       xmlns:c="http://java.sun.com/jsp/jstl/core">
>   ...
> </html>
>
> Quoting Tomasz Dreßler <tomek@terragate.net>:
>
> > Thank you for your answer.
> > It works. Can you help me understand why :)
> > Someone looks in all jar's for
> > 'http://jakarta.apache.org/struts/tags-bean' namespace?
> > When I am use JSP 2.0 what I sould take instead of <jsp:root> element?
> > I use tiles so I can't take <html> as root element.
> >
> > Greetings
> >
> >
> > Kris Schneider schrieb:
> >
> > >Try:
> > >
> > >xmlns:bean="urn:jsptld:/WEB-INF/tags/struts-bean.tld"
> > >
> > >But since JSP 1.2 you really don't need separate TLD files for packaged
> > taglibs
> > >(like Struts and JSTL). This should also work:
> > >
> > >xmlns:bean="http://jakarta.apache.org/struts/tags-bean"
> > >
> > >Then you can remove the TLD files from your app as well as the <taglib>
> > elements
> > >from your web.xml. Also note that as of JSP 2.0 you don't have to use
> > ><jsp:root> for your document's root element.
> > >
> > >Quoting Tomasz Dreßler <tomek@terragate.net>:
> > >
> > >
> > >
> > >>Hi!
> > >>I have problems to use the struts taglibs in jsp with xml syntax.
> > >>
> > >>When I use
> > >>   <%@ taglib uri="/WEB-INF/tags/struts-bean.tld" prefix="bean" %>
> > >>the generated servlet contains the line
> > >>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")'
> > >>and everything is ok.
> > >>
> > >>But with the following syntax the line
> > >>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")' disappeare
> > >>   <?xml version="1.0" encoding="UTF-8"?>
> > >>
> > >>   <jsp:root version="1.2"
> > >>       xmlns:jsp="http://java.sun.com/JSP/Page"
> > >>       xmlns:c="http://java.sun.com/jsp/jstl/core"
> > >>       xmlns:bean="/WEB-INF/tags/struts-bean.tld">
> > >>           [...]
> > >>
> > >>   </jsp:root>
> > >>
> > >>I use Apache Tomcat/5.0.18 and I have modifyed my web.xml:
> > >>
> > >>   <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> > >>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > >>       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > >>       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
> > >>       [...]
> > >>   </web-app>
> > >>
> > >>
> > >>Any Idea?
> > >>
> > >>Tomek
>
> --
> Kris Schneider <mailto:kris@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 12
>    Date: Mon, 3 May 2004 19:36:13 +0200
>    From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
> Subject: Re: How to use resource bundle in attributes
>
> Yes! That's exactly what I was looking for. Thanks a lot!
>
> I missed this attribute when looking through the endless list of
attributes of
> the HTML taglib.
>
> Ralf.
>
> Am Montag, 3. Mai 2004 18:28 schrieb bOOyah:
> > Ralf Schneider wrote:
> > > how can a use internationalized text strings stored in a resource
bundle
> > > as values of attributes?
> > >
> > > <html:text property="username" title="login.tooltip.username"/>
> >
> > Hi Ralf
> >
> > Have you tried
> >
> >      <html:text property="username" titleKey="login.tooltip.username"/>
> >
> > I use the 'titleKey' attribute like this on 'html:submit' buttons.
>
> --
> ##     Ralf Schneider
>  ##     Fürstenallee 14 - 34454 Bad Arolsen
>   ##     Tel. +49-5691-625994
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 13
>    Date: Mon, 3 May 2004 19:42:45 +0200
>    From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
> Subject: Re: How to use resource bundle in attributes
>
> As a work-around I made it this way:
>
> <bean:define id="usernameToolTip">
> <bean:message key="login.tooltip.username"/>
> </bean:define>
> ...
> <html:text property="username" title="<%=usernameToolTip%>" />
>
> But what I was looking for was the suggestion bOOyah made in this thread.
You
> can simply use the titleKey attribute instead of title. titleKey uses the
> given text as a key for the resource file.
>
> Thanks for your help,
> Ralf.
>
> Am Montag, 3. Mai 2004 18:29 schrieb Nathan Maves:
> > Sorry....
> >
> > how about this..
> >
> > <fmt:message key="login.tooltip.username"  var="userNameTitle"/>
> >
> > I am not sure what the title attribute tag does.  Since it is a struts
> > only attribute you will have to use the struts el tags to access the
> > var userNameTitle that is now in scope.
> >
> > in web.xml
> >
> > <taglib>
> >      <taglib-uri>struts/html-el</taglib-uri>
> >      <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
> >    </taglib>
> >
> > make sure you have the struts-el.jar in your classpath
> >
> > in your jsp
> >
> >
> > <%@ taglib uri="struts/html-el" prefix="html" %>
> >
> > then use something like (never done this some I am really not sure how)
> >
> > <html:text property="username" title="${userNameTitle}" />
> >
> > On May 3, 2004, at 9:38 AM, Ralf Schneider wrote:
> > > But this is not the way I want to use it. This way, I could use it to
> > > put a
> > > translated text into the body of a tag like
> > >
> > > <td><fmt:message key="login"></td>
> > >
> > > But how can I use the translated text as an attribute value as written
> > > before?
> > >
> > > Ralf.
> > >
> > > Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves:
> > >> I am not 100% sure but I believe that you just use the <fmt:message>
> > >> tag.
> > >>
> > >> Just use something like...
> > >>
> > >>
> > >> <fmt:message key="login.tooltip.username" />
> > >>
> > >> if you need to send parameters just put them in the body of the tag.
> > >>
> > >> <fmt:message key="login.tooltip.username" >
> > >> <fmt:param value="${username}"/>
> > >> </fmt:message>
> > >>
> > >>
> > >> Nathan
> > >>
> > >> On May 3, 2004, at 8:44 AM, Ralf Schneider wrote:
> > >>> Could you give a short example of how this can be done with JSTL or
> > >>> point me
> > >>> to an example?
> > >>>
> > >>> I looked into the Java Web Services Tutorial, but the chapter about
> > >>> internationalization with JSTL only describes the use of
> > >>> internationalized
> > >>> strings in the body of a tag (e.g. <fmt:message ...>).
> > >>>
> > >>> Ralf.
> > >>>
> > >>> Am Montag, 3. Mai 2004 15:37 schrieb Nathan Maves:
> > >>>> Use jstl!
> > >>>>
> > >>>> On May 3, 2004, at 6:51 AM, Ralf Schneider wrote:
> > >>>>> Hi,
> > >>>>>
> > >>>>> how can a use internationalized text strings stored in a resource
> > >>>>> bundle as
> > >>>>> values of attributes?
> > >>>>>
> > >>>>> For example:
> > >>>>>
> > >>>>> <html:text property="username" title="login.tooltip.username"/>
> > >>>>>
> > >>>>> I know, this will not work, but how can it be done?
> > >>>>>
> > >>>>> Ralf.
> > >>>
> >
>>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >>> For additional commands, e-mail: user-help@struts.apache.org
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> For additional commands, e-mail: user-help@struts.apache.org
> > >
> > > --
> > > ##     Ralf Schneider
> > >  ##     Fürstenallee 14 - 34454 Bad Arolsen
> > >   ##     Tel. +49-5691-625994
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
> --
> ##     Ralf Schneider
>  ##     Fürstenallee 14 - 34454 Bad Arolsen
>   ##     Tel. +49-5691-625994
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 14
>    Date: Mon, 03 May 2004 20:45:06 +0300
>    From: Serhiy Brytskyy <uranium@ukr.net>
> Subject: nested:iterate & nested HashMap
>
> Hi,
>
> There is a struts form:
> <form-bean dynamic="true" name="cart"
> type="org.apache.struts.action.DynaActionForm">
> <form-property name="itemsMap" type="java.util.LinkedHashMap" />
> </form-bean>
>
> This hash map has got nested has maps. approximately next:
>
> LinkedHashMap itemsMap = new LinkedHashMap();
>
> HashMap map = new HashMap();
> map.put("Item1", new Integer(2));
> map.put("Item2", new Integer(4));
> map.put("Item3", new Integer(10));
>
> ....
>
> itemsMap.put(new Integer(0), map);
>
> ( (DynaActionForm) actionForm).set("itemsMap", itemsMap);
>
> How can I show this structure using nested:iterate? How can I get inner
> hash map?
> Next code on JSTL is working well:
> <TABLE>
> <c:forEach var="itemMain" items="${cart.map.itemsMap}">
> <c:forEach var="item" items="${itemMain.value}">
> <tr>
> <td><c:out value="${item.key}"/></td>
> <td><c:out value="${item.value}"/></td>
> </tr>
> </c:forEach>
> </c:forEach>
> </TABLE>
>
>
> But if I try nested:iterate it doesn't work:
>
> <TABLE>
> <nested:iterate id="itMap" property="itemsMap">
> <nested:iterate id="map" property="value">
> <TR>
> <TD><nested:text property="value"/></TD>
> </TR>
> </nested:iterate>
> </nested:iterate>
> </TABLE>
>
>
> Thanks,
> Serhiy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 15
>    Date: Mon, 3 May 2004 13:54:35 -0400
>    From: "Eric Dahnke" <edahnke@nyc.yamaha.com>
> Subject: sslext - non-ssl http links available from https pages
>
>
> Hello List,
>
> We have implemented sslext to secure a certain section of our application
/
> site. As part of the design / biz requirements the main navigation and
many
> links in the headers and footers are all still available from the https
> protected pages.
>
> My question is whether we have to explicitly convert all these available
> links to  <sslext:link> type links and explicity <set-property
> property="secure" value="false"/> within the specific struts actions?
>
>
>
> PS. Does the <set-property property="secure" value="any"> mean either http
> or https is ok for this action?
>
>
> Sincerely, Eric
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 16
>    Date: Mon, 03 May 2004 13:57:27 -0400
>    From: "Brian Lee" <brian_a_lee@hotmail.com>
> Subject: RE: forwarding to a pop-up window
>
> For your <form> tag, set the target to a window name, then when you
submit,
> call a javascript function that opens a new window with the same name.
This
> will submit all the values from the current page into the targetted new
> window.
>
> I think you can also just do <form target="_blank"> and it will submit
into
> a new blank html window but you won't be able to set the size or the
> properties of the new window like you can with window.open().
>
> BAL
>
> >From: rchar@sears.com
> >To: struts-user@jakarta.apache.org
> >Subject: forwarding to a pop-up window
> >Date: Mon, 3 May 2004 09:49:45 -0500
> >
> >Hi,
> >I'm new to struts. I have a JSP form which when submitted, needs to open
a
> >pop-up window that will display a confirmation message after processing
is
> >complete. How would I do this?
> >Thanks.
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
>
> _________________________________________________________________
> Check out the coupons and bargains on MSN Offers!
http://youroffers.msn.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 17
>    Date: Mon, 3 May 2004 13:59:04 -0400
>    From: "Ricardo Cortes" <rcortes@boltstaff.com>
> Subject: RE: forwarding to a pop-up window
>
> I forgot to include the popup() Javascript function:
>
> <script language= "javascript">
> <!--
>     function popup(targetURL) {
>
>         var props =
"scrollBars=yes,resizable=no,toolbar=no,menubar=no,location=no,directories=n
o,width=400,height=400";
>         var popup = window.open(targetURL, "Test Title", props);
>         popup.focus();
>     }
> //-->
> </script>
>
> -----Original Message-----
> From: Ricardo Cortes
> Sent: Monday, May 03, 2004 12:02 PM
> To: Struts Users Mailing List
> Subject: RE: forwarding to a pop-up window
>
>
> Here's an example of what I'm doing in my Struts application to handle
opening up a popup window:
>
> <a href="javascript:popup('<core:url value="/displayNotePopup.do">
> <core:param name="messageSubject">
> <core:out value="${aMessageInstance.message.subject}"/></core:param>
> <core:param name="messageRecipient">
> <core:out value="${aMessageInstance.sender.memberName}"/></core:param>
> </core:url>')">Reply</a>
>
> The DisplayNotePopup action gets called when the user clicks on the link.
The parameter messageSubject and messageRecipient get passed as request
parameters to the DisplayNotePopup action.  Note that I'm also using the
core JSTL tag library.
>
> -Ricardo
>
> -----Original Message-----
> From: rchar@sears.com [mailto:rchar@sears.com]
> Sent: Monday, May 03, 2004 10:50 AM
> To: struts-user@jakarta.apache.org
> Subject: forwarding to a pop-up window
>
>
> Hi,
> I'm new to struts. I have a JSP form which when submitted, needs to open a
> pop-up window that will display a confirmation message after processing is
> complete. How would I do this?
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 18
>    Date: Mon, 03 May 2004 11:32:25 -0700
>    From: Craig McClanahan <craigmcc@apache.org>
> Subject: Re: Way to reload struts Action classes in WebLogic8.1
>
> Michael McGrady wrote:
>
> > At 11:40 PM 5/2/2004, Craig McClanahan wrote:
> >
> >> Michael McGrady wrote:
> >>
> >>> Isn't it true, Craig, that this is not a problem for hot deploy of
> >>> the classes that do this.  If you have other classes that do not do
> >>> this, then they cannot be hot deployed.  But, what difference does
> >>> that make?  If someone wants to hot deploy them, they can redesign
> >>> the class.  The more I think about it, the less of a problem this
> >>> seems to be.  Am I missing something here?
> >>
> >>
> >> Most containers (but no guarantees, since it's not in the specs) will
> >> know how to pick up a new class that has never been compiled before.
> >> No container that I know of lets you selectively replace classes that
> >> have already been loaded into the class loader, because Java's class
> >> loader API doesn't support unloadClass() or replaceClass().
> >>
> >> Solving 1% of the problem doesn't help -- it only misleads people.
> >> See my response in the other thread for a very common Struts use case
> >> that doesn't work with your approach.
> >
> >
> > In the other thread I responded to the idea that the use case doesn't
> > work.  That use case is not supposed to work.  Making one class hot
> > deployable is not supposed to make all classes hot deployable.
> > Personally, I don't see a good reason not to make an entire framework
> > hot deployable.  This could be done fairly easy and without doing the
> > framework any injustice that is obvious.  All you have to do is to
> > provide the proper interfaces which is probably a good idea for lots
> > of reasons and cannot really hurt for any reason I know of and then
> > you can easily employ class factories using a new classloader for each
> > hot deploy.  That would for a game application, for example, provide a
> > 100% solution unrelated to the container.
> >
> > The key, and maybe you are not seeing this is part of the solution, is
> > to load the implementation with the following being true:
> >
> > 1.  Do not have the client (container) reference the implementation
> > that needs to be replaced.  Otherwise you will have to bounce the
> > client (container).
> > 2.  Have the client (container) reference only a base class or an
> > interface.  If you change base classes or interfaces, you would still
> > have to bounce the client (container), but that is not a problem.
> > 3.  Have the implementation class's classloader delegate to the client
> > (container) classloader.  Presumably this means that the client
> > (container) would be using the system classloader.
> > 4.  Make sure that a number of things happen with a hot deploy by a
> > class factory: (a) get the state of the old implementation and add it
> > to the new one, so the client (container) must make the state of the
> > original object available to the factory and (b) the client
> > (container) must drop any old references to the old implementations
> > both to save resources and to use the new version, these objectives
> > are achieved by passing the old implementation into the factor and
> > returning the new one with the same reference as the old one.
> > 5.  If you want to hide things from the client (container) as well,
> > give the client (container) a forwarding proxy to the actual object,
> > giving the factory the control of swapping the object at any time
> > without either the knowledge or agreement of the client (container).
> >
> > Here "container" might be "framework".  Yes?
>
> Taking this whole approach is not specific to Struts, but (if it is
> actually useful) would have general applicability.  It sounds like what
> you're designing is a specialized sort of servlet container that knows
> how to support some limited subset of hot deploy -- plus a design
> paradigm for building applications for it that requires you to replace
> any persistent reference to another object with a lookup in a cache of
> some sort (so that you're not pointing at an object based on an obsolete
> implementation class).  This can have pretty dramatic impacts on code
> readability and performance, but presumably someone will find it
> worthwhile.  I wouldn't personally be willing to live under the
> restrictions such a design paradigm implies when building apps.
>
> But it is still totally out of scope for Struts.
>
> Craig
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 19
>    Date: Mon, 03 May 2004 11:37:43 -0700
>    From: Craig McClanahan <craigmcc@apache.org>
> Subject: Re: Split web.xml into multiple files
>
> Prasad, Kamakshya wrote:
>
> >Hi,
> >
> >I tried xml entity. It worked though I have few doubts.
> >
> >This is part of the xml which have that reference
> >
> ><?xml version="1.0" encoding="ISO-8859-1"?>
> ><!DOCTYPE
> > web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> >2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"
> > [<!ENTITY xmlfrag SYSTEM
> >"file:///F:/struts/web/WEB-INF/servlet.xml" >]>
> ><web-app>
> >  <display-name>Struts POC</display-name>
> >
> >  <!-- Action Servlet Configuration -->
> >  &xmlfrag;
> >
> >
> >
> I presume that "</web-app>" goes here?
>
> >The "&xmlfrag" contains the servlet specification and everything is
> >working fine but when I start the server it always throw this error.
> >
> ><May 3, 2004 4:12:55 PM JST> <Error> <HTTP> <BEA-101306> <Could not
> >resolve entity "null" for the webapp at: "null". Check your DTD
> >reference in the corresponding descriptor (web.xml/weblogic.xml).>
> >
> >What has to be done to get rid of this error?
> >
> >
> >
> Even if this worked, you really don't want to be using absolute paths.
> A more typical scenario would be to put your fragment (say, in a file
> called "action-servlet.xml") in the WEB-INF directory next to web.xml,
> and change the entity declaration to something like:
>
>   <!ENTITY xmlfrag SYSTEM "action-servlet.xml">
>
> This will work *if* your container parses web.xml files in a manner
> where the XML parser knows the absolute URL of the web.xml file itself,
> so that it can resolve relative references.  Tomcat works this way, but
> I don't know if WebLogic does.
>
> >Thanks and Regards,
> >KP
> >
> >
> >
> Craig
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 20
>    Date: Mon, 3 May 2004 13:44:09 -0500
>    From: "Mathew, Manoj" <Mathew.Manoj@principal.com>
> Subject: issue with LazyList
>
> Hi all i tried this code and the control os coming to initMyList() but not
going inside getName().. Inside the jsp i am accessing the element by
friendName[1] and i get a aeeayIndexoutofBondException.
>
> ...Pls help..
>
>
> public class myTestForm extends DynaActionForm {
>
> public void reset(ActionMapping mapping, HttpServletRequest request) {
> List nameList = new ArrayList();
> initMyList(nameList);
>
> set("friendName", nameList);
> }
>
> private void initMyList(List nameList) {
> Factory factory = new Factory() {
> public Object create() {
> return getName();
> }
>
> };
> nameList = ListUtils.lazyList(new ArrayList(), factory);
> }
> public Object getName() {
> String ma = "mynamehere";
> return ma;
> }
> }
>
> thanks in advance
> manoj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 21
>    Date: Mon, 3 May 2004 14:55:38 -0400
>    From: "Michael Marrotte" <marrottem@homes.com>
> Subject: Alpha and Beta testing...
>
> Does anyone know if there's any standard guideline for estimating how
> much alpha and beta testing an application should get?
>
>
>
>
>
>
>
> Michael Marrotte
>
> Software Engineering Manager
>
>
>
> 1958 Commonwealth Lane
>
> Tallahassee, FL 32303
>
> Phone 850.350.7852
>
> Mobile 850.322.6780
>
> Fax 850.575.1729
>
> Email marrottem@homes.com
>
> MSN Messenger mmarrotte@hotmail.com
>
>
>
>
>
>
>
>
>   ----------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> [This message contained attachments]
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 22
>    Date: Mon, 03 May 2004 15:02:11 -0400
>    From: Jason Miller <jason.miller@danteconsulting.com>
> Subject: Re: Remembering form values across requests
>
> What you are describing is the normal behavior of <input type="reset"/>,
> which is the end product of <html:reset/>.
>
> If you want to clear the form, you have two decent choices: a button
> that calls a client side function to run through the form and clear it,
> or server side logic to recognize the button press on submit and return
> an empty form.
>
> Michael Weaver wrote:
>
> > I am new to Struts and have tried to used a DynaActionForm to hold the
users form choices across requests by setting the form to session scope.
This causes a problem with html:reset since I get back the same values on
reset and in effect nothing is reset. I could be committing a big design no
no here. Maybe I should be using a different bean to hold the form choices
across requests but it seems redundant. Any thoughts on if this is a misuse
of forms or not would be appreciated. If someone can point out a repository
of programs demonstrating good Struts usages that would be helpful also.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 23
>    Date: Mon, 3 May 2004 21:10:56 +0200
>    From: Ralf Schneider <ralf@tapfere-schneiderleins.de>
> Subject: Special Characters (german Umlaute)
>
> Hi,
>
> my web application loads german strings from a resource bundle.
Unfortunately,
> the special characters (german Umlaute like ä, ö, ü) are displayed
> incorrectly if they come from the resource bundle. When I write them
directly
> into the HTML code they are displayed correctly.
>
> At the beginning of my JSP file I have this line:
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> And the HTML block is opened with this line:
> <html:html locale="true" xhtml="true">
>
> What do I have to change to get the special characters displayed as they
were
> written in the resource bundle?
>
> Ralf.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 24
>    Date: Mon, 03 May 2004 15:11:34 -0400
>    From: Vic Cekvenich <cekvenich.vic@portalvu.com>
> Subject: Re: Alpha and Beta testing...
>
> There is a formula for projecting a release date based on # of duplicate
> bugs that I can't find now but :
>
> Basically, if you plot the number of duplicate bugs over time you can
> estimate the # of undiscovered bugs, thus you can estimate the release
> candidate date.
> If most of the bugs reported are new, non duplicate, that would mean
> that it's hard to statisiticaly project the total # of unknown bugs thus
> you are in alpha.
>
> Commercial reality is you release a few days after getting final reqs.
> spec. ;-)
>
> .V
>
>
> Michael Marrotte wrote:
> > Does anyone know if there's any standard guideline for estimating how
> > much alpha and beta testing an application should get?
> >
> >
> >
> >
> >
> > Michael Marrotte
> >
> > Software Engineering Manager
> >
> >
> >
> > 1958 Commonwealth Lane
> >
> > Tallahassee, FL 32303
> >
> > Phone 850.350.7852
> >
> > Mobile 850.322.6780
> >
> > Fax 850.575.1729
> >
> > Email marrottem@homes.com <mailto:marrottem@homes.com>
> >
> > MSN Messenger mmarrotte@hotmail.com <mailto:mmarrotte@hotmail.com>
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
>
> --
> Vic Cekvenich
>
> Development Engineer
> Struts Portal / RIA CMS <http://www.baseBeans.com>
> NYC/Silicon Valley
> cell: 917 825 3035
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 25
>    Date: Mon, 03 May 2004 15:14:22 -0400
>    From: Rick Reumann <struttin@reumann.net>
> Subject: Re: [OT] Page Cannot Be Displayed
>
> Joshi, Naveen wrote:
>
> > All,
> >
> > Just wondering if any of you get this "Page Cannot Be Displayed" error
once in a while, in Internet Explorer. Is there a solution to this issue.
> >
> > Thanks
> > Naveen
>
> I'm sorry for not replying sooner to this message. Just getting caught
> up with struts-users messages.
>
> Joshi, this is very serious. You might want to consider upgrading all of
> your RAM to something like 23GB. Also make sure you raise the computer
> so that it is not directly touching the floor (I find suspending the
> computer from wires beneath my desk helps). Also make sure you are using
> your foot to move the mouse when browsing in IE, using your hand could
> cause be the cause of such errors as you are describing.
>
> hth,
>
> --
> Rick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
>      http://groups.yahoo.com/group/struts/
>
> <*> To unsubscribe from this group, send an email to:
>      struts-unsubscribe@yahoogroups.com
>
> <*> Your use of Yahoo! Groups is subject to:
>      http://docs.yahoo.com/info/terms/
>
> ------------------------------------------------------------------------
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message