File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes STRUTS 2 ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "STRUTS 2 ERROR" Watch "STRUTS 2 ERROR" New topic


P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119

I have developed simple calculation program in struts 2 iam faceing some problem please help me to solve my issue

My jsp page is :

My java code :

my web.xml

my struts.xml:

error : The server encountered an internal error () that prevented it from fulfilling this request.

Thanks in advance, please help me to solve my issue
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Here, you are defining same actionName twice. Make it a habit of giving proper names to variables.

Another mistake you are passing same parameter for different variables. It should be.

ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 119

Thank You so much. now i got answer.
I agree. Here's the link:
subject: STRUTS 2 ERROR
It's not a secret anymore!