struts

Trouble passing JSP values to ActionForm (Struts)

Hi, I am a newbie to Struts and have inherited a problem. I am trying to pass 3 values contained in the same table cell from a JSP to my ActionForm class. The first value (and others in the JSP) work fine, but for some reason the other two do not. I have the appropriate getters and setters, but only the first (newrecnum) shows up, t...

What are the good open source struts projects for which I can contribute

Hi I want to know the Good open source projects that run in struts for which i can contribute as a developer. I am not sure how to approach and where to look for. I would be great full if someone can assist me in this regard. Thanks Rahul ...

How to create temporary files on the client machine, from Web Application?

I am creating a Web Application using JSP, Struts, EJB and Servlets. The Application is a combined CRM and Accounting Package so the Database size is very huge. So, in order to make Execution faster, I want prevent round trips to the Database. For that purpose, what I want to do is create some temporary XML files on the client Machine an...

struts validation problem in IE

I am using Struts 2.1.8 and facing validation problem in IE. I am getting the following error An exception occurred: Error. Error message: Invalid argument. I tried out to figure out the cause and found the following. My generated javascript code is: field = form.elements['district.name']; var error = "Enter only alphabets for...

Why JPA injection not works on @PersistentUnit

Hello colleagues! It is continues of question ( http://stackoverflow.com/questions/2570976/struts-2-bean-is-not-created ) I'm using struts2 + toplink in my very simple web application under Tomcat. On the page I would like use iteration tag. That is why I've declared some factory (SomeFactory) that resolves collection of entities (Enti...

Using Struts with SpringSource dm server gives Http Status 503 error

Hi, I developed an enterprise application using spring, struts and hibernate, now I want to transfer it to work with OSGi dm server. I found a book "Pro SpringSource dm server" where the author has explained a way to migrate WAR to OSGi bundles. I successfully migrated the application given in book. The first step of migration says th...

Controller inside MVC architechture

Hi All, I want to know about the controller in struts MVC architecture. Does struts-conf.xml file is a controller. I know that it is a part of controller, but someone is saying that it is a controller and at what extend it is true. Please explain it. Thanks Vinay ...

Changing output of Forms with Struts+Freemarker

I'm working on a Website with Struts2 and Freemarker. Whenever I add form tags such as: <@s.form action="foo"> <@s.combobox (...)/> It generates a bunch of html/css/javascript that I don't need. Is there any way I can specify that no extra elements should be generated or do I really need to go into Freemarker.jar and edit...

Specifying Struts templates source

Say I'm using a form with a text-field. <@s.form action="login"> <@s.textfield label="E-mail" name="email"/> <@s.submit value="send"/> How can I specify that the text-form should be generated by a custom template (text_login.ftl) rather than the standard text.ftl? ...

Struts field is prepopulated with the recent value

We had an application that uses struts. We are using struts .. html:text for a text box and value of this is prepopulated with a recent value (not with the initialized value) even when the member is logged in after logging out. The worst part is other members also able to see the value entered in the textbox by the recent member logged ...

Struts ActionError

Hi all. Anyone knows why the code below doesn't compile? The reason is that it could not find symbol for ActionError. Thanks in advance. package com.hbs; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import javax.servl...

slow Rendering data into table using display tag liabrery

I am using displaytag 1.0 in my Struts base application. I have 5 million rows to showing reports of all rows data by paging with 50 records. It takes 5 minutes to rendering the data. Can we reduce this one? Please suggest how make it with in one minutes. ...

how can we achive struts tiles reusability?

I have some doubts about tiles 1) What is meaning of reusability of tiles? 2) Can we use same tile(jsp --> Which display dynamic data using struts tags) in two different Actions (Different actions contains different form beans ) ? ...

onclick of a link get the list and display using display tag in struts

Hi All, I have link on click of which i want to get the entire list from database and display using display tag.I don't have any problem in using display tag (displaytag).,But i am not getting how would get the complete list on click of a hyperlink in struts. As on clicking the link i am moving to a jsp and having a display tag where i...

display tag scope issue with pagination

Hi All, I am using display tag for pagination ,i am reading the list from request scope and displaying it,i have kept the page size as 1 and the list hast 4 values,if i press next i get nothing to display this is the case with request scope but not with session scope how can i tackle this problem? ...

Problems with deploying struts annotations in ear file

I am attempting to make use of the struts 2 annotations, what I have found is if I deploy the app as a war file everything works fine but if I deploy my war as part of an ear file none of the struts annotations work only the actions defined in struts.xml work. I can't seem to work out why deploying as a ear file annotations don't work....

Java seeking referer

I am using Struts and Java. The problem is that I have a page with some results. The user can click an item and edit it. I want after editing the user to be able to return back to the results. Back isn't broken but if he submits the form for update he would have to click back 2 times I think and may have problem. I have tried header("Re...

Convert an Image object To FormFile object

It's possible to convert an Image object To FormFile object ..? ...

jcaptcha integration with struts

Hi, I'm trying to interate a struts 1.3.8 app with jcaptcha-1.0; I added the jcaptcha jar to the app lib and added <%@ taglib uri="jcaptcha" prefix="jcaptcha"%> to my form The app couldn't find the file, so I added the following to the web.xml file <taglib-uri>jcaptcha</taglib-uri> <taglib-location>/WEB-INF/lib/jcaptcha-1.0-all.jar...

get server ip in java (Struts)

hello, i want to get ip server where my tomcat is execute in java (Struts).? ...