• Post Reply Bookmark Topic Watch Topic
  • New Topic

it is not generating the form required  RSS feed

 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ankit Tripathi
Ranch Hand
Posts: 199
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Where is the opening tag for "</div>".
Also pay attention-

1.You are using scriptlets and Java Code in your JDBC,which is considered as a bad practice,rather use EL.
2.Put your database connectivity code in a bean class rather than hardcoding it in a JSP.Let a servlet(Controller) notify bean of any user action,resulting in the change of state of bean and a view(JSP) should query the bean(model) to generate appropriate user interface.
3.Use PreparedStatement in place of Statement.It will prevent your code to become a victim of SQL injections
4.Do not use MS Access as database because it is not robust for multiuser environment.
 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just a beginner. i dont know much about JSP and i have to submit a project. please help in this code i have written
 
Deepakkumar Devarajan
Ranch Hand
Posts: 54
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include a open div tag as suggested by Ankit. Whenever you JDBC you should catch SQLException. Please let us know what is the error you get?
 
Jatin sachdev
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for replying......

It is now working.....
there was a problem in using these scriptlets......
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not stay a beginner when you have already started coding in J2EE.

Good that you tried, though!

What exactly is the issue that you are facing??

What exactly is the exception that you are seeing on the development console?

I do not think that just the div tag is the one which is stopping the JSP to display the output.

The first thing that comes to my mind when I do not see the JSP showing any output is that it is not compiling. Check with that, first!

PS:

You put the try and catch block but do not do the most important thing, e.printStackTrace() / e.getMessage(). I am sorry, but you need to practice JAVA itself first, before completing your project or even before jumping to J2EE along with STRUTS framework.

Take it as a good advice, you will, i suppose..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!