struts

Error 400: Request[/editRecordsAction] does not contain handler parameter named

I'm creating a struts app and I am using an dispatch action. This was working a while ago and now has stopped and is holding me up. here is the the action mapping and the action request for one page. It give mes an error on all the pages that use the dispatch action. I get these errors. Error 400: Request[/editRecordsAction] does not co...

Struts and swing integration

HI guys, I am new to java. i want to develop one swing application and struts application and i need to integrate both when user click on download button .exe should download and install on client pc.after installation exe file should communicate with struts application. Thanks in advance Aswan ...

Default initialization of variables in action forms.

Hi Guys, i have made a from like : MyForm extend ActionForm{ list<Menu> MenuList=null; MyForm(){ super(); setMenuList(); //initialize menu list } } Menu object has string desciption and boolean variable for selected or not. In web page, i am iterating the list to display all the menus and checkbox over those boole...

Struts 2 validation using annotation and model driven approach

I'm having trouble figuring out the proper way to get validation to work using annotations and a model driven approach. As you can see I have a simple form: <s:form action="register" namespace="/authenticate"> <s:textfield name="username" label="Username"/> <s:password name="password" label="Password"/> ...

How to use DataSource in Struts action class? It gives a compilation error "Type mismatch"

I have defined the data source in struts-config.xml. I want to get a connection from it in a Struts action class. The code is: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { LoginForm loginForm = (LoginForm) form; Connection con = null; DataSo...

Check empty string in jsp

How to check for Empty String/Null String in Struts-JSP page. Struts Tag - does not works? ...

how to use external js file in struts 1.1 application and call the javascript function on onclick event?

i want to use ajax and javascript in struts 1.1 application because i want to make datagrid with insert,update,delete. ...

how to take the <html:text> in external javascript means js file in struts?

if i want to set and retrieve value of in struts. ...

Problem in Web Application (used Struts and JAX RPC web service)

I am using Struts and getting this problem. All the buttons of my application get redirected to the login page. I am using form based authorization. The UI was working a few hours back and all of a sudden without even any tampering with the code this problem cropped up. ...

How to validate if an ActionForm has changed in Struts (Java)?

which is the best option to validate if an ActionForm has changed (the user changed one or more values in it inputs on the jsp) in Struts? the ActionForm has a lot of instance variables, including lists. ...

How to display the data in charts using struts1.3.10

Hi All, I have some urgent client requirement to display database table data in Chart form. EX. http://www.swiftchart.com/examplebar.htm#top I am using struts1.3.10. Please help me how can i do that. Thanks Amit Jain ...

ImageButtonBean in Firefox

Did anybody use the ImageButtonBean from struts? It works fine in IE, but in Firefox i got an IllegalArgumentException when i tried to set the properties of ImageButtonBean. This error, according to struts Documentation, is caused by a bean or a name of the property null (http://commons.apache.org/beanutils/api/org/apache/commons/beanuti...

Freemarker or JSP ?

which one is better? i want to make web based application , new to Java world but not to the programming..... ...

Java exception problem

I got this exception in time of running a web application in java. What does this mean? exception.name = javax.servlet.ServletException: BeanUtils.populate ...

Problems with HibernateTemplate.find() and Lazy Loading in Spring/Struts

Hello! I've been trying to work with OpenSessionInViewFilter and having some limited success, but my problem comes when trying to lazy load objects that are returned using the getHibernateTemplate().find() call. I'll be using my "Slot" class as an example, but this is happening with anywhere that I'm trying to use "find()" to return a ...

Handling exceptions in Struts 1 ActionForm

I am working on an old web application which uses Struts 1.1. In order to do business validations (complex validations involving multiple form properties and invoking backend services), i wrote an ActionForm implementation which invokes a chain of validators on the ActionForm.validate method. The chain of validators are implemented usin...

Jasper Reports in JSP page

How to display jasper reports in JSP page? I am using iReport1.3.3 tool to create reports. I am struggling to display jasper report in JSP page. Is it possible to pass ArrayList to jasper reports? I need to display the report in PDF and EXcel format. ...

How can I returns to a JSP with multiple forms with ActionErrors?

I have a JSP with multiple forms as the "edit" view of an object. Now I want to send one of the forms, but there is an error in the validate method, because one of the input fields was not filled. When the bean is validate and the error is found, Struts returns to the JSP which is defined as the INPUT for the bean in my struts-config.xm...

$null check in velocity

Hi, I came to know about null check using $null in velocity 1.6 through a resource updated by you. Resource: http://stackoverflow.com/questions/24495/reading-model-objects-mapped-in-velocity-templates But I am facing so many challenges that there is no $null for null check in velocity as there is no documentation provided about this. Pl...

JSP, Spring, Struts or GWT for College Project

Possible Duplicate: Choosing a Java Web Framework now? I am a final year student doing my Bachelor in Enginering(Computers) course from Mumbai University. We are supposed to do a project for the final year and my group has decided to build a webapp for geographicaly separated developers to work collaboratively on projects onli...