Struts -Hello World – HTTP Status [404]

I am simply trying to created Hello World Struts Application . I have implemented every possible configuration , Still 404 error didnot resolved . My Server config and Project Structure Index.jsp <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <%@ taglib prefix=”s” uri=”/struts-tags”%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <title>Hello World</title> </head> <body> … Continue reading “Struts -Hello World – HTTP Status [404]”

How to Delete and Modify Datas using Struts2 and Hibernate

I created a jsp page that shows me the list of doctors (medecin in french) contained in my mysql database via the hibernate framework and struts2 . I have a delete button supprimer (in french), to remove a doctor, and a button , modifier , to edit the doctor’s data . The edit button , … Continue reading “How to Delete and Modify Datas using Struts2 and Hibernate”

Can't get junit to work with Struts2 convention plugin, annotations, Tiles, Maven

I am using the Struts2 convention plugin along with tiles and annotations and am using Maven for building the project. I am having problems getting junit to successfully run. The root error message seems to be Caused by: The Result type [tiles] which is defined in the Result annotation on the class [class com.mycompany.myproject.web.actions.security.ResendConfirmationAction] or … Continue reading “Can't get junit to work with Struts2 convention plugin, annotations, Tiles, Maven”

struts2 and hibernate, struts action is not working when i use more than one action in struts confg

I’m using struts and hibernate, when i add multiple action in struts.xml file, it reads only one action not others and also there no error. Here is my struts config file….form action name of jsp page is same, please help me anyone if you know the way…… <struts> <package name=”addController” extends=”struts-default”> <action name=”see” method=”user” class=”addController.Addaction”> … Continue reading “struts2 and hibernate, struts action is not working when i use more than one action in struts confg”

Using struts2, when i run it doesn't go to my method and it says resource not found

My program was able to run yewsterday and today this happened. It now says that m program can’t find the resource the program can’t run the method associated with the acton. Here are the logs of it. Severe: 218 [admin-listener(4)] INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider – Parsing configuration file [struts-default.xml] Severe: 311 [admin-listener(4)] INFO com.opensymphony.xwork2.config.providers.XmlConfigurationProvider – Parsing configuration … Continue reading “Using struts2, when i run it doesn't go to my method and it says resource not found”

divide the list of struts2 select into optgroup

I have Struts2 select tag with a list of names. I want to divide the list into struts optgroup tag Somthing like below cities Top Cities >Mumbai >Delhi >Banglore Other cities >pune >chandigrah >hyderabad >… >.. I have below code , however unable to understand how to show values in optgroup only and not under … Continue reading “divide the list of struts2 select into optgroup”

Struts2 related setup/first application errors

I am a newbie in struts2 programming and web applications. I am learning and following the hello world project from struts2 website. It seems to be straight forward, but I ran into a lot of problem running the project. Here is the link to the material that I am using:http://struts.apache.org/getting-started/hello-world-using-struts2.html I am also getting jars … Continue reading “Struts2 related setup/first application errors”

Struts 2 application with Tomcat Maven plugin returns 404 error

First of all, there are MANY questions on SO about this particular application setup and error. However, most if not all seemingly duplicate questions were resolved by adding missing jars. I am using Maven for my dependencies and anyways, my list of External Libraries looks complete. That being said, in my case, the mystery comes … Continue reading “Struts 2 application with Tomcat Maven plugin returns 404 error”