Re: pb with struts and jstl

2007-05-28 Thread Dave Newton
--- horri khalid <[EMAIL PROTECTED]> wrote:
>  property="customers"
> value=""
> />
> so i want to know where is the problem ?

It's where you nest XML, which isn't allowed.

If you're in a JSP 2+ container you can use straight
JSP EL, if JSP <2 you can the use the html-el tags.

d.



   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



pb with struts and jstl

2007-05-28 Thread horri khalid

Hi

I use  for list of checkbox with  the  customer  ID as
value.
but in the output i have this  

so i want to know where is the problem ?
Any idea is appreciated.


Re: Struts and JSTL

2006-06-22 Thread Per Jørgen Walstrøm
take a look at this thread:
http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0 

-Opprinnelig melding-
Fra: fea jabi [mailto:[EMAIL PROTECTED] 
Sendt: 22. juni 2006 15:15
Til: user@struts.apache.org
Emne: Struts and JSTL 




${Form.map.customers} was working perfect when I was using servlet 2.4 and 
JSTL 1.1.

But now changed to servlet 2.3 and JSTL 1.0. the custs are null. Looks like 
${Form.map.customers} is not getting evaluated right now. How should this 
be?

does it have to be different???


Thanks.

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and JSTL

2006-06-22 Thread fea jabi
requestURI="PrepareAction.do" defaultsort="7" defaultorder="descending" 
pagesize="6">



${Form.map.customers} was working perfect when I was using servlet 2.4 and 
JSTL 1.1.


But now changed to servlet 2.3 and JSTL 1.0. the custs are null. Looks like 
${Form.map.customers} is not getting evaluated right now. How should this 
be?


does it have to be different???


Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2006-01-23 Thread Laurie Harper
Since you're using a DynaValidatorForm you need to specify the property 
slightly differently:




L.

fea jabi wrote:

Thank you for your response. I have set the value in the formbean.

hence, tried this instead




But only half of JSP is getting displayed. Not sure why? any idea why 
this happening?



When tried to debug I see an EL exception being thrown

"Unable to find a value for \"amount\" in object of class 
\"org.apache.struts.validator.DynaValidatorForm\" using operator \".\""


The form-bean does have the form-property amount. Not sure why it can't 
find it.


Thanks.




From: Ed Griebel <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts and JSTL
Date: Mon, 23 Jan 2006 13:17:07 -0500

The problem is that you're putting the 'amount' field into a hidden
field and then trying to use that hidden field as a value, but your
amt bean will actually contain the value of the form field: ""

Try this instead. First, in your action save this amount value to the
request scope:
   request.setAttribute("amount", yourAmountVar);

Then put in your JSP, assuming a JSP 2.0 container:




-ed

On 1/23/06, fea jabi <[EMAIL PROTECTED]> wrote:
> would like to display the value of property amount as $10,00,000. tried
> using the below.
>
> But getting an error/ it doesn't get displayed.
>
> Is this the way to do this. Or is there an easier way to do the same?
>
>
> 
>   > styleClass="invisibleInput" readonly="true" 
tabindex="-1"/>

>   <% System.out.println(amt);%>
>   
> 
>
>
> Thanks.
>
> _
> Is your PC infected? Get a FREE online computer virus scan from 
McAfee(r)

> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"The greatest tyrannies are always perpetrated in the name of the
noblest causes." Thomas Paine
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety" - Benjamin
Franklin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2006-01-23 Thread Rahul Akolkar
On 1/23/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Thank you for your response. I have set the value in the formbean.
>
> hence, tried this instead
> 
> 
> 
>


... value="${Form1.map.amount}" ...

-Rahul


> But only half of JSP is getting displayed. Not sure why? any idea why this
> happening?
>
>
> When tried to debug I see an EL exception being thrown
>
> "Unable to find a value for \"amount\" in object of class
> \"org.apache.struts.validator.DynaValidatorForm\" using operator \".\""
>
> The form-bean does have the form-property amount. Not sure why it can't find
> it.
>
> Thanks.
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2006-01-23 Thread fea jabi

Thank you for your response. I have set the value in the formbean.

hence, tried this instead




But only half of JSP is getting displayed. Not sure why? any idea why this 
happening?



When tried to debug I see an EL exception being thrown

"Unable to find a value for \"amount\" in object of class 
\"org.apache.struts.validator.DynaValidatorForm\" using operator \".\""


The form-bean does have the form-property amount. Not sure why it can't find 
it.


Thanks.




From: Ed Griebel <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts and JSTL
Date: Mon, 23 Jan 2006 13:17:07 -0500

The problem is that you're putting the 'amount' field into a hidden
field and then trying to use that hidden field as a value, but your
amt bean will actually contain the value of the form field: ""

Try this instead. First, in your action save this amount value to the
request scope:
   request.setAttribute("amount", yourAmountVar);

Then put in your JSP, assuming a JSP 2.0 container:




-ed

On 1/23/06, fea jabi <[EMAIL PROTECTED]> wrote:
> would like to display the value of property amount as $10,00,000. tried
> using the below.
>
> But getting an error/ it doesn't get displayed.
>
> Is this the way to do this. Or is there an easier way to do the same?
>
>
> 
>   > styleClass="invisibleInput" readonly="true" 
tabindex="-1"/>

>   <% System.out.println(amt);%>
>   
> 
>
>
> Thanks.
>
> _
> Is your PC infected? Get a FREE online computer virus scan from 
McAfee(r)

> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"The greatest tyrannies are always perpetrated in the name of the
noblest causes." Thomas Paine
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety" - Benjamin
Franklin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2006-01-23 Thread Ed Griebel
The problem is that you're putting the 'amount' field into a hidden
field and then trying to use that hidden field as a value, but your
amt bean will actually contain the value of the form field: ""

Try this instead. First, in your action save this amount value to the
request scope:
   request.setAttribute("amount", yourAmountVar);

Then put in your JSP, assuming a JSP 2.0 container:




-ed

On 1/23/06, fea jabi <[EMAIL PROTECTED]> wrote:
> would like to display the value of property amount as $10,00,000. tried
> using the below.
>
> But getting an error/ it doesn't get displayed.
>
> Is this the way to do this. Or is there an easier way to do the same?
>
>
> 
>styleClass="invisibleInput" readonly="true" tabindex="-1"/>
>   <% System.out.println(amt);%>
>   
> 
>
>
> Thanks.
>
> _
> Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"The greatest tyrannies are always perpetrated in the name of the
noblest causes." Thomas Paine
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety" - Benjamin
Franklin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts and JSTL

2006-01-23 Thread fea jabi
would like to display the value of property amount as $10,00,000. tried 
using the below.


But getting an error/ it doesn't get displayed.

Is this the way to do this. Or is there an easier way to do the same?



 styleClass="invisibleInput" readonly="true" tabindex="-1"/>

 <% System.out.println(amt);%>
 



Thanks.

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2005-12-05 Thread Wendy Smoak
On 12/5/05, fea jabi <[EMAIL PROTECTED]> wrote:
> I am using Servlet engine 2.4. What will be the different advice?
>
> My web.xml looks something like this
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

Does your app need to work in a Servlet 2.2 container?  My Servlet 2.4
web.xml looks like this:

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">

> In the forums I am seeing that it should be different one for JSTL 1.1 to
> work.

For JSTL 1.1 you need (for lack of a better explanation) the URIs with
'jsp' in them, such as:
   <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

Take a look at the Getting Started page for more information:
   
http://jakarta.apache.org/taglibs/doc/standard-doc/standard/GettingStarted.html

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2005-12-05 Thread Rahul Akolkar
On 12/5/05, fea jabi <[EMAIL PROTECTED]> wrote:
> I am using Servlet engine 2.4. What will be the different advice?
>
> My web.xml looks something like this
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> 
> ...
> 
> 
>
> is it right one?
> In the forums I am seeing that it should be different one for JSTL 1.1 to
> work.
>
> Where can I get that web.xml from?
>


http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions

-Rahul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2005-12-05 Thread fea jabi

I am using Servlet engine 2.4. What will be the different advice?

My web.xml looks something like this
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


...



is it right one?
In the forums I am seeing that it should be different one for JSTL 1.1 to 
work.


Where can I get that web.xml from?

Thanks.



From: Wendy Smoak <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: struts and JSTL
Date: Sun, 4 Dec 2005 17:41:17 -0700

On 12/2/05, fea jabi <[EMAIL PROTECTED]> wrote:

> using struts 1.2.7
>
> Used c tags in my jsp and also gave this
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
...
> in web.xml
>   
...
>
> thinking one of the jars in it will have the JSTL stuff. Which ar has 
the

> JSTL stuff in it?
>
> Where can I get the tld's for these.

If you're on Servlet 2.3 (Tomcat 4.x), then you'll find what you need
under the 'contrib' directory of your Struts 1.2.7 distribution.  It
contains "Struts-EL" and includes a JSTL 1.0 implementation.

If you're on Servlet 2.4, then the advice is different.

In neither case do you need to configure the tlds in web.xml.

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2005-12-04 Thread Wendy Smoak
On 12/2/05, fea jabi <[EMAIL PROTECTED]> wrote:

> using struts 1.2.7
>
> Used c tags in my jsp and also gave this
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
...
> in web.xml
>   
...
>
> thinking one of the jars in it will have the JSTL stuff. Which ar has the
> JSTL stuff in it?
>
> Where can I get the tld's for these.

If you're on Servlet 2.3 (Tomcat 4.x), then you'll find what you need
under the 'contrib' directory of your Struts 1.2.7 distribution.  It
contains "Struts-EL" and includes a JSTL 1.0 implementation.

If you're on Servlet 2.4, then the advice is different.

In neither case do you need to configure the tlds in web.xml.

--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts and JSTL

2005-12-04 Thread Laurie Harper

fea jabi wrote:

using struts 1.2.7

Used c tags in my jsp and also gave this

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

in web.xml
 
 http://java.sun.com/jstl/core
 /WEB-INF/lib/c.tld
 

 
 http://java.sun.com/jstl/fmt
 /WEB-INF/lib/fmt.tld
 

 
 http://java.sun.com/jstl/xml
 /WEB-INF/lib/x.tld
 

 
 http://java.sun.com/jstl/sql
 /WEB-INF/lib/sql.tld
  

thinking one of the jars in it will have the JSTL stuff. Which ar has 
the JSTL stuff in it?


Where can I get the tld's for these.

I don't see the above tld's in my proj. I might have to get them. Where 
can I get these from?



The TLDs are bundled with the JSTL implementation. Struts doesn't bundle 
a JSTL implementation, you'll need to download and install it seperately 
 [1]. Whether you want the Standard 1.0 or Standard 1.1 taglib depends 
on your servlet container. Also, depending on your servlet container, 
you probably don't need those entries in web.xml.


L.

[1] http://jakarta.apache.org/taglibs/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts and JSTL

2005-12-02 Thread fea jabi

using struts 1.2.7

Used c tags in my jsp and also gave this

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

in web.xml
 
 http://java.sun.com/jstl/core
 /WEB-INF/lib/c.tld
 

 
 http://java.sun.com/jstl/fmt
 /WEB-INF/lib/fmt.tld
 

 
 http://java.sun.com/jstl/xml
 /WEB-INF/lib/x.tld
 

 
 http://java.sun.com/jstl/sql
 /WEB-INF/lib/sql.tld
  

thinking one of the jars in it will have the JSTL stuff. Which ar has the 
JSTL stuff in it?


Where can I get the tld's for these.

I don't see the above tld's in my proj. I might have to get them. Where can 
I get these from?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and JSTL ???

2004-09-04 Thread Bill Siggelkow
Add the following context-param to your web.xml -- the element should go 
before any servlet declarations ... ApplicationResources is the name of 
your message resoures.


 javax.servlet.jsp.jstl.fmt.localizationContext
 ApplicationResources

Eric Chow wrote:
Hello,
How can JSTL  uses Struts' resources and locale setting ???
Eric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Struts and JSTL ???

2004-09-04 Thread Eric Chow
Hello,

How can JSTL  uses Struts' resources and locale setting ???


Eric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]