Hi,
How to achieve parameterized message in struts2.
in actioname-validation.xml i have
<field name="family.familyName">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message key="common.required">
<argo key="common.family" />
</message>
</f...
Hi. My website use struts and tiles.
I use this link to link to register form:
<a href='<s:url action="register" namespace="/vtv" />' >Register</a>
here is the register.jsp:
<s:form namespace="/vtv" action="register">
<s:textfield label="Username" name="username" />
<s:textfield label="Password" name="password" />
</...
The problem is simple, I don't know if has a simple solution: I'm using JPA to persist images to a database. I'm also using Struts 2.
I wrote an action that take the image from the db and sand it to the client.
The problem is that in this way, when people try to download the image on their PC, they have to write a name for the file (de...
Hi all,
I am developing a web app. using struts2 and jboss url rewrite valve as you see from the title. What i want to know is which are the neccessary jboss configuration files to configure rewrite valve settings?
Besides, I couldn't find any information in order to fix my non-english character problem while url rewriting. Some flags l...
Hi i have one pop called ManageData, form this popup i need to redirect into another page while clicking on add button.
<input type="button"
onclick="javascript:popup('loadaddPrtyCrnToStmt.action?statementId=<s:property value="statementId"/>','add')"
value=<s:text name="button.addMore"/>
From that page, if all operatio...
I want to change the content of a select box when the values in another select box changes.
Please tell me how to use dojo. How to call the struts 2 action & get the result through ajax.
...
My Action class have the following methods,
1.add
2.edit
3.loadEdit
4.remove
5.list
6.execute
in this i need to apply validation for add and edit..how do need to config in struts.xml.I followed,
<action name="editComment" method="edit"
class="com.mmm.ehspreg2.web.action.product.CommentAction">
<result name="su...
I'm having a problem creating a custom converter. It works if I type in the correct value, but if I intentionally type something incorrectly, instead of giving me the errors nicely, I get a long and mean looking stack trace.
Here is my converter:
public class CircleTypeConverter extends StrutsTypeConverter
{
public Object conver...
Hi all
If i wanted to store the struts2 tag checkboxlist elements in the database ,How do i save it in the database .I mean how do i work with the checkboxlist tag ,
like how do i declare it in the table .How do i use it ?
Thanks
...
I need to inherit paramsPrepareParamsStack inceptor stack into mystack and need to override vilidation interceptor parameters. How do i do it?
...
I am using the following date timepicker of dojo framework on my jsp, i am successfully accessing this value in my action class through beans.
<sx:datetimepicker id="smon" name="start_mon"
toggleDuration="500" toggleType="explode" value="%{'today'}"
displayFormat="dd/MM/yyyy"
cssStyle="margin-top : 15px;
...
I know that there are a lot of questions and answers exactly about this error on stackoverflow and other forums. But I still can not find the solution...
For speed reasons I have one utility class which loads all static data maps (for example months) depending on locale provided.
So this utility class looks something like this:
public...
Hello all,
I need to create a drop down menu in struts2 from List. How can I create an action class so that when a .jsp page is loaded, it populates the list first?
i found this link http://www.mkyong.com/struts2/struts-2-sselect-drop-down-box-example/ , it works too but for it work user must go to http://localhost:8080/Struts2Example/s...
Hi
I am trying to use struts2 dojo: autocompleter tag inside the struts2:form tag but the autocompleter tag is displaying out of the struts:form . Can't i use struts-dojo-tag inside the struts form tag ?
Thanks
...
I'm developing a Java project using Struts2 and Spring, among another frameworks. In the past I used displaytag to show data tables and to export data to pdf and xls files.
My doubt:
Is there alternatives to displaytag?
I would like to have pdf and xls export features to.
...
i am going to develop a web application using Struts,Spring and Hibernate. But i have no idea about any of them. Even i know little about JSP and nothing about Servlet. So my question is what to do? I have to learn all those things. But i don't have much time. Normally to learn something i read books on that topics or use tutorials. Now ...
Hi,
I am new to struts2, prior to this I have been using struts1.2, Spring and Hibernate combination. I have just started using Struts2,Spring and Hibernate application, but I seem to be plagued with interceptor exceptions,
There are two error which keep happening, all in different scenarios
1) 2010-07-26 19:50:58,031 ERROR org.apa...
background: I coded a struts2 ActionSupport class with ModelDriven. It's a hibernate/spring web app, using OSIV and attached entities in the view (JSP).
I received this email today from the architect 'punishing' me for putting an object
that had a reference to an attached entity on the struts2 valuestack via the
ModelDriven<E> interfa...
Error setting expression '' with value
'[Ljava.lang.String;@17e0b22'
ognl.ExpressionSyntaxException:
Malformed OGNL expression:
[ognl.ParseException: Encountered
"" at line 1, column 0.
above message shows up in my log file.Now I got rid of all the parameters with no names by disabling them and no param with blank name di...
layout:window-->tabpanel-->formpanel.
if i want submit formpanel,but have a lot formpanel,
i don't know how to do!
is layout problem ?
i'm java programmer.i use struts2+extjs...
...