Re: How to maintain the selection items in the Select using the jakarta.apache.org input tag library

2003-11-04 Thread Martin Cooper
On Tue, 4 Nov 2003, Kimberly Clary wrote:

>
>
>
>
> I want to have the items in my Select list showing in a certain order.
> I've looked over both the html and jsp examples that were provided when I
> downloaded the tag lib but they only contain the basics.
>
> I enter the following in my jsp -
>
>   
> BACCode:(none or allreturns
> all)
>   
>   
> <%
> java.util.HashMap b = new java.util.HashMap();
> b.put("id", "bac");
> b.put("multiple", null);
> b.put("size", "6");
>
> java.util.Hashtable bo = new java.util.Hashtable();
> bo.put("CSP", "1");
> bo.put("FAP", "2");
> bo.put("FRU", "3");
> bo.put("OPT", "4");
> bo.put("PPN", "5");
> bo.put("Paper", "6");
> %>
> 
>   
>
> but the data doesn't display in this order.
> It's showing up in the order of -
>
> FAP
> OPT
> PPN
> Paper
> CSP
> FRU
>
> I think the code should be using the getKey method for building this
> selection list if we want to maintain the order.

HashMaps and Hashtables are unordered collections. The order in which you
add elements to them does not make any difference at all. If you need to
preserve that order, you may want to take a look at the SequencedHashMap
class in the Jakarta Commons Collections package.

--
Martin Cooper


> Can someone help me?
> Thanks - Kim
>
> ---
> Kim Clary
> Global AMS Delivery
> Internet Design and Development
> Tie: 444-2396  Ph:919-254-2396
>
> "Life gets boring if you stay within the limits"
>
>
> -
> 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]



How to maintain the selection items in the Select using the jakarta.apache.org input tag library

2003-11-04 Thread Kimberly Clary




I want to have the items in my Select list showing in a certain order.
I've looked over both the html and jsp examples that were provided when I
downloaded the tag lib but they only contain the basics.

I enter the following in my jsp -

  
BACCode:(none or allreturns
all)
  
  
<%
java.util.HashMap b = new java.util.HashMap();
b.put("id", "bac");
b.put("multiple", null);
b.put("size", "6");

java.util.Hashtable bo = new java.util.Hashtable();
bo.put("CSP", "1");
bo.put("FAP", "2");
bo.put("FRU", "3");
bo.put("OPT", "4");
bo.put("PPN", "5");
bo.put("Paper", "6");
%>

  

but the data doesn't display in this order.
It's showing up in the order of -

FAP
OPT
PPN
Paper
CSP
FRU

I think the code should be using the getKey method for building this
selection list if we want to maintain the order.
Can someone help me?
Thanks - Kim

---
Kim Clary
Global AMS Delivery
Internet Design and Development
Tie: 444-2396  Ph:919-254-2396

"Life gets boring if you stay within the limits"


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



Re: How to use c:url with c:import?

2003-11-04 Thread K.C. Baltz
Tried that.  It just looks for my files in the ROOT context, rather than 
the context specified in the URL.  I also tried context="", but that 
produced an exception.

K.C.

Hassan Schroeder wrote:

Hassan Schroeder jumped the gun with:

Uh, "problem"? the above works fine plugged into a page on my system.


Sorry, missed the "context relative" part before :-)




  ^^^
Add that and give it a whirl...


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


Re: How to use c:url with c:import?

2003-11-04 Thread Hassan Schroeder
Hassan Schroeder jumped the gun with:

Uh, "problem"? the above works fine plugged into a page on my system.
Sorry, missed the "context relative" part before :-)




  ^^^
Add that and give it a whirl...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.



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


Re: How to use c:url with c:import?

2003-11-04 Thread Brice Ruth
The session-id information that c:import removes, is not the web module 
bit that gets prefixed by c:url, or your extension of html:rewrite. 
Incidentally, html:rewrite is meant to allow module-relative referencing 
of resources (page="/resource-name") ... I'm guessing this is a bit 
different than c:url's advertised purpose. Have you considered extending 
c:url instead of html:rewrite? If you don't want the module-prefix 
added, you could also extend the behaviour of  which wouldn't prepend the module-name, but 
would still be able to do the custom stuff you're apparently needing to do.

Incidentally, if all you need to do is append a few parameters, setting 
up a hash map using jsp:useBean and passing that map to a plain-vanilla 
html:rewrite, might do the trick for you.

Brice

K.C. Baltz wrote:

I've left out a bit of detail in the hopes of making this simpler :).  
I'm not actually using , but rather a custom tag that extends 
the Struts  tag.  My custom tag modifies the passed in 
URL, so I can't skip that step.  I could probably modify my custom tag 
to not prepend the /context, but it seems like this is something that 
should work.  In the jstl-1.0 spec, it says the following:

"In such a situation,  may be used to build a URL with query 
string parameters.  will remove any session id information 
if necessary (see Section 7.5)."  -From section 7.4

I'll try filing a bug and see what the jakarta-taglib developers think.
For now, I'm prepending the "http://server:port"; to make it an 
absolute URL, but that's probably slower and certainly less elegant.
K.C.

P.S. Speaking of elegant, perhaps my best bet is to extend  
with a custom tag

Kris Schneider wrote:

You're right about why it's failing (prepending of app context). This 
kind of
thing should work:





