<%@ page language = "java" contentType = "text/html"; charset = ISO-8859-1" %> - Error from Netbean
tangara goh
Ranch Hand
Joined: Dec 27, 2009
Posts: 125
posted
0
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
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
posted
0
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.
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
posted
0
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