reset password
Author Message
meetashish
Posts: 4
Posted 19:08 May 14, 2013 |

I Uploaded Both the lab as well as Hw3 Files on Server. But when i run my homework file its showing error. When i touch the web.xml file in winscp both the program works fine on Server. But after sometime it again gives me an Error. And i have make sure that there is no duplication of class file or jsp file.

And my programs works fine in Eclipse.

What should i do???

gshah2
Posts: 6
Posted 19:13 May 14, 2013 |

I am facing exactly the same problem. When I touch the web.xml file then both the programs works fine and after some time it shows error .So what should I do now???

mamrti90
Posts: 5
Posted 19:22 May 14, 2013 |

What are you naming the Application scope variable on both HW3 and Lab5? I use different names and it worked for me.

 

For Lab05

getServletContext().setAttribute("courses", courses);

 

For Hw03:

getServletContext().setAttribute("games", games);

 

cysun
Posts: 2935
Posted 19:54 May 14, 2013 |
mamrti90 wrote:

What are you naming the Application scope variable on both HW3 and Lab5? I use different names and it worked for me.

 

For Lab05

getServletContext().setAttribute("courses", courses);

 

For Hw03:

getServletContext().setAttribute("games", games);

This. Don't name everything "entries".

meetashish
Posts: 4
Posted 20:21 May 14, 2013 |

Yeah. It works fine now.

Thanks :)

gshah2
Posts: 6
Posted 20:22 May 14, 2013 |

Ok. I have changed it. Now its working. Thank you.