RE: EL Tag Libraries

2004-03-24 Thread Pady Srinivasan

Why not use c:out value=${uniqueKey} / instead of
c:out value=${myForm.value(${uniqueKey})} / ???


This works for me:

c:set var=testVar value=Hello  /
c:set var=testVar1 value=World /
c:set var=hello
c:out value=${testVar} /-c:out value=${testVar1} /
/c:set
c:out value=${hello} /



Thanks
 
-- pady
[EMAIL PROTECTED]
 

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 24, 2004 7:11 AM
To: [EMAIL PROTECTED]
Subject: EL Tag Libraries

Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which takes 
a string value, its working fine when i render the data in a text field.

E.g.

c:set var=uniqueKey
c:out value=${CustomerTO.id}/-c:out
value=${CustomerTO.orderNo}/
/c:set


html-el:text name=myForm property=value(${uniqueKey})/



Now i want to render the data as a label on screen i've tried using the 
C:out/ tag lib but i cant get it to work

e.g.

c:out value=${myForm.value(${uniqueKey})}/

and c:out value=${myForm.value(uniqueKey)}/


Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the Heroix e-mail Security System
__

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



RE: EL Tag Libraries

2004-03-24 Thread Pat Quinn
I want to pass uniqueKey as a parameter to the getValue method on my action 
form, i dont want to render the uniqueKey value i want to render the return 
value from the getValue(String) method call


From: Pady Srinivasan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: EL Tag Libraries
Date: Wed, 24 Mar 2004 08:57:41 -0500
Why not use c:out value=${uniqueKey} / instead of
c:out value=${myForm.value(${uniqueKey})} / ???
This works for me:

c:set var=testVar value=Hello  /
c:set var=testVar1 value=World /
c:set var=hello
c:out value=${testVar} /-c:out value=${testVar1} /
/c:set
c:out value=${hello} /


Thanks

-- pady
[EMAIL PROTECTED]
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:11 AM
To: [EMAIL PROTECTED]
Subject: EL Tag Libraries
Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which takes
a string value, its working fine when i render the data in a text field.
E.g.

c:set var=uniqueKey
c:out value=${CustomerTO.id}/-c:out
value=${CustomerTO.orderNo}/
/c:set
html-el:text name=myForm property=value(${uniqueKey})/



Now i want to render the data as a label on screen i've tried using the
C:out/ tag lib but i cant get it to work
e.g.

c:out value=${myForm.value(${uniqueKey})}/

and c:out value=${myForm.value(uniqueKey)}/

Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
__
This email has been scanned by the Heroix e-mail Security System
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Re: EL Tag Libraries

2004-03-24 Thread Shaul Siboni
It is not working because JSTL think that you are trying to call a 
function.   To make it work you will need to define this function in a TLD 
file and use the namespace to call it.

Take a look at TOMCAT\webapps\jsp-examples\jsp2\el\functions.jsp

HTH
--Shaul
Pat Quinn wrote:

I want to pass uniqueKey as a parameter to the getValue method on my 
action form, i dont want to render the uniqueKey value i want to render 
the return value from the getValue(String) method call


From: Pady Srinivasan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: EL Tag Libraries
Date: Wed, 24 Mar 2004 08:57:41 -0500
Why not use c:out value=${uniqueKey} / instead of
c:out value=${myForm.value(${uniqueKey})} / ???
This works for me:

c:set var=testVar value=Hello  /
c:set var=testVar1 value=World /
c:set var=hello
c:out value=${testVar} /-c:out value=${testVar1} /
/c:set
c:out value=${hello} /


Thanks

-- pady
[EMAIL PROTECTED]
-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:11 AM
To: [EMAIL PROTECTED]
Subject: EL Tag Libraries
Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which 
takes
a string value, its working fine when i render the data in a text field.

E.g.

c:set var=uniqueKey
c:out value=${CustomerTO.id}/-c:out
value=${CustomerTO.orderNo}/
/c:set
html-el:text name=myForm property=value(${uniqueKey})/



Now i want to render the data as a label on screen i've tried using the
C:out/ tag lib but i cant get it to work
e.g.

c:out value=${myForm.value(${uniqueKey})}/

and c:out value=${myForm.value(uniqueKey)}/

Any ideas how i might do this?

_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__
__
This email has been scanned by the Heroix e-mail Security System
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


***
This Mail Was Scanned By Mail-seCure System in  Matrix 
Herzeliya
***




***
This Mail Was Scanned By Mail-seCure System in 
 Matrix Herzeliya
***

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


Re: EL tag libraries and MessageResources

2003-12-29 Thread Wolfgang Woger
That problem was discussed in the nbuser group a couple of weeks ago,
in conjunction with code completion.
Try to put
jstl.jar
struts-el.jar
struts.jar
servlet.jar
into NetBeanXX/lib/ext
and
standard.jarinto NetBeansXX/lib
Maybe you can put everything under /lib  or .../lib/ext.
Wolfgang



Jani Heinonen wrote:

Hi,

I searched the mailing list archives and the bugzilla database, but couldn't
find an answer, so please excuse me if this is a FAQ.
I am unable to compile any JSP that uses any of the html-el tags under the
embedded Tomcat in Netbeans 3.5.1. The stacktrace follows:
bean-cookie.jsp [-1:-1] java.lang.ExceptionInInitializerError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:141)
   at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.class$(ELHtmlTagBeanInfo.j
ava:88)
   at
org.apache.strutsel.taglib.html.ELHtmlTagBeanInfo.getPropertyDescriptors(ELH
tmlTagBeanInfo.java:88)
   at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
   at java.beans.Introspector.getBeanInfo(Introspector.java:372)
   at java.beans.Introspector.getBeanInfo(Introspector.java:144)
   at
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
   at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
)
   at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A
nalyzerParseEventListener.java:154)
   at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin
(AnalyzerParseEventListener.java:962)
   at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:221)
   at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:216)
   at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
   at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
   at
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI
mpl.java:126)
   at
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j
ava:93)
   at
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData
Object.java:297)
   at
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi
lerSupport.java:62)
   at
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
n.java:361)
   at
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
n.java:329)
   at
org.openide.actions.AbstractCompileAction.compileNodes2(AbstractCompileActio
n.java:132)
   at
org.openide.actions.AbstractCompileAction.performAction(AbstractCompileActio
n.java:45)
   at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeActio
n.java:431)
   at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97)
   at org.openide.util.Task.run(Task.java:136)
   at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
   at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)
Caused by: java.lang.NullPointerException
   at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
   at org.apache.struts.taglib.html.HtmlTag.clinit(HtmlTag.java:96)
   ... 31 more
Errors compiling bean-cookie.
What could be wrong? I get this with my own application, as well as the
strutsel-exercise-taglib webapp where this example is from. We're also
having the same problem deploying the application under WLS 7.0 and 8.1.
###
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/
 



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