For a Struts 2 application I have used validations using the validation.xml.
In that I use various elements. How do I know what are the elements, subelements are there, and what are the attributes for them, what are the values I should use for the attributes?
I have looked in the DTD URL mentioned in DOCTYPE but there is no detailed in...
Hi
In my struts2 applicaion , i have a jsp page with "phone" feild in it for which i have applied validation using the
<field-validator type="int">
<param name="min">4</param>
<param name="max">20</param>
<message key="errors.range"/>
</field-validator>
int type min and max is not validating for me ,it is giving a negative number whe...
Hello.
I have a list and I show it with s:select without any problem but I want it's header value to be one of list's items and it differs on different runs. something like this:
<s:select list="roleList" name="role" headerkey="" headerValue="%{euser.role}" cssClass="textfield"/>
value of 'euser.role' is one of 'roleList' items but i...
Hi,
I want to know what is the best way to calculate the download speed of the clients using Java.
I have searched on the internet and found that I have to download a file from the server and calculate the time before and after the download completes and to make it more specific - repeat this action for 3 times so I can have an average ...
Hi,
This is a very general question, I hope you won't laugh or scold me.Anyway here it comes:
I am using struts2, hibernate, jpa and spring.I have four layers in my application:
1.Struts Action Layer,
2.Business Layer,
3.Service Layer,
4.Common Utility Layer
So I need to define a Custom Exceptions so that if exception happens at server...
If I try to add jqote2 variable declaration into struts2 tablig, such as name attribute. For "<" and ">" character, struts2 will escape them into < and > to client browser, and make jqote2 unable to locate variable defined in struts2 tag attribute, example below:
<script type="text/html" id="priceRowTemplate">
<![CDATA[
<tr>...
In struts2, after click on submit, the Java object will initialize again and it;s based on the field of the form. For those which did not exist in the form will set to null or empty. Am i am correct ?
IF like that, some resources suggest me to implement the scope interceptor. But, i nid to write in annotation since i implement wf ejb 3....
I just integrated Struts2 + tiles2 + Ajax in google apps.
I was just trying to work around with the Ajax function.
But when i call an action the entire page is rendered irrespective of the target specified in the
I have a MyPage.jsp
where
My Struts.xml mapping
...
Hello fellow geeks,
I have a problem with Struts2's ScopeInterceptor: after the action that is set to be the end of a workflow is executed the interceptor doesn't clear the session for the element that was set at the beginning.
This is how I have set up my classes and struts.xml:
struts.xml
<package name="build" extends="base-package...
Hi all
I am using struts2.1 and tiles 2.2 .when i run the application i m getting error like this
org/apache/tiles/definition/UnresolvingLocaleDefinitionsFactory.java
Stacktraces
java.lang.NullPointerException
org.apache.tiles.definition.UnresolvingLocaleDefinitionsFactory.getDefinition(UnresolvingLocaleDefinitionsFactory.java:102)
...
<action name="userLogin" class="com.cc.ad.web.common.UserLoginAction">
<result name="error">/user-login.jsp</result>
<result name="redirect" type="redirect">${retUrl}</result>
<result name="customerRedirect" type="redirect">${customerRedirect}</result>
<result name="supplierRedirect" type="redirect">${supplierRedirect}</r...
I'm new to Struts2 (Struts 2) and trying to get my custom interceptor to work. I think I set it up correctly. It's init method is called so I know that the interceptor exists. The action's execute method is called, so I know that the action is right. But for some reason the intercept() method on the interceptor is not called.
struts...
Hi, i have a problem, i have my login with Strits2, Tiles2 and Struts xml validations, when i run my webapp the first page is the login and the struts2 xml validator send me the error, how do i tell that for the first time do not validate until submit?
<action name="loginPage" class="com.webapp.login.action.LoginAction">
<r...
Hi
In the Struts2 application in the jsp page I have a feild where the user can select what ever option he want , i used struts:checkboxlist like this
<s:checkboxlist name="cust.communityList" label="Are You Inteterested In"
list="{'WebSpere Consultuing','Portal Consulting','SOA/BPM Consulting','Content Management',
'DataP...
I am getting error when i refer display tag reference from struts tag.
<display:table name="lstEntities" uid="prty">
<display:column property="propertyType.propertyTypeName"
titleKey="common.propertytype" />
<display:column property="propertyName" titleKey="common.property" />
<display:column titleKey...
Hi at all..
How can I set a different locale to my ?? I use Struts2 Jquery Plugin in bundle with MyEclipse 8.5,
and I find some different locales, but I can't set it!
Thanks in advice..
...
I'm trying to use Struts 2 framework for my Google App Engine project. I have configured the struts framework properly and I have created an action in struts-config.xml file as:
<package name="myproj" namespace="/myproj" extends="struts-default">
<action name="login">
<result>/login.jsp</result>
</action>
And I'm trying to access ...
Oftentimes when I see an index.jsp on a web application it just forwards to another url like login.jsp such as
<jsp:forward page="login.jsp" />
When using struts2, I want a similar index.jsp but I want it to forward to an action. How do I do this?
...
I have tried to use Applciatioon resource properties in dislay tag title key.Nothing diaplsyed.please help to proceed. i am using struts2.
...
Hello.
I have 2 select, I want the second select list loads based on selected value of first select. In another word first select is a list of objects, those objects each has a list of another objects. so I want load second list based on selected object of first select. I know that can be done using JQuery, but can I do this without Jav...