954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JSP shopping cart

Need help with creating a shopping cart in JSP :idea: . 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: [email]mikekumatia@yahoo.co.uk[/email] or [email]efui1@hotmail.com[/email]

efui
Newbie Poster
1 post since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

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.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

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.

hotwheel
Newbie Poster
1 post since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

headache !!!!!!!

I can not create shopping cart :(

I use JSP with MS access not MySQL

:'(

Mona Z
Newbie Poster
2 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 
headache !!!!!!! I can not create shopping cart :( I use JSP with MS access not MySQL :'(


What prevents you from creating it? There is no problem in using MS Access if you realize that there are some inherent limitations to it.

aniseed
Posting Whiz
359 posts since Apr 2006
Reputation Points: 48
Solved Threads: 7
 

WoOow

Just in this day I knew How can I add to cart !

the error was trivial !

after my exams period - if I pass it :) -, I will say what the error was

Mona Z
Newbie Poster
2 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

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.

Vinoth
Junior Poster
125 posts since Jun 2004
Reputation Points: 13
Solved Threads: 2
 

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 newnow. 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.

aniseed
Posting Whiz
359 posts since Apr 2006
Reputation Points: 48
Solved Threads: 7
 

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.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

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).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

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).

Get connecting JSP with Mysql

The link in his signature is an indicator of the crap he's mentioned in the post. A really WTF code, if you ask me.

aniseed
Posting Whiz
359 posts since Apr 2006
Reputation Points: 48
Solved Threads: 7
 

Yeah Gods, not only A JSP that is almost nothing but scriptlet (which I can almost understand since he is only demonstrating scriptlet in JSP even if it is wrong to do), but also compounding that by putting html tags and formatting inside the scriptlet block.

Then again, also, would that even compile? I mean no try/catch in the scriptlet. Is that allowed in JSP? I don't use scriptlet at all (or at least very, very little) so I have never tried doing anything that would need a try/catch block so I'm simply not sure if that would even compile.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Need help with creating a shopping cart in JSP :idea: . 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: .

malhotra
Newbie Poster
3 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

You better create your own post and explain there whats the problem, you do not need to open old post which wasn't a success

Also will be good that you post any coding what you did so far

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

not to mention apparently either taking on a job he knew he is incapable of handling or trying to trick us into doing his homework for him...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You