struts

Object Property Editor Framework

I would like to achieve the following in a configurable manner (that is little or no code modification in order to change behavior) : Problem Statement : a) For each part there are a set of key value pairs that can vary b) The key is a static string label and the value can be one of (text, single select list of values) c) The system ...

Download operation from Weblogic Portal 10.3

Hi, i'm stuck with a problem which involved Weblogic Portal, an Struts 1.3 Portlet and a Download Operation. Normally a download operation can be triggered by: response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filename=file.csv"); response.setHeader("Content-Length", Str...

error in tagdirective

<%@ taglib uri="/WEB-INF/LIB/struts-html.tld" %> Error displaying invalid taglib.. no setter method for the "name " in tld. Please help. ...

Error in JSP taglib directive

I receive the following error while deploying in weblogic: Parsing of JSP File '/pages/RegisteredEmployee.jsp' failed: /pages/RegisteredEmployee.jsp(5): Error in using tag library uri='/WEB-INF/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attr...

how to include tiles definition attributes in an inserted page

I have a tiles-defs.xml that has these definitions... <definition name="masterLayout" path="/WEB-INF/tiles-layouts/globalLayout.jsp"> <put name="pageTemplate" value="over-ride for each page" /> </definition> <definition name="childLayout" extends="masterLayout"> <put name="pageTemplate" value="/WEB-INF/tiles-layouts/child/layou...

Examples of Websites built using Spring, Play Framework, Struts

Hi, I am a beginner in Java and going to build a webapp that allows developers to work online on their projects. Something of the sort of bitbucket or github. I have developed sites using PHP and moving away from it. I was suggested that I should go with Spring Framework as it has a good learning curve and that it will probably look go...

Open a new window from a button ?

hello, i want to open a new window from a button, but in this new window I retrieve an address from my servlet (Action) <html:button property="bouton" styleId="bouton" styleClass="boutonYellow" style="border: 1px solid rgb(0, 38, 97); width:200px;cursor:default;" disabled="true"> <fmt:message key="name"/> </html:button> ...

Struts Jquery Plugin: Remote Dialogs With Parameters

I have a somewhat complicated issue. I have a grid defined (using the Struts2-JQuery Grid Plugin). One of the columns has a custom formatter that calls a Javascript function to put a button into that column. (Note: I absolutely HATE doing it that way). The point of the button is to open up a dialog box. This dialog box contains a check...

rewrite URL to affect "save as" filename

Hi folks, My application is in JSP/Struts and running on WebSphere. I don't have access to the server /really/ so I'm trying to do all this from within the app itself (Struts actions & config, JSP, etc). I have a page that displays links for PDF documents that the user might want to look at. When they click on the link, it is forwarded...

display tag in struts

How to use display tag in struts? can any one give a sample code or tutorial link? thanks in advance Bhagyaraj ...

Error in my struts Action class

I have a JSP where I am showing date and description from database. Every entry has a unique id, but I am not showing on the page(showing checkbox) These entries are thrown using a "logic:iterate", so the number of rows is always changing based on entries. Now these fields are shown as a text field so that the user can also update the da...

OSGi vs Spring vs Struts vs EJB vs. Hibernate -- a totally newbie's question

I am not familiar with these "framework" "components" at all, but can someone give me a 101 introduction about what the relationship they are to each other? Basically, I want to know roughly about: what and what are counterparts to each other what and what are complementary technology (e.g., A as a framework can be used with B as a com...

Dropdown for Integer array using html:select

I have been working on stuts app where I'm using an Integer ArrayList. I need to create a dropdown to list the arraylist. I have been trying using html:select --> html:optioncollection. But I am getting error of Cannot create iterator for com.SelectTagForm@18488ef. code: <html:optionsCollection name="selectTagForm" label="grade" val...

datasource is not working in struts

hi.... I am try to get some values from table using datasource in struts but it gives exception : type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: java.lang.NullPointerException org.apache.struts.action....

how to use getdatasource(request) method

hi....new to struts i try to get database connection using datasource. any one tell me how to use getdatasource(request) method in struts...give me some example Thanks in Advance Regards Mouli V ...

liferay instantiable struts portlet question

Hi all, It is possible to reference a portlet, which is instantiable and is already three instances in the same page, via URL? The problem is that I don't know the instanceID when I create the URL, therefore when I click on the link, Liferay doesn't find the portlet. Thanks. Udo. ...

Java: How do you use key/value datastores like memcached with Java property file code?

We are trying to move away from property files as files on the file system and more want to use a server based key/value store. Does anyone have any code to do this with Java. Are there systems already built to connect to a server like memcached and build a property object with key values? I want to do this in a struts web based proje...

Array of objects in Javascript - Struts Forms

This is for a web application using struts. I have an array of objects in my Form that gets listed in a table. A user can add/edit/delete from the table. How would I send the changed table back to the Action class? Will I need to create a string or array of strings, and parse that into an object? Is there a way that java/struts handles...

Deleting an item from an indexed property - JavaBeans question

I'm working with indexed properties (using struts and java/jsp). We have a dynamic table that can add/delete rows/items in the table. The adding of rows works as intended - I see the new rows in the form in the action class. The deleted rows do not get set (obviously), but they are also not removed from the list. I have implemented a voi...

how to start with struts ?

I am new to java can anyone give some ideas about struts and what are the requirements are needed.and where we can download that ? ...