I have following situation:
I use Struts2 as MVC cobtroller
I use Spring as object factory
I implemented custom action mapper, I have configured this as a bean in my spring configuration.
How can I tell Struts to use this bean as an action mapper?
I tried top set:
struts.mapper.class=beanName
in struts.properties but this does...
Hi all,
I am new to Spring aop and I decided to use aop to track my Struts2 Action class execution time. I have done the following things. But while running the application setter method of the action class is not called.
Here is my code.
xml configuration:
<aop:aspectj-autoproxy/>
<bean id="myAspect" class="abc.xyz.ActionClassAspect"...
I have set a property in Action class as follows
public class HelloWorld{
public String execute() { ANNOTATION #1
setCustomGreeting( GREETING + getName() );
return "SUCCESS";
}
private String customGreeting;
public String getCustomGreeting()
{
return customGreeting;
}
public void setCustomGreeting( String customGr...
Hi guys,
I am trying to create a login page with Struts 2 as my first app. My design for table User is as follows.
User(username, password, firstName, lastName).
There are two pages I want to create, login and register. For both, i plan to use only one table. For login page, How would I go about passing username and password to the acti...
where and how to implement the validate(){} method for validating the data on the form, in struts 2, please help me, Thanks in advance.
...
I have created one drop down for pasize selection.
<s:select name="pageSize" cssClass="drop"
list="#actResultLimitValue.lstEntities" listKey="code"
listValue="value" onchange="document.forms[0].submit()">
And pageSize attribute is there in Actionclass. I used this variable in display tag. Nothing happend. i am getting error.
<di...
Referencing my previous question about a good language for a deployment stack, we settled on Java / JSP. While with pure Java most of the team is up to par we have a few people who haven't done JSP Servlets, and none have used Struts to much extent. Where would you start with this? Would it be worthwhile to ditch Struts in favor of build...
Hi,
The below piece of code was written in struts-config file.but i am not able to understand it.
<action path="/showWelcome"
type="com.code.base.presentation.struts.actions.StrutsIoCAction"
name="LoanDetailPageLoadForm"
parameter="GET_WELCOME_PAGE"
input="welcomePage"
va...
How to invoke getter() and setter() methods in struts?
...
I have two issues with struts2 that are somewhat related. I should also mention that all of my jsps are in WEB-INF so they can't be directly accessed by typing in ../page.jsp, but they CAN be accessed by typing in ../page.
First, lets say I want to implement Registration functionality in my website. I have register-form.jsp. This i...
Hello,
I have this JSP where I'm putting some values from a property to an JavaScript array... it looks just like this:
<s:iterator value="parts" status="status">
parts[<s:property value="category.categoryId" />][<s:property value="piezaId" />] = ['<s:property value="descripcion" />', '<s:property value="disponible" />'];
</s:itera...
<package name="queryReports" extends="struts-default" namespace="/queryReport/ajax">
<action name="auditLogQueryReport" class="com.xyz.customersolutions.ess.webapp.action.common.BaseAction">
<result name="success" type="redirect-action">
<param name="actionName">runReportReport!show</param>
<param name="names...
I am currently upgrading our web application from Webwork to Struts2. I run to problem with freemarker that I am unable to resolve.
In FTL file I have:
<#assign c=JspTaglibs["http://java.sun.com/jstl/core"]>
When rendering the page I get:
JspTaglibs["http://java.sun.com/jstl/core"] is undefined.
I use other taglibs (e.g. sprin...
Hi , All
I want to create a dynamic Tree structure using struts 2 dojo. I am trying following code for creating such tree but it doesn't work and goes into infinite loop. Please help me out as soon as possible...
...
I want to reload the table of data from server without refreshing it. How to achieve it using tsruts2 and ajax.?Please help.
...
Hi
I have an action Registration.java which is used for users to create an account.
this action class has two methord: doList and execute.
doList gets data from the database and renders the initial jsp page with some s:select tags.
execute do the actual business logics.
in the struts.xml:
<action name="InitList" method="l...
I'm using javascript with a json library and running into a little trouble. Here's my json output:
{
"artist": {
"username": "myname",
"password": "password",
"portfolioName": "My Portfolio",
"birthday": "2010-07-12 17:24:36.104 EDT",
"firstName": "John",
"lastName": "Smith",
...
i am new to struts2, tiles. I have created remove.jsp popup window to remove the child objects associated with parent. When i click remove button in popup, removeConcern method is not getting called. what will be the problem. ?
Remove.jsp
<s:form action="removecrnfromprty.action">
<s:hidden name="propertyId" value="propertyId" />
<div...
Hello.
I have a tree structure data that I want to load dynamically using <s:tree> of struts2. It loads completely ok. the problem is it's just for displaying, I can't figure out a way to make each item a link or append a link to it or anything. So there is no way to add new node somewhere deep in tree easily. Does anyone have any idea ...
Hi I'm using struts 2 with JQuery plugin (http://code.google.com/p/struts2-jquery/). I'm trying to load a target div, i have load the jar, i've put the tag :
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<sj:head/> in the head,
this is the script
<s:url id="ajaxTest" value="listDossier.action"/>
<sj:a id="link1" href="%{...