struts-1

Maven archetype for integrating Struts 1 and Spring 2.5

Hi all, I have a project that integrates Struts 1 with Spring. I now wish to port it under Maven 2. I have searched for the proper maven archetype but can't seem to find a proper match. Any suggestions? Thanks! ...

According to TLD, tag bean:write must be empty, but is not org.apache.jasper.compiler.DefaultErrorHandler.jspError

i got the below error while running the application According to TLD, tag bean:write must be empty, but is not org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatc...

i have Bean class with setter() and getter() methods for fname and lname property. how to use that bean variable in jsp for checking if condition and looping.

hi all, i want to use "if condition and while loop" in struts1 framework. i have Bean class with setter() and getter() methods for fname and lname property. how to use that bean variable in jsp for checking if condition. how to check if condition..if i want to check like if(firstname==lastname){some actoin...} pls reply ASAP ...

FormFile Throwing ConversionException

I have a Struts 1 application with the following ActionForm: import org.apache.struts.upload.FormFile; public class uploadedFileForm { public FormFile theFile; public FormFile getTheFile() { return theFile; } public void setTheFile(FormFile theFile) { this.theFile = theFile; } } My JSP page has the ...

AJAX with Struts 1.x Version

I am having an application developed with Struts1.3, Jboss4.X version and jdk1.5 Now as an enhancement we are planning to implement AJAX to the web application Can you please suggest me Whether I can use AJAX with Struts1.3 Framework? Which Jar I need to use if I Can implement AJAX? At Some website, I realised struts2-dojo-plugin.jar...

Struts 1 - How to display ActionMessages

I am displaying ActionMessages through a JSP file by the following command: <logic:messagesPresent message="true"> <ul id="messsages"> <html:messages id="msg" message="true"> <li><bean:write name="msg"/> </li> </html:messages> </ul> </logic:messagesPresent> Now I want to display only selected messag...

Struts 1.3.8 is compatible with jdk 1.6?

Hi all, I have searched the net to see if struts 1.3.8 is compatible with jdk 1.6. If anyone does know, just replay ...

Struts 1 - struts-taglib.jar is not being found by my web application

I am using Struts-1. I have developed a struts-based web application. I am using struts tags in my JSP pages supplied in struts-taglib.jar by inserting the following lines in the JSP file: <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %> <%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %> <%@ tagli...

How to use javascript to include struts html tag?

I have a check box and a text box. I have used struts tags and Now i need to validate that if the check box is checked, i should gray out (disable) the text box. If it is unchecked the text box shold take phone numbers. I did lik this, i called a java script on click of check box and did a innerHtml based on wheather checkbox ix chec...

Eclipse Dynamic Web Project fails to load under WTP

When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using WTP, it fails with the attached stacktrace. Checklist At the project properties, under "Java EE Module Dependencies" I have checked the "Maven Dependencies" At the wtp deploy directory, under lib indeed all dependencies are present (esp. struts-taglib-1.3.10....

JSF tags are required to contain IDs:"html:link " but doesn't work better with id

I try to generate : <html:link href="chargementDonnees.do?Label=ENERGIE">ENERGIE</html:link> <html:link href="chargementDonnees.do?Label=ETAT_PROJET">ETAT_PROJET</html:link> using : <html:link href="${urlTable}" ><c:out value="${label}"/></html:link> But I get an error message : JSPG0048E: Validation error. The following JSF t...

How to have dynamic css files depending on struts session variable

I have a webpage in which i want the css file to be the same name as a session variable I have set. For example; If the session variable was "blue", i want the page to load the css file blue.css. I tried something below which didnt work, and I'm now stuck. My knowledge of struts is very limited. <LINK rel="stylesheet" type="text/css"...

Populate values using optionCollection Tag in struts1.

I have an arraylist which contains {1,2,3,4,5} as objects. i want to show these values in dropdown select box. how do i achieve it. how to map with value and label property? ...

How to include javascript/css once with Struts 1.x

If this is the wrong approach, please suggest something better, but my current efforts have been trying to find something that exists for a single page load, such that I can cache which javascript/css files have been included so as to only include them once. I thought in a TagSupport subclass I could use (HttpServletRequest)pageContex...

JSP link submitting data to struts form bean

I am making a JSP page that links to a page where it will pull a list of data from the database depending on the user who is logged in. I am using a DataSourceRealm type authentication so I pull the username with a request.geRemoteUser() and want to submit that to my form when I click the link but I cannot figure out how to do that, my l...

Help with Struts Action mapping

I am having a problem with my struts application it is a class enrollment app and when the user clicks on a "show enrolled courses" button it is supposed to show the courses they are enrolled in but it shows nothing at the moment. Struts/Apache does not return any errors, it Just shows a blank page and I cannot figure out why. My action...

Passing a Java object from one Struts action to another

Hello! In one of my Struts action I've got the following code in a method: ... List<Object> retrievedListOfObjects = c.getListOfObjects(); return mapping.findForward("fw_view"); } fw_view leads to a new Struts action with another Struts form. Let's say this form has got among others the following field List<Object> listOfObjec...

Pass value to another jsp

I have come in a situation where I need to create a hiperlink for each entry in collection following is my code.. <td><a href="#" onclick="javascript:openWindow(--------)">Click How can i get ${current.product_id} value in blank space... so that i can pass my value to next jsp f...

Struts 1 ActionForm - retrieving a collection from pure HTML

Hi all I have (just like the rest) inherited some struts 1 code. I have had need to add a few more pages to this project. What I cannot figure out is how to map several distinct but similarly natured input elements to my ActionForm. Let me elaborate. I create a new <Input> element dynamically as the user inputs more and more items (I ...

Create a Maven 2 project with Struts 1 archetype

I would like to create a web project Maven 2 + Struts 1. Someone Would there be a tutorial or a website outlining the steps? Thank you. ;) ...