CrazyEngineers
  • Adding a Field to a Servlet Shopping Cart

    yutopian

    Member

    Updated: Oct 10, 2024
    Views: 993
    We have a shopping cart that was set up by a consultant who is no longer available. We just have a new merchant credit card company who requires a three digit security code from the back of the credit card to be entered.

    Unfortunately, we could not find the form on our server to add a field for the credit card into. Our shopping cart is written in servlet and can be found from the link below.

    <a href="https://www.yutopian.com/yutop/cat?qtyPAY16=1&firstorder=Submit+Order" target="_blank" rel="nofollow noopener noreferrer">www.yutopian.com</a>

    We'll appreciate if someone can point us to the solution.

    Thank you very much.

    Sidney
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • sookie

    MemberDec 5, 2009

    A Good and tricky problem. Liked it. Well, I could not get access to your code so cannot tweak with it.

    1. I guess you can do one thing -try it if it works. Create a new class that extends your old Servlet class and then override doGet() or doPost() method of it[whichever is used in your old code for creating the form]. Use super.doGet() or super.doPost() and the add your new fields code in it.

    2. Other way is creating a new JSP(or Servlet) page and creating your entire code again in it. A worst solution for the problem.

    3. One more way is there but can't say anything about it until I don't know how entire your shopping cart is coded.

    Let me know, if it works 😀
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register