sx:datetimepicker id="sDate" label="Date de debut" displayFormat="yyyy-MM-dd" weekStartsOn="0" required="true" valueNotifyTopics="/sDateValue" startDate="testdate2" />
I tried to add a limitation of date and when i set the first date posible nothing works anymore.
If you chose a date it is not selected.
...
hello,
in struts2, i create a simple appln.I use client side validation(using ActionClass-Validation.xml),when i get validation error it displays the message well..but a error repeatedly occur it display the old and new message again and again..how can i solve the issue?
user name: xxx
password error
password error...
We employ a test to filter out candidates who should not be applying for a position. The tests are designed to be very low effort for those who should be applying and too much effort for those who are not experienced.
Here is an example of a test we give to a candidate applying for a job of “java web application developer on an Oracle p...
In case of problems on page I just get a blank page, no stacktraces in console etc.
Is there a way to fix this, or improve the diagnostics?
...
Hi
I'm using struts 2 and I'd like to read some custom-defined parameters (global variables), preferably from web.xml or some custom ".properties" file (i.e. not hardcoded in the Java sources). This problem has been driving me mad for the past half hour as I can't google any reasonable solution.
What is the best way to do this? I find ...
Hello,
I have a Model-Driven Struts2 action that provides correct JSON response. When I re-structure the action I get an empty JSON response back. Has anyone got inheritance working with Struts2 Model-Driven actions?
Ive tried explicitly setting include properties in struts config:
<result name="json" type="json">
<param name="inc...
I need to develop a tree to display the hierarchy of categories on a retail site. For example
-Clothing
- Men
- Trousers
- Shirts
- Women
I'm working on struts and using the struts dojo plugin to use this tag :
<sx:tree id="root" label="Category">
For the other child nodes, the data is stored in a database. If I use
...
I have a html form with action attribute pointing to struts action
Here is a JSP
<s:select name="roleId" id="roleId" list="roleMap" headerKey=""
headerValue="SELECT" theme="simple" value="%{roleId}" cssClass="dropdown_menu"></s:select>
It generates html like
<select name="roleId" id="roleId" class="dropdown_m...
I'm using struts as a framework for a web-app. The following code runs inside a loop where I access the database to retrieve values to be used as nodes for a tree.
<s:set name="categoryValue" value= "%{'<%=rs.getString("category")%>'}">
</s:set>
<sx:treenode id="child1" label ="%{#categoryValue}"/>
The error I get is
"/jsp/tree.j...
My issue is that i have an annotation in Struts2 action class like
private String[] origfilenofrom;
@FieldExpressionValidator(fieldName="origfilenofrom",key="",message="File Length should be 12 for old file format and 15 for new file format",expression="checkorigFileFormat(origfilenofrom)")
now my mehtod is
public boolean checkorig...
I have a User class that has a String username in it. I have a list of users that I'm trying to display in a table using
<s:iterator value="users" id="list">
<tr>
<td><s:property value="#list.username" /></td>
...
In Struts2 you can change the method used for execution for an action by changing the method attribute in the following line:
<action name="registerVal" class="cz.vutbr.fit.pishotel.model.action.Register" method="execute">
Is it possible to change the validation method used as well, or is the validate method name hardcoded.
...
I've seen a few questions like this, but mine is a bit more specific so I hope this isn't considered a repost.
I am working on a website that is built with struts 2 and hibernate. I need to dynamically populate a drop down menu using data from a sql query based on an option selected in another drop down menu.
So basically when the firs...
Hello,
I'm working on on a site built using struts2. The vast majority of our targets generate xml, so mapping the result to a jsp page makes sense. A couple of our targets actually generated binaries. I'm wondering if there is a convenient way to say that the result should come from a servlet/controller instead of a jsp.
Obviously ...
I'm coming from Spring MVC and need to do some stuff using struts2.[a very beginner]
In Spring MVC we are using ThemeResolver to get client specific message properties.
we have two clients 'abc' and 'def'.
I was used to do it like this.
in themes folder[another message bundle] I have abc_en.properties, abc_ar.properties and def_en.pr...
<action name="actionA" class="com.company.Someaction">
<result name="success" type="redirect-action">
<param name="actionName">OtherActionparam>
<param name="paramA">${someParams}</param>
<param name="paramB">${someParams}</param>
<param name="aBoatLoadOfOtherParams">${aBoatLoadOfOtherParams}</param>
</result>
</action>
In th...
I have something that looks like this:
<s:select ... onchange="javascript:alert('testing')"/>
But when I run it and look at using firebug, the onchange is not there and so the javascript is not executed. Any ideas? This is driving me nuts.
...
I am trying to figure out what is going on here...
I have an action class with the standard getters/setters and lets say i have one for a property called 'category'.
in my result mapping for the action in the struts.xml file, i am trying to add the value of this property to the URL for an action redirect.
in my action class, i can ...
Using struts2 with jsp with standard struts tag libraries.
I'm trying to dynamically hide a DIV on page load, but still send it to the browser. This is so I can show it later via javascript.
The request objects one and two are not easily referenced via a jsp:usebean tag. (They are enums and cannot be instantiated) I tried using a ...
I have been workin on this for a while and I think I really need help!
I am using struts 2.1.6 with struts2.1.6_dojo_plugin+ Spring.
This is my Java Script code in the Page
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%><head>
<sx:head cache="true" />
<link rel="stylesheet" href="/css/default.css" media="screen" type="text/css" />
<scr...