•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 427,016 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,524 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 14307 | Replies: 14
![]() |
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Need help with creating a shopping cart in JSP
. The problem is am very new to this environment(JSP) and I have undertaken a project to develop an e-commerce web-site with shopping cart linking to a MySQL database. The main goals of the shopping cart is to process orders and send an email confirmation to the customer.
If anyone can help it will be greatly appriciated :cheesy: .
mail address: mikekumatia@yahoo.co.uk or efui1@hotmail.com
. The problem is am very new to this environment(JSP) and I have undertaken a project to develop an e-commerce web-site with shopping cart linking to a MySQL database. The main goals of the shopping cart is to process orders and send an email confirmation to the customer. If anyone can help it will be greatly appriciated :cheesy: .
mail address: mikekumatia@yahoo.co.uk or efui1@hotmail.com
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 18
Solved Threads: 199
•
•
Join Date: Aug 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Take a look at the Elastic Path documentation. It is commercial software but you can gather some good ideas about ecommerce architecture. Also look at the demo of the JSP shopping cart for a detailed architecture breakdown.
•
•
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation:
Rep Power: 0
Solved Threads: 5
•
•
Join Date: Jun 2004
Posts: 125
Reputation:
Rep Power: 5
Solved Threads: 2
•
•
•
•
Don't think JSP but include servlets, javabeans, and probably an MVC framework.
Don't go off reinventing the wheel but examine existing technologies and use those to your advantage.
Since he is new, there is no need to go with servlets , you can search google to find some good codes to start with.
when u think u are perfect then jump to what my friend said and also look over struts framework.
•
•
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation:
Rep Power: 0
Solved Threads: 5
•
•
•
•
Since he is new, there is no need to go with servlets , you can search google to find some good codes to start with.
when u think u are perfect then jump to what my friend said and also look over struts framework.
He's not new now. The post is 18 months old. I only see exclusion of servlet as a part of a bad advice. If one doesn't know servlets, what to start with? Yeah, I know the usual argument that JSP is easy to learn which eventually leads to bad code and unimaginably bigger problems.
•
•
•
•
Since he is new, there is no need to go with servlets , you can search google to find some good codes to start with.
when u think u are perfect then jump to what my friend said and also look over struts framework.
As aniseed alluded to above, this is exactly the wrong attitude. If he were new, that would be the best reason to do right the first time, even if it may be, at first, a little harder. It is still much easier than doing it wrong first, and then attemtping to "relearn" it the right way, which will then lead to hundreds of responses in future threads of the style "but I have always done it this way ...." arguing that the good advice he is getting is wrong, because it does not fit his style of bad coding.
The comment above is just like when someone suggests a newbie should use a IDE for development and shouldn't worry about how the stuff is actually compiled and jarfiles referenced because the IDE will do it for him. Then, two weeks later, that same newbie is filling up forums because he can't compile/run his "application" to run outside of the IDE, or he now no longer has access to his IDE and now doesn't know how to conitune. Or, there is a problem in his GUI (or something), which he let the IDE generate the code for, and he has no idea how to go about fixing it.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 18
Solved Threads: 199
what Vinoth also doesn't seem to understand is that without servlets there would not be JSP.
JSP are compiled into servlets, they ARE special servlets with a different syntax.
And unless you use them as intended only for display purposes, you get incredibly messy spaghetti code (I should know, that's how I started in the days when servlets and JSPs both were fresh out of Sun, back in the late 1990s, and everyone put reams of Java code into JSPs).
JSP are compiled into servlets, they ARE special servlets with a different syntax.
And unless you use them as intended only for display purposes, you get incredibly messy spaghetti code (I should know, that's how I started in the days when servlets and JSPs both were fresh out of Sun, back in the late 1990s, and everyone put reams of Java code into JSPs).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Shopping Cart Not Working (ASP.NET)
- which is the best technology to make online shopping cart? (IT Technologies and Trends)
- shopping cart using jsp, servlet, javabean (Community Introductions)
- Shopping cart class (Java)
- dell.com shopping cart save feature (Database Design)
Other Threads in the JSP Forum
- Previous Thread: Problem with database connection
- Next Thread: how to read data from database page by page, please it is urgent...




-, I will say what the error was
Linear Mode