any tutorial to develop EL-compliant taglib?

2003-05-27 Thread marba
i'd like to develop my fisrt jstl-compliant taglib using EL
is there any tutorial or documentation (apart of jstl API)?
thank you

---
Ing. Marco Baiguera
Web Application Designer

T.C.TELECENTRAL s.r.l.
Via Fura, 10
25122 Brescia - Italy
Tel  +39 030 3510711
Int + 39 030 3510816
NB. Nel rispetto della legge sulla privacy รจ fatto  divieto di 
includere il presente indirizzo email in  CC, Forwards e Mailing list 
senza previa autorizzazione. In caso di violazione della suddetta 
richiesta sarete perseguiti legalmente.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003



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



[Q]Unable to find a value for xx in object of class xxxx using operator .

2003-05-27 Thread Erica Leung
Hi there,

I am using c:out to render values on a jsp.
c:out value=${local_object.url}/ works fine,

but when using
c:out value=${jar_object.url}/ I get the ServletException:
An error occurred while evaluating custom action attribute value with
value ${jar_object.url}: Unable to find a value for url in object of
class package.jar_object using operator .

I can get the value when using scriptlet on the same jsp
%
String url = jar_object.getUrl();
%

Does anyone know what I miss in the jar_object to make it avalaible for a
EL?

Thanks in advance,
Erica



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



Unable to make choose to work. need some help.

2003-05-27 Thread Aditya Akella
Hi All,

I'm a newbi to JSTL. I'm trying to compare a value while iterating through.
I get a value from the request object, while iterating I want to compare the
values with the value from the request object and if those two values are
equal I want to display the value.

something like this:

for(int i=0; i vec.size(); i++)
{
  Object obj = (Object)vec.elementAt(i);
  String name = obj.getFirstName()+ +obj.getLastName();
  if(request.getParameter(reqName).equals(name))
  {
   DISPLAY THE FULL NAME
  }
}

I tried to use the choose while otherWise in the c:forEach but
couldn't make it work.

Any code snippet would be very helpful.

Thanks in advance,
Aditya.



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



Custom tags outputting a JSTL tag

2003-05-27 Thread Danilo Luiz Rheinheimer
Hello,

  I have a custom tag, and I want to output a JSTL tag on it.
  But this new tag is not processed.

  Like this :

  public int doStartTag() throws JspException {
try {
  JspWriter out = pageContext.getOut();
  out.println(c:out value=\y\/);
}
catch (IOException ex) {
}
return EVAL_BODY_INCLUDE;
  }
  
  Any help ?
  
-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]



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



Re: Custom tags outputting a JSTL tag

2003-05-27 Thread Shawn Bayern
On Wed, 28 May 2003, Danilo Luiz Rheinheimer wrote:

   I have a custom tag, and I want to output a JSTL tag on it.
   But this new tag is not processed.
 
   Like this :
 
   public int doStartTag() throws JspException {
 try {
   JspWriter out = pageContext.getOut();
   out.println(c:out value=\y\/);
 }
 catch (IOException ex) {
 }
 return EVAL_BODY_INCLUDE;
   }
   
   Any help ?

This can't easily be done because the JSP container won't interpret your
output as tags.  You could walk through the various steps that the JSP
container performs to invoke c:out -- e.g., instantiate a handler, call
the accessors, call doStartTag(), and so forth -- but that's
extraordinarily tedious.

An easier solution might be to use the RequestDispatcher to include a page
that contains the tag you want to include, parameterized by request
attributes.  This leads to a better design anyway, where output stays the
responsibility of JSP pages.

-- 
Shawn Bayern
JSTL in Action   http://www.manning.com/bayern


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