Hi all,
I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I
have the following problem:
I have an entity bean, say Event which has the following 3 properties:
id, dateCreated and data
data is already a json string saved in the database.
e.g.:
Event data:
{"id":1003,"username
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
OrganisationFo
Hi all,
in my project we're using Struts 1.3.8. I have a case of editing an
organisation. Because we have two types of organisations, I'm using a
BaseOrganisationForm (extends ValidatorForm) as a form bean where I've
put the validation as xdoclet tags. Then I inherit this class from
Organisati
/apache/struts/action/ActionMessag
es.html
Specifically:
add(java.lang.String, org.apache.struts.action.ActionMessage)
get(java.lang.String)
-Original Message-
From: Dimitris Mouchritsas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 11:23 AM
To: Struts Users Mailing List
Dimitris Mouchritsas wrote:
Hi all,
we are using elements in our error messages to allow the user to
go to the form field when the error message shows up.
Obviously this messes up the client side javascript popup message
which shows like: Username is missing.
Is there a way to use a different
abandon the
idea of client side validation?
Regards
Dimitris Mouchritsas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
we have a disclaimer page in our application (using struts 1.3.8) and we
want to display a possibly rather large legal text.
So the thought is to create a disclaimer.properties file with only one
key in it and for that specific jsp have a
to load this disclaimer.properties and get the k
Hi all,
I have a multi-page form bean for a 2 step registration form. In the
second page I have a back button like this:
and in my action I check if it was pressed similarly to the cancel button:
if (isCancelled(request)) {
targetUrl = "goHom
Hi all,
we've got a form where there's a table. In each row there's a hidden
field for the id, a comment (text field) and a select box.
What's the best way to submit this form? Create a form bean that will
accept arrays as input?
e.g.
public class CommentForm {
private String[] orgIds;
priva
Hi all,
I'm trying to use javascript validation with validator, as well as
server side validation.
Server side validation works just great. But when I try to use client
side validation I
get a validateRequired not found error.
This is my jsp:
and this is the result produced f
Dimitris Mouchritsas wrote:
Hi all,
I've got a multipage form bean to complete a registration in 3 steps.
Validator
is not working correctly. Some fields in the first page are validated,
some are not.
In the 3rd page none of the fields are validated. Now from what I
understand
I ne
Hi all,
I've got a multipage form bean to complete a registration in 3 steps.
Validator
is not working correctly. Some fields in the first page are validated,
some are not.
In the 3rd page none of the fields are validated. Now from what I
understand
I need to extend ValidatorActionForm instead
Hi all,
I'm using a multipage form bean for a 3 page form. From what I tested,
if I leave the pages (by following another link) and
return later the bean is still in session scope. How can I tell struts
that I've left these pages and remove the bean from session?
I suppose if the user follows
Hi all,
I'm starting to use multipage forms to have an organisation
registration, along with some codes and an admin, 3 steps in total.
In the first page, I check in the action if some data from the
organisation already exist, to give an error that the organisation is
already registered. Does th
Hi all,
I've got a form bean for a user which has a field username (duuhhh:)
We use a mask of ^[a-zA-Z_0-9-]*$. Is there a way I can show the
valid characters to the user? Currently the error message in
ApplicationResources properties is:
errors.invalid={0} is invalid.
and the xdoclet tags are
Adam Hardy wrote:
Dimitris Mouchritsas on 01/07/08 16:50, wrote:
Yes, for Struts 1.3.8, sorry I forgot to mention. Actually what I did
(but
it's more or less specific for the action) is to just forward, not
redirect.
But I've got another question now? Is there a way I can pass a
Ian Roughley wrote:
my mistake, only saw the last message.
Antonio Petrelli wrote:
2008/7/1 Ian Roughley <[EMAIL PROTECTED]>:
Have you looked at the message store interceptor?
For Struts 1?
Antonio
-
To unsubscribe,
Hi all,
I've got the following problem. I have an action that edits the details
of a user.
When the action finishes correctly I want to show a confirmation
message, so in the action:
ActionMessages msg = new ActionMessages();
msg.add(Constants.MESSAGE_CONFIRM, new
ActionMessage("prompt.change
Dimitris Mouchritsas wrote:
Dimitris Mouchritsas wrote:
Hi all,
we've recently upgraded our j2ee application to use struts 1.3.8 and
we're getting a weird exception when trying to
upload a file. Here's the jsp:
tes
Dimitris Mouchritsas wrote:
Hi all,
we've recently upgraded our j2ee application to use struts 1.3.8 and
we're getting a weird exception when trying to
upload a file. Here's the jsp:
tes
Hi all,
we've recently upgraded our j2ee application to use struts 1.3.8 and
we're getting a weird exception when trying to
upload a file. Here's the jsp:
testFileUpload.jsp
=
<%@ page contentType="t
class="Text" />
class="SearchBTN" value="Search" />
Advanced Search
displays properly..if I change
- Original Message - From: "Dimitris Mouchritsas"
<[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent:
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
I've corrected the code and I'm trying to find out how to rebuild struts.
I don't think it is necessary, it has been released in 1.3.9.
http://struts.apache.org/download.c
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/jsp/common/search.jsp': null
at
org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.jav
Hi all,
I'm in the process of upgrading our J2EE app from struts 1.2.4 to 1.3.8.
We're also using tiles.
I'm able to see the header tile but when it reaches the search.jsp tile
I get:
javax.servlet.jsp.JspException: ServletException in
'/WEB-INF/jsp/common/search.jsp': null
at
org.ap
Dimitris Mouchritsas wrote:
Well, one solution is to move the tld's to a directory and define them
in web.xml. This seems to be working.
However I've got some strange problems. For example in a tile I render
a link for advanced search:
<%@ taglib uri="http://struts.ap
Well, one solution is to move the tld's to a directory and define them
in web.xml. This seems to be working.
However I've got some strange problems. For example in a tile I render a
link for advanced search:
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html"%>
<%@ taglib uri="ht
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
So, since they're in the jars I don't need to declare the tld's in web.xml
right?
Right, in fact I'm struggling to understand what is the
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
OracleJSP: oracle.jsp.parse.JspParseException:
/WEB-INF/jsp/common/layout.jsp: Line # 2, <%@ taglib
uri="http://struts.apache.org/tags-tiles"; prefix="t" %>
Error: Unabl
Antonio Petrelli wrote:
2008/6/24 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
I get a 500 Internal server error when trying to access the home page.
Can I see the stack trace?
Antonio
-
To unsubscribe, e-mail:
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
A tile definition. I've tried a few combinations, but none is working. For
example if I use
I get no exception but a blank page is returned.
I suppose that Tiles has not been
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
What exactly is this "home"?
Antonio
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Dimitris Mouchritsas wrote:
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
One thing to note though is we're
using xdoclet 1.2.3 to
create struts-config.xml for us. As I understand this version of
xdoclet
supports up to struts 1.2.x.
Could this be
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
One thing to note though is we're
using xdoclet 1.2.3 to
create struts-config.xml for us. As I understand this version of xdoclet
supports up to struts 1.2.x.
Could this be the culprit?
Probably. A
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Caused by: java.lang.NullPointerException
at
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
Mmm... Just a shot in the dark, did you put the commons-cha
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Thanks for the info for the form tag. The problem is we use tiles, so
html:xhtml is not really an option.
Why? does not produce any markup code, only tells
Struts tags to render in XHTML.
A
Antonio Petrelli wrote:
2008/6/23 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Notice that it doesn't close the tag properly like /> as required by xhtml.
Is there a way to tell struts to close properly for xhtml or we have to
upgrade?
Use before the first tag of every J
Hi all,
We're using struts 1.2.4 in our project and we just noticed something;
When rendering a element the html produced is:
Notice that it doesn't close the tag properly like /> as required by xhtml. Is there a way to
tell struts to close properly for xhtml or we have to upgrade?
Thanks
Hi once more,
seems like a struts day to me :)
Anyway, using struts 1.2.4 and XDoclet 1.2.3 is there a way to define an
error message for a form which includes an argument or something?
For example:
/**
* Set name.
*
* @param name the value to set.
*
* @struts.validator ty
Dimitris Mouchritsas wrote:
Hi again,
If you've been following my threads a bit you'll see that we're
developing an app using struts 1.2.4.
I have another question, we'd like to provide a link in some of the
error messages. But struts seems
to change < to <
I kno
Hi again,
If you've been following my threads a bit you'll see that we're
developing an app using struts 1.2.4.
I have another question, we'd like to provide a link in some of the
error messages. But struts seems
to change < to <
I know that writing html in the ApplicationResources.properties f
Antonio Petrelli wrote:
2008/6/16 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Hi all,
we're using struts 1.2.4 in our project and we have 3 types of messages to
show the user:
1) Confirmational, with say a green tick mark,
2) Informational, with a classic i in a bubble
3) Error mes
Hi all,
we're using struts 1.2.4 in our project and we have 3 types of messages
to show the user:
1) Confirmational, with say a green tick mark,
2) Informational, with a classic i in a bubble
3) Error messages, with the classes red rectangle.
Currently I use saveErrors and saveMessages in my a
Ehteshamul Haque wrote:
I dont know whether is it possible or not. But the question is interesting to
me. If possible, please someone answer.
Ehteshamul Haque
'A great man is not the one who never falls, but the one who rises every time he falls'
--- On Sat, 6/14/08, (¯`
Antonio Petrelli wrote:
2008/6/5 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Your code seems ok. Do you see an error in the log?
No, no errors on the log. :(
Does your generated HTML contain the elements?
Can I see the code of "login.jsp" for e
Antonio Petrelli wrote:
2008/6/5 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
While the word Menu shows up in the final page, I don't see menu1,2 or 3.
Your code seems ok. Do you see an error in the log?
Antonio
-
Antonio Petrelli wrote:
2008/6/4 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
The menu would look something like:
.
So in essence there are 3 seperate menus there.
Ok, you can use "definition in a definition". For example:
There
will need to
Antonio Petrelli wrote:
2008/6/4 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Hi all,
I'm searching if there's a meaning like subtiles in struts. We have one
tile, "menu", which will hold 3 menus. Should we break it into 3 different
tiles, say
menu_admin, menu_info, m
Hi all,
I'm searching if there's a meaning like subtiles in struts. We have one
tile, "menu", which will hold 3 menus. Should we break it into 3
different tiles, say
menu_admin, menu_info, menu_login or can we define it in another way?
Thanks
Dimitris
--
Hi all,
We use Struts 1.2.4 in our application and I'd like to refactor some
code to use ActionMessage(s) instead of ActionError(s).
Can somebody show me a solid example (or point me to an article) on how
to do it?
Also, when I tried before to completely remove ActionErrors, the action
was co
Antonio Petrelli wrote:
2008/5/13 Dimitris Mouchritsas <[EMAIL PROTECTED]>:
Hi all,
I want to show a system requirements page according to the web page's
locale.
Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
You can use the Tiles-included loc
Laurie Harper wrote:
Dimitris Mouchritsas wrote:
Hi all,
I want to show a system requirements page according to the web page's
locale.
Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
Thanks
I'm not sure what you want to achieve. If you just want to localize
Hi all,
I want to show a system requirements page according to the web page's
locale.
Can I use the tiles-defs.xml to do it or I need to write code in a jsp?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Hi all, I'm trying to make a password field be at least 6 characters in
length but the check doesn't seem to work.
Here's my code:
/**
* @struts.validator type="required,minlength,maxlength,mask"
*
* @struts.validator-var name="minlength" value="5"
* @struts.validator-var name=
Antonio Petrelli wrote:
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>:
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've di
Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling. But I couldn't find anything similar
for the
Hi all,
I'm trying to make some code run for a project in the company. For every
action we have a prepare action.
The project build but when I try to access the action I get an
application error, probably from struts. No
exception is thrown in the server log (oc4j 10.1.2 btw). Also I can see
th
58 matches
Mail list logo