struts

TinyMCE Line Returns in Internet Explorer

When editing text with the tinyMCE editor in Internet Explorer, if I add additional blank lines between paragraphs, the following HTML code is generated by tinyMCE: <p>..</p>..<p>..</p> The setter in my Struts 1 ActionForm reports receiving the following string: <p>Â </p><p>Â </p> This problem does not occur in Firefox, but only wi...

Struts 1: Accessing form values with bean:write

Greetings, This is a simple question I believe, but nonetheless it is stumping me right now. I have a TestForm class with your usual getters/setters...for example I have an "id" field with "getId" and "setId" methods. My form is populated in an action class correctly (which I know from stepping through the Eclipse debugger) just befor...

how to start, where to start

hi expert, i'm new for web application, previously I did mobile app, now start doing web app, I'm intermediate for java,jsp,servlet, and plan to learn hibernate, spring, struts, ejb, which one i should learn first and where to start, bit confusing thanks in advance ...

Extending Struts ActionServlet and RequestProcessor

Hi, Can anyone tell me the scenario in which I should extend ActionServlet class and RequestProcessor? I have read in the Struts documentation that it can be done, but I am not understanding in which situtaion. Regards, Aashutosh ...

Dynamic URLs w/ Struts 1

I'm using Struts 1. I have a list of stores in our database. The store table contains store id, store name, url friendly store path, store address. For example, "1; Store 1; the-wonderful-store; 52 Main St.", When a request comes in for /store/the-wonderful-store.do, I want to grab "the-wonderful-store" and query the DB for the store...

struts, hibernate, mysql - char encoding problem

Hello, I have a web app that gathers some data from the user and saves them to a mysql database. The problem is that for a String like "Ajánlat kiküldése", what gets stored to the database is "Ajánlat kiküldése". For my database, i have DEFAULT CHARACTER SET utf8. For my tables i have DEFAULT CHARSET=utf8. In my hibernate.cfg.xml i...

Label text based on the locale

I want to display the label name depending on the Locale (like English or French). I have two properties file: messages.properties: customer.name=Name messages_fr.properties: customer.name=Nom I have an array list in a Java class. In this list I want to store the values depending on the locale: arraylist.add(new ListItem("CustomerNam...

jquery problem please help

hi, i am using jquery using div means when i select from one select box then data have been populated into the next select option but there is on big problem ie. when i hit the submit button from JSP page the action have called abc.do, and response back on the same JSP page, but this time the select option do not have a value. it flushes...

Securing /admin/ in Struts 1

I have a Struts 1.1 web application and now it needs an admin tool. I need /admin/* secured so that only registered users can login and view its content. The data store is MongoDB. Is Spring Security my best option for securing my site? Why? And does anyone know from experience whether Spring Security 3 and Struts 1 works fine t...

Struts1.x and tiles1.1 problem

Hi folks, I am trying to integrate struts 1.x with tiles 1.1 but I am facing problems! Here's snippet of struts-config.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"&gt; <struts-...

Activity display dynamically depend on the locale on Struts 2

i want to display activities dynamically which can be increase or decrease on struts 2 and that depend on the Locale (like English or French) . dynamically means user can be add or delete activity at run time. I have two properties file: messages.properties: activity.name=activity messages_fr.properties: activity.name=activity_fr for...

Way to get client download speed

Hi, I have to tell to the user in a web application(using struts) the download speed. What is the best way? For the moment I simply have a .jsp filled with java scripts and I calculate the time it takes to the user to load this .jsp(I make this action 3 times and take the average speed). It worked ok when I had slow connection speed(un...

Two request parameter in struts2 "redirect-action" result type.

In the Below code, <result type="redirectAction" name="success"> <param name="actionName"> loadManagePrdtprty{1}?prtycrnid=${prtCrnId}&exitWindow=${exitWindow} </param> </result> application is not getting start..What will be the problem. ...

Struts logic:iterate

I'm using struts logic:iterate and I need to change the style on the last row that it writes out. I have a bean:size, and and indexId on the iterate tag, but I can't figure out a logic combination to say if bean:size = indexId because size is the size of the collection, and the max indexId is always going to size -1 because of starting ...

Variable number of fields in form using struts 1.X

Hi, I need to build a form that loads a table that in each row contains a checkbox and an input text (the number of rows is variable, because it's loaded from a db). So my questions are: What fields should the associate formbean have ? ArrayLists ? One HashMap ? How can I know (once the form is submitted) what checkbox was selected so ...

Use standard jsp/servlet inside struts app

Hi, is it possible to embed a "standard" jsp and its associated servlet in a struts 1.X app ? (It uses no action form nor bean). If so, is there any special tweak needed ? Thanks ...

displaytag library and selected checkbox values

I am using the displaytag library to display a list of "permission" objects. The permission object contains an id, name, value, and associated application ID. When creating a "user group" one sets the name of the user group, the description, and selects the permissions to add to it by scrolling through the list in the displaytag table ...

iReport chart export in HTML format

I am using the iReport to make the JRXML file. To export this data using Java Struts, I am using the following code. public ActionForward reportExport(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { String reportType2=req.getParameter("reporttype"); System.out.println("r...

logic:equal slow the performance for showing 10000 records

I am having 10000 records in jsp page 32 columns 29 colums i am using and it is slowing the process any other way Whether slows down because it is checking for every row. user dont want pagination he needs to show all 10000 not 1000 records I have a datalist which iterate , within the iterate loop i gave the logic:equal conditio...

Struts2 validation of indexed textfields possible?

Hello. What is the correct way of validating indexed textfields with the built in validation framework in Struts2? For example sth. like: <s:textfield key="names[0]" /> <s:textfield key="names[1]" /> <s:textfield key="names[1]" /> I don't want to replicate all the simple built in validators just for validating such simple indexed ...