I am using struts 2.1.8.1 and if i use struts2-jquery-plugin.2.2.2 datepicker dosn't appear. if i use struts2-jquery-plugin-2.0.0 it apperars but i can't use it with theme css_xhtml. Is there a way to solve this? I want to use it with css_xhtml theme.
...
I would like to know how the default value can be set in textarea , the scenario would be after a page refresh , or fail of validation bedore save operation.
<s:textarea name="desc" value="" theme="xhtml" required="true" cssClass="text textarea small"/>
value="<%= "Default" %>" , this code is not working out.
...
Hi all,
I'm trying to use StrutsTestCase for testing my Struts2 actions, but I'm getting always the "error" value back while executing the "execute()" method from the proxy. Here's the example:
public void testSpike() throws Exception{
request.addHeader("param1", "param");
ActionProxy proxy = getActionProxy("/action/to/tes...
Not able to access static fields with OGNL with struts2
<s:checkbox name="operation" fieldValue="@com.xx.xxx.webapp.action.EntryAction@OPERATIONAL" />
The above turning to HTML as below
<input type="checkbox" name="operation" value="@com.xx.xxx.webapp.action.EntryAction@OPERATIONAL" id="entry_operation"/>
instead the static consta...
hi I wan't to now how to use the search filter, specifically the multi search, independently from jqgrid. i wan't it to be able to post its values to my action via a struts 2 link or button and have additional option not included in the column of the grid of a jqgrid column. thanks
...
Hello.
I want to show a property of an object in my Jsp page. the problem is that this property is the name of a label in my resource bundle and the only way I know is to use <s:text name="labelname"> but now that it's a property of an object, I don't know how to do this. This is a part of my code, 'brandList' is a list of brand objects...
with struts2-rest-plugin my app works well without any xml configuration files or annotations, i get free from messy configurations and get pretty nice URLs following REST-style. meanwhile struts2-spring-plugin also helps me a lot in business compontents dependency managements for its IoC feature. But what a frustration, when i combine s...
I have an arraylist of string private ArrayList strarray = new ArrayList(); . I have to map this String arraylist to dropdown(s:select). give me the syntax for s:select tag to display strarray as dropdown.
...
According to articles like:
http://www.oreillynet.com/onjava/blog/2007/06/easy_ajax_with_struts_2.html
and
http://www.firstpartners.net/kb/index.php/Easy_Ajax_using_Struts_2
it should be easy (out of the box) to use Ajax with Struts 2, but all of the examples leave out details. Does anyone know of any tutorials that include all t...
Hello,
I'm working with Struts2 and I'm having an issue with it's error handling mechanism.
What I would like to do is to get the stackTrace and exception
attributes in order to use it inside an action class (as for printing on
the console) or inside a JSP page (without using taglibs).
Bellow there is a snippet of my struts.xml file:
...
I am using struts2 application with the jsp page ,
i am using struts-tags:textfeilds , and i have a submit button in it ,
i have applied validation for them , when i hit the button the error messages are
appearing at the feild level(ie.beside the feild ) , i have used the to make the error messages appear where ever i want , but the...
I'm using JSP & Struts2 for development.
When I login, I call an action, which inturn takes some time to load the data on the page.
While the data is getting loaded, I want to show a busy cursor and once the page is completely loaded, remove off that.
Also I'm using jQuery to a large extent. Is there a way to achieve this?
...
I have struts2 application with struts2 version 2.0, There is no error on server side or client side but frequently its showing blank pages while browsing. It seems like browser could not render the html page. These blank pages are not shown on specific pages but randomly shown on different pages.
I have been told to fix problem but co...
I have a jsp page which loads information into various tables depending on query parameters however I want to be able to iterate through the returned lists using the tag and evaluate for each iteration if a value from the DB is == to "1" using then do result 1 else do result 2.
The code I have tried but fails to work correctly is:
...
Hello,
i'm trying to compare a value to an Enum in Struts:
<s:if test="%{myValue == com.app.core.Values.ALL}" />
where myValue is declared in the Action and com.app.core.Values is declared in another project that is referenced to this one.
Any tips?
Thanks
...
I have a Struts2 application ,In the jsp page i have struts-tags: textfeilds which are required and a submit button ,In which i have a "email" feild for which i used spring mail bean and could send the mail properly .
When i hit the button with out entering the feilds then i get the validation errors ,till here its fine ,
The problem ...
I'm getting a tomcat 404 error in my application when I hit a url with a dot.
Something like http://www.example.com/homePage.ac
I've got a default action defined and it catches missing actions, but it doesn't seem to catch these type of URLs.
I tried defining a page in web.xml, but my error page isn't a static page, it's another acti...
Hello,
I'm working with Struts2. Here's a snippet of my struts.xml file:
<action name="*test" class="fend.config.TestAction" method="{1}">
<exception-mapping result="fail" exception="java.lang.UnsupportedOperationException"/>
<result name="success">/registerCrisis.jsp</result>
<result name="dummy">/d...
I need to modify the web start up service to query some database objects and put it into the session when the server(JBOSS 5) starts. Any idea what is the best way to do it? I am using struts2.1.6 + spring 2.5.6 + JPA + Hibernate.
Thanks.
...
I don't know how to specify the content of remote dialog. What is the difference between local and remote dialog?
...