IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » IDEs, Version Control and other tools
 
RSS feed
 
New topic
Author

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

tangara goh
Ranch Hand

Joined: Dec 27, 2009
Messages: 52

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
Sheriff

Joined: Jan 10, 2002
Messages: 36598

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
Messages: 205

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

Create your own wishlist at www.tilto.co.uk
David Newton
Author
Bartender

Joined: Sep 29, 2008
Messages: 6891

What's that weird scriptlet code supposed to be? Import statements?

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Messages: 52

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
Messages: 516

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
Messages: 52

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
Messages: 516

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,
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » IDEs, Version Control and other tools
 
RSS feed
 
New topic
hibernate profiler