struts

Looking for a job scheduler for Java environment

hi, We are developing a web application using java,Struts2.0,Apache web server and a Postgres Database. I need a requirement to run a scheduler dynamically(Morning and Evening) so that i can insert updated data in to the database and generate the report on daily and monthly basis. please reply me soon as this is immediate requirement....

JSP Struts Performance/Memory Tips

I am working on a basic Struts based application that is experience major spikes in memory. We have a monitoring tool that will notice one request per user adding 3MB to the JVM heap memory. Are there any tips to encourage earlier garbage collection, free up memory or improve performance? The application is a basic Struts applicat...

How do i get a field value inside a custom Struts Validator, when the field's type is FormFile?

I have a form field of type org.apache.struts.upload.FormFile. I would like to validate the field's size with a custom struts validator. To get the field's value, i have used for a text field the next code: String value = ValidatorUtils.getValueAsString(bean,field.getProperty()); However, how do i get the value for a FormFile field? ...

Struts 1.3: How to set a default Locale in a web app ?

I have two or three i18n files in my struts application. I am able to switch between these by setting the Global.LOCALE_KEY variable in the session. Is there a way to set a default locale for the application (probably in the struts-config.xml file, I guess) ? Is the session the only place to set the locale ? Sure, I could intercept the...

How can I translate the validation messages of Struts 2?

I want to learn how to use Struts 2 and I created a simple application following a tutorial I found. I've created a <MyActionClass>-validation.xml file and I wonder how can I translate the validation messages to multiple languages? <field name="password"> <field-validator type="requiredstring"> <param name="trim">true</param> <...

Struts or Spring MVC or Struts & Spring?

I need some information to understand design decision: Is Struts a better choice than Spring MVC? I hear about Strus-Spring-Hibernae combo - Is struts used at MVC layer because its a matured framework than when compared to Spring MVC? Any one used this combination for projects or aware of issues? ...

How to create value objects from struts form beans?

I need to create value objects from struts form beans. Is it a good idea to use Bean Utils or create the VO manually? Anyone faced any isues with bean utils? ...

Struts and Spring together?

I am pretty new to both Struts and Spring. I need to know how to access a Spring Service in a Struts ActionForm. Even a pointer in the right direction would be appreciated. ...

Is there a struts config tool for Netbeans 6.5?

I have found Struts Console Tool but its development stopped in 2004, so it works with Netbeans 3.2. Is there a way to install it under Netbeans 6.5? Are there any options to edit struts-config.xml above the XML level? ...

html form fields as array elements in a struts form

What I would like to do is add dynamically HTML input fields in one page, and each one of them correspond to an element of a struts array property. Let's say I have a number of identical fields in an HTML page: < input type="file" name="myfile" /> and when the form is submitted, I want each field to correspond to an element in a Fo...

JSP code to Struts or JSTL tag

HI, I m doing the folling stuff in the jsp code I need to do it using Struts or using JSTL tag can any body have relevant idea please share.. The following is my JSP code <% Object category = request.getAttribute("categoryDetails"); Hashtable<String, Hashtable<String, Integer>> cat = (Hashtable<String, Hashtable<Str...

JSF with Struts

Has someone tried to integrate extended JSF-Implementations (like Icefaces or CaptainCasa Enterprise Client) with Struts (Classic), maybe with the help of the bridge Struts-Faces? Because my experience is that only the standard components are rendered without problems. Please tell me yours! ...

Logging user actions

The customer wants us to "log" the "actions" that a user performs on our system: creation, deletion and update, mostly. I already have an aspect that logs the trace, but that works at a pretty low level logging every method call. So if a user clicked on the button "open medical file" the log would read: closePreviousFiles("patient zer...

Difference between Atg and Struts

What is the difference between Atg and Struts? ...

I'd like to learn Struts.Is there any good web sites or books?

I want learn it for abc. And I'd like to know what's the difference between struts 1 and struts 2. ...

How to mimic struts validation using javascript/html/css.

For the past few years I've focused on back-end development so my javascript & css skills are lacking. I'm volunteering as a webmaster for a site and would like to spruce up the form validation (currently there is none). My problem: Basically I have one form with a few name fields, an email address and a phone number. When the form is ...

Vehicle Tracking System[java/j2ee]

I am interested in building a vehicle tracking system using GPRS. However, I have some questions for anyone who has done this before: Is GPRS the best technology to use? Any problems people are aware of? I am planning on using Java/J2EE - is there any better technologies? If someone has built this before - do you have some examples of ...

Dojo Struts 2.0.12

In my struts 2.0.12 application I'm trying to use s:datetimepicker but it does not render. Firebug error: dojo is not defined on dojo.require("dojo.widget.DatePicker"); My jsp page <%@taglib prefix="s" uri="/struts-tags" %> . . . . . . . . What's wrong? Did I miss something? ...

Setting a multi-valued parameter in javascript

Hi, When I submit a form in HTML, I can pass a parameter multiple times, e.g. <input type="hidden" name="id" value="2"> <input type="hidden" name="id" value="4"> Then in struts I can have a bean with property String[] id, and it'll populate the array correctly. My question is, how can I do that in Javascript? When I have an array, a...

Maven install folder structure problem j2ee (spring, struts ..)

Hi i'm using maven 2.1-SNAPSHOT as eclipse plugin. My project structure is like this: src/main/java    -model    -service    -action src/test/java    empty atm src/main/resources    empty atm src/test/resources    empty atm src/main/webapp    -js     -dojo    -META-INF    -WEB-INF      web.xml      appcontext.xml    ...