facebook

Again how a servlet can access applicationContext ina Spring

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #252874 Reply

    amir55
    Participant

    hi all

    // MyServlet.java has this line
    ApplicationContext ac = new FileSystemXmlApplicationContext(“src/applicationContext.xml”);

    // web.xml I have jsut regester to tthe servlet

    <servlet>
    <servlet-name>MyServlet</servlet-name>
    <servlet-class>tests.MyServlet</servlet-class>
    </servlet>

    <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/MyServlet</url-pattern>
    </servlet-mapping>

    //applicationContext.xm
    is blank

    so the question is what to add from code to avoid many errors

    many thanks to al

    Amir

    #252877

    Robert Varga
    Participant

    Hi amir,

    see my reply in your other servlet-related topic.

    Best regards,

    Robert

    #252878

    Robert Varga
    Participant

    @robvarga wrote:

    Hi amir,

    see my reply in your other servlet-related topic.

    Best regards,

    Robert

    Oops,

    apologies for the lowercase in your name… it was unintentional.

    Best regards,

    Robert

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Again how a servlet can access applicationContext ina Spring

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