facebook

XDOClet with JSP & JSF

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #228255 Reply

    kosl
    Member

    I wonder where to put XDoclet tags in web-application (for instance to specify references to EJB). We use JSP & JSF without writing any non-default servlets. Is there any way to put the tags in JSP code? And if not then where is the appropriate place for it?
    Thanks in advance for any suggestions!
    KO.

    #228265 Reply

    Riyad Kalla
    Member

    KO,
    I don’t understand what you are asking… you want to add XDoclet tags to your JSP pages and/or JSF pages? If so, what do you hope to generate? What is your ultimate goal here?

    #228271 Reply

    kosl
    Member

    Well,
    for instance I’d like to put @web.ejb-ref tags to specify references to EJB-beans that would appear in web.xml descriptor. Just I don’t know where to put them, since I’m not planning to write any servlets. For the moment I just made a fake (empty and not used) servlet and I’m putting all the @web.ejb-ref tags in there, just I’m not sure whether this is the proper approach :-).
    Regards,
    kosl

    #228272 Reply

    Riyad Kalla
    Member

    Kosl,
    The JSP pages will not be processed by XDoclet, so these tags will need to go into your Java source files someplace. XDoclet is intended as a markup to Java class files.

    #228274 Reply

    kosl
    Member

    @support-rkalla wrote:

    Kosl,
    The JSP pages will not be processed by XDoclet, so these tags will need to go into your Java source files someplace. XDoclet is intended as a markup to Java class files.

    Thanks for your answer. I know that XDoclet is intended as a markup for java. My problem is that for instance the tag “@web.ejb-ref” is as far as I understand intended to be put into servlet’s, and because I was planning to use JSF, I thought that I won’t need any servlets. And now – as I’ve written I’ve done a “fake” servlet and put the tags there which seems to me a quite awkward solution.

    kind regards

    k.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: XDOClet with JSP & JSF

You must be logged in to post in the forum log in