You could then also use textURL with :

">...

Quoting "K.C. Baltz" <[EMAIL PROTECTED]>:

 

For various reasons, I am generating a URL for a context relative 
resource using  and storing the result in a variable.  Then 
I'm using that value in a  in an attempt to include the 
content of the resource in the page.  Example:






I'm pretty sure the problem is that  generates a url with a 
leading slash followed by the context name, when  expects 
URLs that start with a slash to be relative to the current context.  
The spec seems to indicate  can handle URLs generated with 
, but I don't see how.

Help?

K.C.
  


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: How to use c:url with c:import?

2003-11-04 Thread K.C. Baltz
I've left out a bit of detail in the hopes of making this simpler :).  
I'm not actually using , but rather a custom tag that extends the 
Struts  tag.  My custom tag modifies the passed in URL, so 
I can't skip that step.  I could probably modify my custom tag to not 
prepend the /context, but it seems like this is something that should 
work.  In the jstl-1.0 spec, it says the following:

"In such a situation,  may be used to build a URL with query 
string parameters.  will remove any session id information if 
necessary (see Section 7.5)."  -From section 7.4

I'll try filing a bug and see what the jakarta-taglib developers think. 

For now, I'm prepending the "http://server:port"; to make it an absolute 
URL, but that's probably slower and certainly less elegant. 

K.C.

P.S. Speaking of elegant, perhaps my best bet is to extend  
with a custom tag

Kris Schneider wrote:

You're right about why it's failing (prepending of app context). This kind of
thing should work:




You could then also use textURL with :

">...

Quoting "K.C. Baltz" <[EMAIL PROTECTED]>:

 

For various reasons, I am generating a URL for a context relative 
resource using  and storing the result in a variable.  Then I'm 
using that value in a  in an attempt to include the content of 
the resource in the page.  Example:






I'm pretty sure the problem is that  generates a url with a 
leading slash followed by the context name, when  expects URLs 
that start with a slash to be relative to the current context.  The spec 
seems to indicate  can handle URLs generated with , but 
I don't see how.

Help?

K.C.
   

 



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


Re: How to use c:url with c:import?

2003-11-04 Thread Kris Schneider
You're right about why it's failing (prepending of app context). This kind of
thing should work:





You could then also use textURL with :

">...

Quoting "K.C. Baltz" <[EMAIL PROTECTED]>:

> For various reasons, I am generating a URL for a context relative 
> resource using  and storing the result in a variable.  Then I'm 
> using that value in a  in an attempt to include the content of 
> the resource in the page.  Example:
> 
> 
> 
> 
> 
> 
> 
> I'm pretty sure the problem is that  generates a url with a 
> leading slash followed by the context name, when  expects URLs 
> that start with a slash to be relative to the current context.  The spec 
> seems to indicate  can handle URLs generated with , but 
> I don't see how.
> 
> Help?
> 
> K.C.

-- 
Kris Schneider 
D.O.Tech   

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



Re: How to use c:url with c:import?

2003-11-04 Thread Hassan Schroeder
K.C. Baltz wrote:

For various reasons, I am generating a URL for a context relative 
resource using  and storing the result in a variable.  Then I'm 
using that value in a  in an attempt to include the content of 
the resource in the page.  Example:

I'm pretty sure the problem is 
Uh, "problem"? the above works fine plugged into a page on my system.

Does import work if you specify `url="/text.html"` explicitly?

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.



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


Re: How to use c:url with c:import?

2003-11-04 Thread Brice Ruth
You might try appending an "http://" to the beginning of 
textURL and see if c:import is happier with that ...

K.C. Baltz wrote:

For various reasons, I am generating a URL for a context relative 
resource using  and storing the result in a variable.  Then I'm 
using that value in a  in an attempt to include the content 
of the resource in the page.  Example:






I'm pretty sure the problem is that  generates a url with a 
leading slash followed by the context name, when  expects 
URLs that start with a slash to be relative to the current context.  
The spec seems to indicate  can handle URLs generated with 
, but I don't see how.

Help?

K.C.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


How to use c:url with c:import?

2003-11-04 Thread K.C. Baltz
For various reasons, I am generating a URL for a context relative 
resource using  and storing the result in a variable.  Then I'm 
using that value in a  in an attempt to include the content of 
the resource in the page.  Example:






I'm pretty sure the problem is that  generates a url with a 
leading slash followed by the context name, when  expects URLs 
that start with a slash to be relative to the current context.  The spec 
seems to indicate  can handle URLs generated with , but 
I don't see how.

Help?

K.C.



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


Re: Going nuts...

2003-11-04 Thread Martin Cooper
Well, for one thing, it looks like you've got your base classes the wrong
way around. You have the body-less tag extending BodyTagSupport, and the
body-ed tag extending TagSupport.

For another, your TLD has values for  such as 'no' and 'tue'.

I don't know if either of those is the cause of your problem, but they
certainly won't help. ;-)

--
Martin Cooper



On Tue, 4 Nov 2003, Moritz Bayer wrote:

