Home Tutorialhelp Allcomments Jsp Jsptaglibraries

 
 

Comments

 
User Comments for the tutorial:

Using Taglib in JSP. A brief introduction to taglibs and taglibs programing.



Advertisement
Comments

can't compile class
When I attempt to compile your class, it generates 16 errors. The primary cause is the 2 imports: Import javax.servlet.jsp.*; Import javax.servlet.jsp.tagtext.*; I downloaded the javax classes from Sun, but I don't know how to use them.  

your class had errors
I cleaned up your code. It had multiple errors with return types, misspelled variables and classes, and illegal characters. This compiles correctly: package mytags; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; publi 

one more thing
Actually, 2 more things. You used illegal double quotes in 2 argument lists. pagecontext.getOut().write() and throw new JspException() They seem to be extended ASCII double quotes, probably from Microsoft Word, or UTF-8 encoding. They 

another thing
Your XML file has an error: <body context>empty</body context> The body tag is incorrect. If context is an attribute, it must have a value. ex. <body context="value"> This error also stops the tag library class from working. Fix up this 

another error
Again, you have another error in your .tld file <tagclass>mytags.HelloWorld</tagclass> You spelled the class "HelloWorld", but your actual class is spelled "Helloworld" Who wrote this crap? 

Your code has lots of errors
I cleaned up your code. It had multiple errors with return types, misspelled variables and classes, and illegal characters. This compiles correctly: cd C:\j2ee\jdk\bin javac -classpath C:\j2ee\lib\j2ee.jar C:\tomcat\webapps\tutorials\WEB-INF\c 

problem in the above code here is the fresh one
for HelloWorld.class file will be import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.Tag; public class HelloWorld implements Tag { private PageContext pagecontext; private Tag parent; pub 

errors in this code
what is this the code is not working there are so many errors. 

Thanx RoseIndia
The information provided here is very helpful. RoseIndia is one of my favourite site for help regarding any of the technical topic 

.tld file
how to save .tld file and how to run class file. 

how to run tld (custom tags)
i don't know how to run custom tags in jsp technology ..  

Related Tutorial and Articles
WebSevices Questions

Unable to compile class for JSP - WebSevices
Unable to compile class for JSP  org.apache.jasper.JasperException: Unable to compile class for JSP When I am trying to access a java file kept under src folder under a package from a jsp page placed under web directory, I am 

Java Beginners

compile
compile  how to compile .class files using eclipse 

Java Beginners

How to compile and run the JSP
How to compile and run the JSP  Hi Kindly tell me how to run and compile JSP small Program using Tomcat as webserver. I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface 

JSP Servlet Questions

unable to compile class file - JSP-Servlet
unable to compile class file  I wrote database connection in jsp file...*; import java.util.ArrayList; public class ComboboxList extends HttpServlet...("/jsp/Combobox.jsp"); dispatcher.forward(request, response 

Java Interview Questions

why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3 

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Java Beginners

compile error
compile error  Hello All for example public class... program with Test.java and try to compile with javac test.java an error like test.java :2 : class A is public ,should be declared in a file named A.java 

JSP Servlet Questions

How to compile & get output for JSP
How to compile & get output for JSP  HI My Roseindia friend has given the answer as RUN the JSP How to run the JSP Program? But what i mean is that i created a small jsp program in HTML and saved as Hello.jsp. And next i opened 

Java Beginners

how to compile programs??????????
how to compile programs??????????  "javac" is not recognised as a file name. why??????????   Have you set your path name and class name correctly? Anyways have a look at the following link: Install Java 

Advertisements Advertisements
 

 

 

DMCA.com