Almamun-Hossain / jsp-ecommerce

49 stars 59 forks source link

DbCon.java #1

Closed FearxBlaze closed 1 year ago

FearxBlaze commented 2 years ago

Hi !, I have a problem with the DbCon .. I am following the tutorials, but I cannot get the DbCon to work .. it gives me an error in the "index.jsp"

I attach Screen

(Srry for the bad english =P)

image image image

Almamun-Hossain commented 2 years ago

I just reviewed your code. seems your package name and the static Connection variable name are same. Could you please define two different name? "Connection" is a reserved keyword.

FearxBlaze commented 2 years ago

can you show me what are the error? because i'm trying changing everything but still doesn't work

Almamun-Hossain commented 2 years ago

Image 2022-05-08 22-27-16 I am assuming this is causing the issue.

FearxBlaze commented 2 years ago

changed, but still error.. can you help me on anydesk?

sajidshah232 commented 1 year ago

did your problem solve? i am facing same problem, can you help?

Almamun-Hossain commented 1 year ago

Hi @FearxBlaze, after changing the package name have you imported the package to your index.jsp page? After checking your index.jsp page I can't see any package import. To import package please use <%@page import="your-package-name"%> Here is an example: <%@page import="cn.techtutorial.connection.DbCon"%>

image

sajidshah232 commented 1 year ago

bro i did all the things, can i get your whatsapp no.? my contact no. is +60183546282

On Thu, 26 Jan 2023 at 4:00 AM, Almamun @.***> wrote:

Hi @FearxBlaze https://github.com/FearxBlaze, after changing the package name have you imported the package to your index.jsp page? After checking your index.jsp page I can't see any package import. To import package please use @. import="your-package-name"%> Here is an example: @. import="cn.techtutorial.connection.DbCon"%>

[image: image] https://user-images.githubusercontent.com/43817775/214675574-8a07db13-75d6-43ad-8381-ad1ac0d348f9.png

— Reply to this email directly, view it on GitHub https://github.com/Almamun-Hossain/jsp-ecommerce/issues/1#issuecomment-1404157054, or unsubscribe https://github.com/notifications/unsubscribe-auth/A22ZUE5F7P6N2IBBTLI6HKLWUGA6LANCNFSM5VFS2MUA . You are receiving this because you commented.Message ID: @.***>

Almamun-Hossain commented 1 year ago

Seems the problem has been fixed. :)