> hello list,
>
> I really donm't know why I always have to get these strange messages, but once 
> again, I have an Exception I really don't understand. This is killing my time and my 
> motivation. Hope someone can help me out of this situation!
> I want to nest a tag within another tag, and my jsp-code looks like this:
>
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
>
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>
> -
> The tags are defined as followed:
>
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
> "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>
> 
> 
>
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>
>  
>  spalte
>  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
>
> 
>  setwherespalte
>  cms.tags.query.SetWherespalte
>  JSP
>  
>  
>
>
> 
> ... anf my java code looks like this:
>
>
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>
>
> public class Spalte extends BodyTagSupport{
>
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>
>   public void setWert(String wert){
> this.wert = wert;
>   }
>
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>
>   public void setName(String name){
> this.name = name;
>   }
>
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent = (SetWherespalte)findAncestorWithClass(this, 
> SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>
>
>
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>
> public class SetWherespalte extends TagSupport{
>
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
>
>
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
> this.getMainfields();
> this.getSubfields();
>   }
>
> private void setTablenames(){ }
>
> private void getMainfields(){ }
>
> private void getSubfields(){}
> }
>
>
> ---
> And here comes the Exception, that drives me nuts...
>
>
> HTTP Status 500 -
>
>   _
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it from 
> fulfilling this request.
>
> exception
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
>   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> 

RE: unable to find value

2003-11-04 Thread Morrow, Steve D.
Yeah, I'm familiar with the map notation. Unfortunately, this is a List. All
the other values for this object are printing fine, just not the 'id'. I've
chalked this one up as a loss and am simply using another method (getID(),
as opposed to getId())to get the value.

The sunspots must still be in full effect. LOL.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 04, 2003 11:37 AM
> To: Tag Libraries Users List
> Cc: 'Tag Libraries Users List'
> Subject: RE:  unable to find value
> 
> 
> 
> 
> 
> 
> 
> Hey Steve-
> If you didn't figure it out here's another suggestion.  If 
> you are using a Map you might need to use the 
> name="myBean.value" notation.  It's a little different than 
> using List in iteration.
> 
> 
> Savan Thongvanh
> Berkley Technology Services
> 515.278.7725
> 
> 
>   
>   
>  
>   "Morrow, Steve  
>   
>  
>   D."  To:   'Tag 
> Libraries Users List' <[EMAIL PROTECTED]>   
>  
>   <[EMAIL PROTECTED]cc:
>   
>  
>   om>  Subject:  RE: 
>  unable to find value  
>   
>   
>   
>  
>   11/03/2003 04:43
>   
>  
>   PM  
>   
>  
>   Please respond to   
>   
>  
>   "Tag Libraries  
>   
>  
>   Users List" 
>   
>  
>   
>   
>  
>   
>   
>  
> 
> 
> 
> 
> Yep - I know it works - I've done it before in other apps. 
> Just not here. :o(
> 
> Hopefully the sunspots will be gone by tomorrow...
> 
> > -Original Message-
> > From: Kris Schneider [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 03, 2003 4:31 PM
> > To: Tag Libraries Users List
> > Subject: Re:  unable to find value
> >
> >
> > I just hacked up a small example with JDK 1.4.2, Tomcat 4.1.24, and 
> > Standard 1.0.4 that works fine...
> >
> > Customer.java:
> > --
> >
> > package com.dotech;
> >
> > public class Customer {
> >
> >  private Integer id;
> >  private String name;
> >
> >  public Customer(Integer id, String name) {
> >  super();
> >  this.id = id;
> >  this.name = name;
> >  }
> >
> >  public Integer getId() {
> >  return this.id;
> >  }
> >
> >  public String getName() {
> >  return this.name;
> >  }
> > }
> >
> > customer.jsp:
> > -
> >
> > <%@ page contentType="text/plain" %>
> > <%@ page import="com.dotech.Customer" %>
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> >
> > <%
> > pageContext.setAttribute("customer",
> >   new Customer(new Integer(42), 
> "Foo Bar")); 
> > %>
> >
> > Id:   
> > Name: 
> >
> > Id: 
> >
> > Gives:
> >
> > Id:   42
> > Name: Foo Bar
> >
> > Id: 42
> >
> > Morrow, Steve D. wrote:
> >
> > > 
> > >
> > > ...gives me...
> > >
> > > "Cannot find a method to read property 'id' in a bean of type 
> > > 'ebus.common.Customer'"
> > >
> > > ...mind you, customer.getId() works just fine. I think solar 
> > > flares/sunspots is as good an explanation as any
> > >
> > > I've already "cleaned house" three times today. Gack.
> > >
> > >
> > >>-Original Message-
> > >>From: Kris Schneider [mailto:[EMAIL PROTECTED]
> > >>Sent: Monday, November 03, 2003 3:14 PM
> > >>To: Tag Libraries Users List
> > >>Subject: RE:  unable to find value
> > >>
> > >>
> > >>Okay, so you've heard about all the solar flare activity, 
> right? I'm 
> > >>sure once that clears up it'll work just fine... Uh huh. What 
> > >>happens with:
> > >>
> > >>
> > >>
> > >>You might have to do this b

RE: unable to find value

2003-11-04 Thread SThongvanh





Hey Steve-
If you didn't figure it out here's another suggestion.  If you are using a
Map you might need to use the name="myBean.value" notation.  It's a little
different than using List in iteration.


Savan Thongvanh
Berkley Technology Services
515.278.7725


   
  
  "Morrow, Steve   
  
  D."  To:   'Tag Libraries Users List' 
<[EMAIL PROTECTED]>
  <[EMAIL PROTECTED]cc:
   
  om>  Subject:  RE:  unable to find 
value
   
  
  11/03/2003 04:43 
  
  PM   
  
  Please respond to
  
  "Tag Libraries   
  
  Users List"  
  
   
  
   
  




Yep - I know it works - I've done it before in other apps. Just not here.
:o(

Hopefully the sunspots will be gone by tomorrow...

> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2003 4:31 PM
> To: Tag Libraries Users List
> Subject: Re:  unable to find value
>
>
> I just hacked up a small example with JDK 1.4.2, Tomcat 4.1.24, and
> Standard 1.0.4 that works fine...
>
> Customer.java:
> --
>
> package com.dotech;
>
> public class Customer {
>
>  private Integer id;
>  private String name;
>
>  public Customer(Integer id, String name) {
>  super();
>  this.id = id;
>  this.name = name;
>  }
>
>  public Integer getId() {
>  return this.id;
>  }
>
>  public String getName() {
>  return this.name;
>  }
> }
>
> customer.jsp:
> -
>
> <%@ page contentType="text/plain" %>
> <%@ page import="com.dotech.Customer" %>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
>
> <%
> pageContext.setAttribute("customer",
>   new Customer(new Integer(42), "Foo
> Bar")); %>
>
> Id:   
> Name: 
>
> Id: 
>
> Gives:
>
> Id:   42
> Name: Foo Bar
>
> Id: 42
>
> Morrow, Steve D. wrote:
>
> > 
> >
> > ...gives me...
> >
> > "Cannot find a method to read property 'id' in a bean of type
> > 'ebus.common.Customer'"
> >
> > ...mind you, customer.getId() works just fine. I think solar
> > flares/sunspots is as good an explanation as any
> >
> > I've already "cleaned house" three times today. Gack.
> >
> >
> >>-Original Message-
> >>From: Kris Schneider [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, November 03, 2003 3:14 PM
> >>To: Tag Libraries Users List
> >>Subject: RE:  unable to find value
> >>
> >>
> >>Okay, so you've heard about all the solar flare activity,
> >>right? I'm sure once that clears up it'll work just fine...
> >>Uh huh. What happens with:
> >>
> >>
> >>
> >>You might have to do this before using it:
> >>
> >>
> >>
> >>I dunno, it's kooky. Make sure you've got JSTL installed
> >>correcty, stop your app server and blow away the app's "work
> >>area" (complied JSP files, etc), then restart. Yup,
> >>shotgunning at this point...
> >>
> >>Quoting "Morrow, Steve D." <[EMAIL PROTECTED]>:
> >>
> >>
> >>>Oh yeah... <%= customer.getId() %> works, of course.
> >>>
> >>>
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 03, 2003 2:42 PM
> To: Tag Libraries Users List
> Subject: Re:  unable to find value
> 
> 
> You can use java.beans.Introspector.decapitalize to tell you what
> the property name should look like. In this case,
> Introspector.decapitalize("Id") results in "id", so you
> should be fine. I'm sure that's helpful ;-). Are you positive
> that your scoped 

AW: Going nuts...

2003-11-04 Thread Moritz Bayer
I have been too sloppy pasting the code into the mail. The dot is a leftover from 
ersaing parts of the packagename. 
Unfortunetly...
  

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 4. November 2003 15:05
An: [EMAIL PROTECTED]
Betreff: RE: Going nuts...


i noticed this in your TLD:

>  .tags.query.Spalte

should this not be tags.query.Spalte?  make sure the package is correct and that the 
Spalte class exists in an accessible location.

--james

> -Original Message-
> From: Moritz Bayer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2003 3:06 AM
> To: Tag Libraries Users List
> Subject: Going nuts...
> 
> 
> hello list,
>  
> I really donm't know why I always have to get these strange
> messages, but once again, I have an Exception I really don't 
> understand. This is killing my time and my motivation. Hope 
> someone can help me out of this situation! I want to nest a 
> tag within another tag, and my jsp-code looks like this:
>  
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
> 
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wherespalte="calc" 
> wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>  
> --
> --
> -
> The tags are defined as followed:
>  
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
> 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>  
> 
> 
>  
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>   
>  
>  spalte  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
> 
> 
>  setwherespalte
> cms.tags.query.SetWherespalte
>  JSP
>  
>  
>  
>  
> --
> --
> 
> ... anf my java code looks like this:
>  
>  
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>  
> 
> public class Spalte extends BodyTagSupport{
>  
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>  
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>  
>   public void setWert(String wert){
> this.wert = wert;
>   }
>  
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>  
>   public void setName(String name){
> this.name = name;
>   }
> 
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent =
> (SetWherespalte)findAncestorWithClass(this, SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>  
>  
> 
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>  
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>  
> public class SetWherespalte extends TagSupport{
>  
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
> 
>  
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
> this.getMainfields();
> this.getSubfields();
>   }
>  
> private void setTablenames(){ }
>  
> private void getMainfields(){ }
>  
> private void getSubfields(){}
> }
>  
>  
> --
> -
> And here comes the Exception, that drives me nuts...
>  
> 
> HTTP Status 500 -
> 
>   _
> 
> 
> type Exception report
> 
> message
> 
> description The server encountered an internal error () that
> prevented it from fulfilling this request.
> 
> exception
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:254)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>   at 
> org.apache.jasper.servlet.JspServlet.service(Js

RE: Going nuts...

2003-11-04 Thread JFarley
i noticed this in your TLD:

>  .tags.query.Spalte

should this not be tags.query.Spalte?  make sure the package is correct and
that the Spalte class exists in an accessible location.

--james

> -Original Message-
> From: Moritz Bayer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 04, 2003 3:06 AM
> To: Tag Libraries Users List
> Subject: Going nuts...
> 
> 
> hello list, 
>  
> I really donm't know why I always have to get these strange 
> messages, but once again, I have an Exception I really don't 
> understand. This is killing my time and my motivation. Hope 
> someone can help me out of this situation! I want to nest a 
> tag within another tag, and my jsp-code looks like this:
>  
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
> 
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wherespalte="calc" 
> wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>  
> --
> --
> -
> The tags are defined as followed:
>  
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 
> 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>  
> 
> 
>  
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>   
>  
>  spalte
>  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
> 
> 
>  setwherespalte  
> cms.tags.query.SetWherespalte
>  JSP
>  
>  
>  
>  
> --
> --
> 
> ... anf my java code looks like this:
>  
>  
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>  
> 
> public class Spalte extends BodyTagSupport{
>  
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>  
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>  
>   public void setWert(String wert){
> this.wert = wert;
>   }
>  
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>  
>   public void setName(String name){
> this.name = name;
>   }
> 
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent = 
> (SetWherespalte)findAncestorWithClass(this, SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>  
>  
> 
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>  
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>  
> public class SetWherespalte extends TagSupport{
>  
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
> 
>  
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
> this.getMainfields();
> this.getSubfields();
>   }
>  
> private void setTablenames(){ }
>  
> private void getMainfields(){ }
>  
> private void getSubfields(){}
> }
>  
>  
> --
> -
> And here comes the Exception, that drives me nuts...
>  
> 
> HTTP Status 500 - 
> 
>   _  
> 
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
> exception 
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:254)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain

AW: Going nuts...

2003-11-04 Thread Moritz Bayer
Hi Shrihas, 
Thanks for your answer, but it didn't change anything. Still same Exception, no matter 
how I write it.

So long,
Moritz



-Ursprüngliche Nachricht-
Von: Shah, Shrihas (OFT) [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 4. November 2003 14:26
An: Tag Libraries Users List
Betreff: RE: Going nuts...


Hi :

Try this. It may work
<% String bl =request.getParameter("blaetterid");
   String dr = request.getParameter("dropdownfilterwert");
%>

  <%-- if 
'<%=bl%>' does not work then try "<%=bl%>" --%>   <%-- if '<%=dr%>' does not work 
then try "<%=dr%>" --%> 

Good luck.

Shrihas

Shrihas Shah
NYS Office for Technology
[EMAIL PROTECTED]
Phone (518) 408-2382
Fax (518) 473-3389
(US Postal Service Regular Mail Address)
State Capitol ESP, PO Box 2062
Albany, NY 12220-0062
(Parcel Post/Overnight and Interagency Mail Address)
Empire State Plaza
Swan St., Core 4, 1st Floor
Albany, NY 12223


-Original Message-
From: Moritz Bayer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 3:06 AM
To: Tag Libraries Users List
Subject: Going nuts...

hello list, 
 
I really donm't know why I always have to get these strange messages, but once again, 
I have an Exception I really don't understand. This is killing my time and my 
motivation. Hope someone can help me out of this situation! I want to nest a tag 
within another tag, and my jsp-code looks like this:
 
...
<%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>


 
 

 
-
The tags are defined as followed:
 

http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
 


 
  1.1
  1.2
  simple
  /WEB-INF/classes/tlds/test.tld
  
  
 
 spalte
 .tags.query.Spalte
 JSP
 
 
name
true
no
 
 
wherespalte
true
true
 
 
wert
true
true
 
 
  tabelle
true
tue
 



 setwherespalte  cms.tags.query.SetWherespalte
 JSP
 
 
 
 

... anf my java code looks like this:
 
 
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.*;
import java.io.*;
 

public class Spalte extends BodyTagSupport{
 
  private String name = null;
  private String wherespalte = null;
  private String wert = null;
  private String tabelle = null;
 
  public void setTabelle(String tab){
this.tabelle = tab;
  }
 
  public void setWert(String wert){
this.wert = wert;
  }
 
  public void setWherespalte(String spalte){
this.wherespalte = spalte;
  }
 
  public void setName(String name){
this.name = name;
  }

public int doStartTag()throws JspTagException{
  SetWherespalte parent = (SetWherespalte)findAncestorWithClass(this, 
SetWherespalte.class);
  if(parent == null){
throw new JspTagException ("nesting error");
  }else{
if(name.equalsIgnoreCase("id")){
// do something
 }
  }
  return(this.EVAL_BODY_TAG);
  }
}
 
 

import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import de.eoa.sql.CCDB;
import de.eoa.sql.CCException;
 
/**
 * Überschrift: 
 * Beschreibung: 
 * Copyright: Copyright (c) 2003
 * Organisation: eoa
 * @author not attributable
 * @version 1.0
 */
 
public class SetWherespalte extends TagSupport{
 
  private String[][] wherearray = null;
  private String[][] table = null;
  private String[][] tablefields = null;
  private String[][] subtablefields = null;
  private CCDB ccdb = null;
  private ResultSet rs = null;
  private ResultSetMetaData rsmd = null;

 
public SetWherespalte(){
this.wherearray = new String[1][3];
HttpSession session = pageContext.getSession();
this.setTablenames();
this.getMainfields();
this.getSubfields();
  }
 
private void setTablenames(){ }
 
private void getMainfields(){ }
 
private void getSubfields(){}
}
 
 
---
And here comes the Exception, that drives me nuts...
 

HTTP Status 500 - 

  _  


type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi

RE: Going nuts...

2003-11-04 Thread Shah, Shrihas (OFT)
Hi :

Try this. It may work
<% String bl =request.getParameter("blaetterid");
   String dr = request.getParameter("dropdownfilterwert");
%>

  <%-- if 
'<%=bl%>' does not work then try "<%=bl%>" --%>
  
<%-- if '<%=dr%>' does not work then try "<%=dr%>" --%>


Good luck.

Shrihas

Shrihas Shah
NYS Office for Technology
[EMAIL PROTECTED]
Phone (518) 408-2382
Fax (518) 473-3389
(US Postal Service Regular Mail Address)
State Capitol ESP, PO Box 2062
Albany, NY 12220-0062
(Parcel Post/Overnight and Interagency Mail Address)
Empire State Plaza
Swan St., Core 4, 1st Floor
Albany, NY 12223


-Original Message-
From: Moritz Bayer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 3:06 AM
To: Tag Libraries Users List
Subject: Going nuts...

hello list, 
 
I really donm't know why I always have to get these strange messages, but once again, 
I have an Exception I really don't understand. This is killing my time and my 
motivation. Hope someone can help me out of this situation!
I want to nest a tag within another tag, and my jsp-code looks like this:
 
...
<%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>


 
 

 
-
The tags are defined as followed:
 

http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
 


 
  1.1
  1.2
  simple
  /WEB-INF/classes/tlds/test.tld
  
  
 
 spalte
 .tags.query.Spalte
 JSP
 
 
name
true
no
 
 
wherespalte
true
true
 
 
wert
true
true
 
 
  tabelle
true
tue
 



 setwherespalte
 cms.tags.query.SetWherespalte
 JSP
 
 
 
 

... anf my java code looks like this:
 
 
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.*;
import java.io.*;
 

public class Spalte extends BodyTagSupport{
 
  private String name = null;
  private String wherespalte = null;
  private String wert = null;
  private String tabelle = null;
 
  public void setTabelle(String tab){
this.tabelle = tab;
  }
 
  public void setWert(String wert){
this.wert = wert;
  }
 
  public void setWherespalte(String spalte){
this.wherespalte = spalte;
  }
 
  public void setName(String name){
this.name = name;
  }

public int doStartTag()throws JspTagException{
  SetWherespalte parent = (SetWherespalte)findAncestorWithClass(this, 
SetWherespalte.class);
  if(parent == null){
throw new JspTagException ("nesting error");
  }else{
if(name.equalsIgnoreCase("id")){
// do something
 }
  }
  return(this.EVAL_BODY_TAG);
  }
}
 
 

import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import de.eoa.sql.CCDB;
import de.eoa.sql.CCException;
 
/**
 * Überschrift: 
 * Beschreibung: 
 * Copyright: Copyright (c) 2003
 * Organisation: eoa
 * @author not attributable
 * @version 1.0
 */
 
public class SetWherespalte extends TagSupport{
 
  private String[][] wherearray = null;
  private String[][] table = null;
  private String[][] tablefields = null;
  private String[][] subtablefields = null;
  private CCDB ccdb = null;
  private ResultSet rs = null;
  private ResultSetMetaData rsmd = null;

 
public SetWherespalte(){
this.wherearray = new String[1][3];
HttpSession session = pageContext.getSession();
this.setTablenames();
this.getMainfields();
this.getSubfields();
  }
 
private void setTablenames(){ }
 
private void getMainfields(){ }
 
private void getSubfields(){}
}
 
 
---
And here comes the Exception, that drives me nuts...
 

HTTP Status 500 - 

  _  


type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipel

AW: Going nuts...

2003-11-04 Thread Moritz Bayer
Hi james & everyone else,

I looked into it and found the following line in the code:

   if (pageContext != null) pageContext.handlePageException(t);

I made some research and all I could find was, that this might happen if I use an 
servlet.jar version, that contains the classes of jsp1.1. I looked into the Manifest 
file of the servlet.jar I use, and, if I get it right, it uses jsp1.2. 
Some more information about my system and tomcat setup that might help give me a hint:

- Apache Tomcat 4.1.27
- J2SDK 1.4.1_01

That's all I can give you so far, would be very thankful for anything that helps,
Moritz 

  

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 4. November 2003 13:38
An: [EMAIL PROTECTED]
Betreff: RE: Going nuts...


bah. sorry - accidentally hit the send button before i was finished.  take
two:

i don't have time to go through all the code at the moment, but take a look at this 
line in your stack trace:

at
org.apache.jsp.mitglieder_l_jsp._jspService(mitglieder_l_jsp.java:252)

it tells you the line in the generated servlet that failed.  you can find that JSP in 
(if you're using tomcat) tomcat's work directory.  if not, most other containers have 
something similar.  open the JSP up and look at line 252 -- this almost always clues 
me into what is going on.

good luck!
james

> -Original Message-
> From: Moritz Bayer [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2003 3:06 AM
> To: Tag Libraries Users List
> Subject: Going nuts...
> 
> 
> hello list,
>  
> I really donm't know why I always have to get these strange
> messages, but once again, I have an Exception I really don't 
> understand. This is killing my time and my motivation. Hope 
> someone can help me out of this situation! I want to nest a 
> tag within another tag, and my jsp-code looks like this:
>  
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
> 
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wherespalte="calc" 
> wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>  
> --
> --
> -
> The tags are defined as followed:
>  
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
> 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>  
> 
> 
>  
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>   
>  
>  spalte  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
> 
> 
>  setwherespalte
> cms.tags.query.SetWherespalte
>  JSP
>  
>  
>  
>  
> --
> --
> 
> ... anf my java code looks like this:
>  
>  
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>  
> 
> public class Spalte extends BodyTagSupport{
>  
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>  
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>  
>   public void setWert(String wert){
> this.wert = wert;
>   }
>  
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>  
>   public void setName(String name){
> this.name = name;
>   }
> 
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent =
> (SetWherespalte)findAncestorWithClass(this, SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>  
>  
> 
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>  
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>  
> public class SetWherespalte extends TagSupport{
>  
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
> 
>  
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
>

RE: Going nuts...

2003-11-04 Thread JFarley
bah. sorry - accidentally hit the send button before i was finished.  take
two:

i don't have time to go through all the code at the moment, but take a look
at this line in your stack trace:

at
org.apache.jsp.mitglieder_l_jsp._jspService(mitglieder_l_jsp.java:252)

it tells you the line in the generated servlet that failed.  you can find
that JSP in (if you're using tomcat) tomcat's work directory.  if not, most
other containers have something similar.  open the JSP up and look at line
252 -- this almost always clues me into what is going on.

good luck!
james

> -Original Message-
> From: Moritz Bayer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 04, 2003 3:06 AM
> To: Tag Libraries Users List
> Subject: Going nuts...
> 
> 
> hello list, 
>  
> I really donm't know why I always have to get these strange 
> messages, but once again, I have an Exception I really don't 
> understand. This is killing my time and my motivation. Hope 
> someone can help me out of this situation! I want to nest a 
> tag within another tag, and my jsp-code looks like this:
>  
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
> 
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wherespalte="calc" 
> wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>  
> --
> --
> -
> The tags are defined as followed:
>  
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 
> 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>  
> 
> 
>  
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>   
>  
>  spalte
>  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
> 
> 
>  setwherespalte  
> cms.tags.query.SetWherespalte
>  JSP
>  
>  
>  
>  
> --
> --
> 
> ... anf my java code looks like this:
>  
>  
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>  
> 
> public class Spalte extends BodyTagSupport{
>  
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>  
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>  
>   public void setWert(String wert){
> this.wert = wert;
>   }
>  
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>  
>   public void setName(String name){
> this.name = name;
>   }
> 
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent = 
> (SetWherespalte)findAncestorWithClass(this, SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>  
>  
> 
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>  
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>  
> public class SetWherespalte extends TagSupport{
>  
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
> 
>  
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
> this.getMainfields();
> this.getSubfields();
>   }
>  
> private void setTablenames(){ }
>  
> private void getMainfields(){ }
>  
> private void getSubfields(){}
> }
>  
>  
> --
> -
> And here comes the Exception, that drives me nuts...
>  
> 
> HTTP Status 500 - 
> 
>   _  
> 
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
> exception 
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:254)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspS

RE: Going nuts...

2003-11-04 Thread JFarley
i don't have time to go through all the code at the moment, but take a look
at this line in your stack trace:


> -Original Message-
> From: Moritz Bayer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 04, 2003 3:06 AM
> To: Tag Libraries Users List
> Subject: Going nuts...
> 
> 
> hello list, 
>  
> I really donm't know why I always have to get these strange 
> messages, but once again, I have an Exception I really don't 
> understand. This is killing my time and my motivation. Hope 
> someone can help me out of this situation! I want to nest a 
> tag within another tag, and my jsp-code looks like this:
>  
> ...
> <%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>
> 
> 
>   wert='<%=request.getParameter("blaetterid")%>'/>
>   wherespalte="calc" 
> wert='<%=request.getParameter("dropdownfilterwert")%>'/>
> 
>  
> --
> --
> -
> The tags are defined as followed:
>  
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 
> 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
>  
> 
> 
>  
>   1.1
>   1.2
>   simple
>   /WEB-INF/classes/tlds/test.tld
>   
>   
>  
>  spalte
>  .tags.query.Spalte
>  JSP
>  
>  
> name
> true
> no
>  
>  
> wherespalte
> true
> true
>  
>  
> wert
> true
> true
>  
>  
>   tabelle
> true
> tue
>  
> 
> 
> 
>  setwherespalte  
> cms.tags.query.SetWherespalte
>  JSP
>  
>  
>  
>  
> --
> --
> 
> ... anf my java code looks like this:
>  
>  
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.http.HttpSession;
> import javax.servlet.jsp.*;
> import java.io.*;
>  
> 
> public class Spalte extends BodyTagSupport{
>  
>   private String name = null;
>   private String wherespalte = null;
>   private String wert = null;
>   private String tabelle = null;
>  
>   public void setTabelle(String tab){
> this.tabelle = tab;
>   }
>  
>   public void setWert(String wert){
> this.wert = wert;
>   }
>  
>   public void setWherespalte(String spalte){
> this.wherespalte = spalte;
>   }
>  
>   public void setName(String name){
> this.name = name;
>   }
> 
> public int doStartTag()throws JspTagException{
>   SetWherespalte parent = 
> (SetWherespalte)findAncestorWithClass(this, SetWherespalte.class);
>   if(parent == null){
> throw new JspTagException ("nesting error");
>   }else{
> if(name.equalsIgnoreCase("id")){
> // do something
>  }
>   }
>   return(this.EVAL_BODY_TAG);
>   }
> }
>  
>  
> 
> import javax.servlet.jsp.tagext.*;
> import javax.servlet.jsp.*;
> import javax.servlet.http.*;
> import java.io.*;
> import java.sql.ResultSet;
> import java.sql.ResultSetMetaData;
> import java.sql.SQLException;
> import de.eoa.sql.CCDB;
> import de.eoa.sql.CCException;
>  
> /**
>  * Überschrift: 
>  * Beschreibung: 
>  * Copyright: Copyright (c) 2003
>  * Organisation: eoa
>  * @author not attributable
>  * @version 1.0
>  */
>  
> public class SetWherespalte extends TagSupport{
>  
>   private String[][] wherearray = null;
>   private String[][] table = null;
>   private String[][] tablefields = null;
>   private String[][] subtablefields = null;
>   private CCDB ccdb = null;
>   private ResultSet rs = null;
>   private ResultSetMetaData rsmd = null;
> 
>  
> public SetWherespalte(){
> this.wherearray = new String[1][3];
> HttpSession session = pageContext.getSession();
> this.setTablenames();
> this.getMainfields();
> this.getSubfields();
>   }
>  
> private void setTablenames(){ }
>  
> private void getMainfields(){ }
>  
> private void getSubfields(){}
> }
>  
>  
> --
> -
> And here comes the Exception, that drives me nuts...
>  
> 
> HTTP Status 500 - 
> 
>   _  
> 
> 
> type Exception report
> 
> message 
> 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
> exception 
> org.apache.jasper.JasperException
>   at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:254)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:295)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(Stan

Going nuts...

2003-11-04 Thread Moritz Bayer
hello list, 
 
I really donm't know why I always have to get these strange messages, but once again, 
I have an Exception I really don't understand. This is killing my time and my 
motivation. Hope someone can help me out of this situation!
I want to nest a tag within another tag, and my jsp-code looks like this:
 
...
<%@ taglib uri="/WEB-INF/classes/tlds/test.tld" prefix="test" %>


 
 

 
-
The tags are defined as followed:
 

http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
 


 
  1.1
  1.2
  simple
  /WEB-INF/classes/tlds/test.tld
  
  
 
 spalte
 .tags.query.Spalte
 JSP
 
 
name
true
no
 
 
wherespalte
true
true
 
 
wert
true
true
 
 
  tabelle
true
tue
 



 setwherespalte
 cms.tags.query.SetWherespalte
 JSP
 
 
 
 

... anf my java code looks like this:
 
 
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.*;
import java.io.*;
 

public class Spalte extends BodyTagSupport{
 
  private String name = null;
  private String wherespalte = null;
  private String wert = null;
  private String tabelle = null;
 
  public void setTabelle(String tab){
this.tabelle = tab;
  }
 
  public void setWert(String wert){
this.wert = wert;
  }
 
  public void setWherespalte(String spalte){
this.wherespalte = spalte;
  }
 
  public void setName(String name){
this.name = name;
  }

public int doStartTag()throws JspTagException{
  SetWherespalte parent = (SetWherespalte)findAncestorWithClass(this, 
SetWherespalte.class);
  if(parent == null){
throw new JspTagException ("nesting error");
  }else{
if(name.equalsIgnoreCase("id")){
// do something
 }
  }
  return(this.EVAL_BODY_TAG);
  }
}
 
 

import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import de.eoa.sql.CCDB;
import de.eoa.sql.CCException;
 
/**
 * Überschrift: 
 * Beschreibung: 
 * Copyright: Copyright (c) 2003
 * Organisation: eoa
 * @author not attributable
 * @version 1.0
 */
 
public class SetWherespalte extends TagSupport{
 
  private String[][] wherearray = null;
  private String[][] table = null;
  private String[][] tablefields = null;
  private String[][] subtablefields = null;
  private CCDB ccdb = null;
  private ResultSet rs = null;
  private ResultSetMetaData rsmd = null;

 
public SetWherespalte(){
this.wherearray = new String[1][3];
HttpSession session = pageContext.getSession();
this.setTablenames();
this.getMainfields();
this.getSubfields();
  }
 
private void setTablenames(){ }
 
private void getMainfields(){ }
 
private void getSubfields(){}
}
 
 
---
And here comes the Exception, that drives me nuts...
 

HTTP Status 500 - 

  _  


type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.