i have a problem about jsp-file praratem in web.xml

here is the photos about the list.
http://goo.gl/ylxBk
when i use servlet ,it works.
like http://localhost/question/togo  good.

but http://localhost/question/question/haha it doesnot,

i try every possible,  /WebContent/question.jsp and so on,but...

the same question also appears  at tag,

i write question.java for test
package question;

import java.io.IOException;

package question;

import java.io.IOException;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class Example extends SimpleTagSupport {
 public void doTag(){
         JspWriter out=this.getJspContext().getOut();
         try {
                out.println("<h2>i am example</h2>");
        } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
        }
 }
}

}

then example.tld inside  WEB-INF
...
<tag>
 <name>question</name>
 <tag-class> question.Example</tag-class>
<body-content>empty</body-content>
</tag>

then example.jsp inside WebContent


<body>
  <%@taglib uri="/WEB-INF/example.tld" prefix="myExample"%>
  here: <myExample: example />
</body>
it shows:

org.apache.jasper.JasperException: /example.jsp(11,8) No tag ""
defined in tag library imported with prefix "myExample"

how can i do

any can help me?

i read Core Servlets and JavaServer Pages Volume 2 who all about this.

if i cannot solve this question ,i cannot read more.

thanks

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to