Hi!
I have a form like this, in a .jsp page (using Struts + Tiles):
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" p...
I would like to know how many use/used (if you are no more a struts 1.x user) automatic validation in struts 1.x?
I have read about some drawbacks that may apply on per case to case basis. For an interesting discussion on the validation scenario's please have a look here:
http://www.learntechnology.net/content/struts/validate_manually....
Setup: I have a Struts web application where I use displaytag elements to do all of my table work. Each column is sortable.
Situation: When I click sort, on a long page, it sorts, but drops you at the top of the page.
Question: How do I use an anchor or some other method to come back to the table rather than the top of the page.
Additio...
i am using diaply tags library for displaying my tables.But i cant use the <% %>
tagst there.If i try to us it it gives me error.but i can use tag there.
If i try to use followin code in my jsp it give an error sayin shoul hav a matcheing ending tag.
i have follown java code in jsp
List<Course> = (List<Course>)request.getAattribute("c...
If I have an action where the result is a redirectAction to another action in a different class, is it possible to get validation errors to display in the resulting action? E.g. in the following example, if a user executes actionA (which has no views associated with it), and there are errors, is there any way to display those errors in t...
Hi all,
in my file "struts-config.xml" I've wrote:
When my application start load successfully application.properties.
How I can reload this properties (because I wanna change a lot of property wrote inside file) without restart application?
Thanks a lot.
T.
...
In struts I notice there are two different ways to access variables. I am curious what the difference is and when to properly use each one. For example, suppose we set the variable height like so:
<s:set var="height">300px</s:set>
Now I can use it two ways:
<div style="height: ${height}"> </div>
..or..
<div style="height: <...
I have a user object that has a one-to-many relationship with String types. I believe they are simple mappings. The types table hold the associated user_id and variable type names, with a primary key 'id' that is basically a counter.
<class name="Users" table="users">
<id column="id" name="id" />
...
<set name="types" table=...
We are plannnig to upgrade the UI framework for our 6-8 year old application written using Struts/JSP/EJB to ExtJS. Just curious as to what is the most popular Java technology on the server people have been using. We were looking into several alternatives like
DWR
RestEasy
Restlet
Struts-Json
We are diving more towards using DWR but ...
Hello there.
I have the following problem in Struts 2.
Let's assume i have a class like this
class User {
private String name;
private String address;
public String getName() { return name;}
public String getAddress() { return address;}
}
and a list of users available on ValueStack named : users
and a...
As I asked I am problem with using DTO,I want to extract data from FormBean and put it into DTO and vice versa,but I don't know the correct way to do it.
please help me related to this issue.
...
I would like to render the same JSP for multiple Struts Actions. I'm having trouble because when rendering the JSP, the bean name is different depending on which Action was called. So, I can't call something like:
<c:out value="${myBean.myProperty}" />
because the bean isn't necessarily called myBean.
Currently, I've been getting ar...
I have checked the validator source code and the examples of user-defined rule in the book "Jakarta Struts Live." When people define validator rules in validator-rules.xml, the following declaration for "methodParams" seems to be the only choice:
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAc...
I make a web application to upload a tsv file
JDK -> 1.4
Struts -> 1
Resin -> 3.0.9
TSV file parsed with "\t","\n","\r"
Validation is.
1. Is the file name along a naming convention?
2. Is it TSV file?
How should I do validation of a picture or Office document similar to TSV?
...
I'm asking this on behalf of one of my students - "Does anybody have an idea how to convert JSP Struts to Velocity Struts?"
...
Is it possible to do something like this:
<bean:message bundle="MyBundle" key="mytext.text"
arg0='<input type="text" name="text" value="<%=num %>"'/>
I know that it is possible to pass an HTML element, but I will end up with an input box with the value "<%=num%>" instead the actual value of that variable. What am I missing?
...
Hi,
Since there is the Double-checked locking issue so we have to use synchronization to guarantee the concurrent access to the following method (org.apache.struts.util.MessageResources class) :
LAZY INSTANTIATION
public synchronized static MessageResources getMessageResources(String config) {
if (defaultFactory == null) {
...
hi,
i have a selection box in struts1 jsp file.In that box the key values i have to get from the properties file.Any idea please
Thanks
Usman.sk
...
I have a form that looks somewhat like this:
public class MaintainForecastInputForm extends ActionForm {
private MainMenuForm mainMenuForm = new MainMenuForm();
public SelectProdLineAssociationForm selectProdLineAssociationForm = new SelectProdLineAssociationForm();
private EconometricDataForm econometricDataForm = new Econome...
Hi is it the best, if I need to trim what user sends in a form to trim it in ActionForm?
e.g:
I have MyActionForm class in which I have property
private String name;
public void setName(String name) {
if(name!=null) {
this.name = name.trim();
}
}
Or is there any other good way?
thx.
...