File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes <%@ page language = - Error from Netbean" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "<%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %> - Error from Netbean" Watch "<%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %> - Error from Netbean" New topic
Author

<%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %> - Error from Netbean

tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
Hi,

I am creating a jsp page to allow user to delete and update.

So, as per jsp rule, I put the <%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %>
at the top of my page. However, netbean IDE shows me error.

Heading is follows by :


Please advise if there's anything wrong with the way I put the heading?

Tks.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48809

Please be sure to ask Netbeans questions in the IDEs forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 419

Which error? Or in other words: http://faq.javaranch.com/java/TellTheDetails
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
What's that weird scriptlet code supposed to be? Import statements?
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
David Newton wrote:What's that weird scriptlet code supposed to be? Import statements?


The error is Netbean IDE shows a red besides the code..meaning there's something wrong with the way I put the code there right?

Anyway, I put that line as I thought this is a standard line you have to put in, for any jsp page.

Kindly correct me if I'm wrong. Tks alot.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 639
Where do you see that you can create code like the following?

First, you really don't want to be doing any Java programming in the JSP page. The JSP page should be used just for display of information. The application processing should be done in a servlet.

Second, If you want to import, you can use the import attribute of the page directive, as in:

But please see the first point above.
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
Yes. You just helped me to see A VERY IMPORTANT point !!!

I tried to write this whole CHUNK of codes including the processing part and I find it just damn messy.

Thanks ALOT ALOT.

I will use the servlet to process and then use JSP to display. That is cleaner.

Now, my headache is how to combine EL and the bean and the JSP and the servlet.

Would you be able to advise?

Am doing this updating and deleting of member list.

The form part, as in the processing of the editing of member details I presume would be handling by the servlet, is t?
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 639
There are lots of great articles on Java Ranch which would help you. Start with the JSP FAQ http://faq.javaranch.com/java/JspFaq and go from there.

Also, take a look at the Core Servlets and JSP book's web site http://pdf.coreservlets.com/ where you can download all the chapters for the book for free. That site also has lots of great information, tutorials, etc. It will give you a lot of great help in getting started.

Best Regards,
 
 
subject: <%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %> - Error from Netbean
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com