ejb servlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    ejb servlet

    i can not add a servlet to my ejb project in eclipse? i wanted the servlet to display the returned map of <coulmn name, value> from component class
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What happens when you try to add the servlet?

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      when i right click on the project i can add jsp but not a servlet

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        A servlet is just another class. You can create it by creating a class and then making sure that it extends HttpServlet.

        Comment

        • oll3i
          Contributor
          • Mar 2007
          • 679

          #5
          ok but where should i put it in nameoftheprojec tClient folder?

          Comment

          • itsraghz
            New Member
            • Mar 2007
            • 124

            #6
            Originally posted by oll3i
            ok but where should i put it in nameoftheprojec tClient folder?
            It should not be a matter!!

            Comment

            • Dököll
              Recognized Expert Top Contributor
              • Nov 2006
              • 2379

              #7
              You probably also should look at your Servlet as a Bean, therefore, you would not add a Bean into a Servlet but could make a Servlet work as a Bean.

              In turn, you would be reading your Bean or Servlet through a straight JSP page, or a JSF enabled JSP page (have not tried Servlet with JSF, but have with a Bean).

              What this means is, you could simply look at a Servlet as a Bean if you wanted to, but you would get possible unsound results depending on what you're looking to achieve, I would go with a straight SQL Bean or else.

              If you'd like to post a bit of your work here, we'd be happy to take a stab at it:-)

              In a bit!

              Comment

              Working...