Hi Friends,
I am using struts 2.1.6. Facing problem with error messages.
When i use 'regex' validator in validation.xml file than
1. when i clicked on submit button for the first time.
It is showing error messages like
Customer name is required.
Hi
In my application there is a need to hide a link. I have used the tag to
generate a link and the necessity is to hide this link.
can any one pls help out in this regard
Hi all,
when I am trying to render my jsp I am getting the following error on my
server console. Please help me in resolving this. The error is coming at xworks
action class. I am unable to understand why this error is coming. Thanking you .
I hope the following code of jsp is giving this erro
sing?
Are you extending the ActionSupport class? Also, if you are using a
fairly recent version of Struts, you should use var rather than id on
the s:iterator tag.
-Wes
On Tue, Jul 7, 2009 at 8:25 AM, taj uddin wrote:
> Hi all,
> when I am trying to render my jsp I am getting the follo
Hi Kavitha,
The action error message will not be carried to the JSP page if u r
doing the redirect-action. The Message will be lost. If so, then u have to
store the error message in the session and retrieve it in the redirected action
class.
In case, if u r not doing the redirect-action
I'm not sure but do pls check out by including the sitemesh-2.3.jar file and
xwork-2.0.6.jar file in your library
--- On Mon, 7/13/09, Lasantha Pambagoda wrote:
From: Lasantha Pambagoda
Subject: Migration from Struts1 to Struts2
To: user@struts.apache.org
Date: Monday, July 13, 2009, 6:33 AM
Hi All,
In my application, the JSP page displays a list of items with
hyperlinks. When i select one particular item, then that item/element should be
rendered according to the style being defined.
Below is the code shown:
Home
User Manual
Sup
Hi All,
In my application, the JSP page displays a list of items with
hyperlinks. When i select one particular item, then that item/element should be
rendered according to the style being defined.
Below is the code shown:
Home
User Manual
Sup
Hi All,
In my application, the JSP page displays a list of items with
hyperlinks. When i select one particular item, then that item/element should be
rendered according to the style being defined.
Below is the code shown:
Home
User Manual
Sup
Hi All,
I am working on web application using struts 2.0.12 version. In my
application there is a need to replace the select tag with autocompleter tag. I
tried many ways using the list which i obtain from the action class and also
tested with static list values but not able to acheive
Hi All,
I am working on web application using struts 2.0.12 version. In my
application there is a need to replace the select tag with autocompleter tag. I
tried many ways using the list which i obtain from the action class and also
tested with static list values but not able to acheive
Hi,
In my application, the textfield label name should be appended with "*". I
tried to add the string (*) to my label name using labelSeparator attribute. In
my eclipse it shows the warning as "unknown attribut name(labelSeparator). Can
u pls help me out in this issue.
here (*) was added to
Hi,
First please go through the attachment in which the rquired GUI to be generated
using struts2 tags was shown.
In
my application, the GUI should appear with three textfield boxes
separated with hyphens(-), ("as shown in the attachment")where each textfield
boxes has unique names.
I'm working
M
--- On Mon, 12/8/08, taj uddin <[EMAIL PROTECTED]> wrote:
> Thank u for ur suggestion. As given, the application is
> able to display three boxes(textfields) in one row but how
> to append label name( phonenumber) and hyphens(-) b/w the
> textfields(boxes).
(1) Use the text
quot;true" than Struts will add the
"*" automatically.
BR,
Andras.
taj uddin wrote:
> Hi,
>
> In my application, the textfield label name should be appended with
"*". I tried to add the string (*) to my label name using
labelSeparator attribute. In my eclipse
build the rest of the form row manually. You'll need to do validation
manually (which you'd probably want to do anyway for this composite field)
and check for the presence of the "field" error manually.
Dave
--- On Mon, 12/8/08, taj uddin <[EMAIL PROTECTED]> wrote:
> First
Hi,
In my application, the GUI should appear with three textfield boxes separated
with hyphens(-), where each textfield boxes has unique names.
I'm working on the label PhoneNumber which displays three boxes(one for STD
code, second and third for phone number prefix and suffix). Here three
tex
Hi,
In my application the textfield label name should appear bold. If i wrap the
textfield tag with the td tag, its not working.
For Example, here is my code:
ECTED]
Date: Wednesday, December 10, 2008, 1:57 AM
Should be pretty simple with some CSS:
label {
font-weight: bold;
}
Nils-H
On Wed, Dec 10, 2008 at 7:28 AM, taj uddin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In my application the textfield label name should appear bold. If
Hi,
In my application i have passed a message to the addActionMessage in my action
class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp
file i have specified both the and tags.
I was able to reach the xyz.jsp but without any message being rendered. So, can
u pls figur
Hi,
In my application i have passed a message to the addActionMessage in my action
class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp
file i have specified both the and tags.
I was able to reach the xyz.jsp but without any message being rendered. So, can
u pls figur
Hi,
In my application, I have added Action-validation.xml file and in the jsp
page I set the attribute validate="true" in the s:form tag.
After starting the server when i run the application this is the error( shown
below) i'm facing.
12:16:21,462 ERROR [UIBean
Hi,
In my application, I have added Action-validation.xml
file and in the jsp page I set the attribute validate="true" in the
s:form tag.
After starting the server when i run the application this is the error( shown
below) i'm facing.
12:16:21,462 ERROR [UIBean
Hi,
I'm working with an application where i should convert the code that written
using (i.e struts 1.2) with (struts 2.1).
Below i show the struts1.2 code and also the code which i replaced with
tag
Old code:
//Sub Menu for 2nd Main Menu Item ("Admin"):
Hi,
I am working on a application where i would convert the code developed with
struts1.2 to struts2.1
In my struts1.2 application ActionErrors were replaced with addActionMessage or
addActionError methods in struts2.1
But what method should i use in struts2.1 if i have to replace saveErrors
me
Thanks Mr.Newton
--- On Thu, 12/18/08, Dave Newton wrote:
From: Dave Newton
Subject: Re: what is the repalcement for saveErrors method?
To: "Struts Users Mailing List"
Date: Thursday, December 18, 2008, 6:42 AM
--- On Thu, 12/18/08, taj uddin wrote:
> I am working on a applic
Hi,
In my application i should pass the output of tag into a
method which accepts only int-type parameter.
So, is there any scope to convert the output of tag(which is
usually a String) into the int value.
For ex:-In my application I'm passing the output of tag into a
javascript's addIte
Hi,
In my application i should pass the output of tag into a
method which accepts only int-type parameter.
So, is there any scope to convert the output of tag(which is
usually a String) into the int value.
For ex:-In my application I'm passing the output of tag into a
javascript's addIte
Hi
I am working on application where i have to convert the code developed in
struts1.2 to struts2.0.
Here is the struts1.2 code:
//Sub Menu for 2nd Main Menu Item ("ABC"):
menus[1] = new
menu(180, "vertical", 0, 0, -1, -1, "", "#ce122d
Hi,
In my application I want to assign the value of the status attribute of
tag to the int variable.
In clear(explanation):-I have the this code(below)
I have tried to get the index value of the current iteration with the help of
index() method.
where #idx.index() gives the index value. N
Hi,
In my application I have passed the list of errors to the setActionErrors( )
method and in the resulting jsp page i have written the tag
I have a doubt like will this tag get the list, which was passed to the
setActionErrors( ) method, and display the errors?
Pls help me out in this issue.
Hey, no ThanksI understood how the setActionErrors() method worksIt
works just like addActionError() method except that it is adding a list of
errors rather than a single error(String).
--- On Thu, 12/25/08, Dave Newton wrote:
From: Dave Newton
Subject: Re: How does setActionErrors Me
Hi,
I have a doubt like I am returning null result from my action class where
as in my configuration file(i.e xml) file i have declared result types
"success" and "failure".
So, to which result does it map when i return null from my action class?
Pls help me in this issue
Hi,
Try using this code:
--- On Tue, 12/30/08, Gordian Yuan wrote:
From: Gordian Yuan
Subject: Re: Message properties not displaying
To: "Struts Users Mailing List" , cel...@yahoo.com
Date: Tuesday, December 30, 2008, 1:26 AM
Hi, Celinio
do you declare
or
?
you can simple try
On Sun, D
Hi,
My application was developed on struts 1.2 and i was struck up with a problem
when i try to convert that code into struts 2.1 version.
So, pls convert the code given below which was developed using struts 1.2 api
into struts 2.1.
The code is:
Select
Where- documentTypes is a
Hi,
In my application i tried using the back button with javascript but its not
working and instead it was calling the action specified in the form tag.
IN Detail:
when i click the back button, it was not rendering the previous page..instead
it was calling the xyz action. So, pls help me
Hi,
In my application I have used the validate() method but to my surprise i found
that validate method was not being called at all.
What ever the code i have placed in the validate method was not being executed.
I doubt there was some problem with the interceptors which i have included in
the
Hi,
In my application I have used the validate() method but to my surprise i found
that validate method was not being called at all.
What
ever the code i have placed in the validate method was not being
executed. I doubt there was some problem with the interceptors which i
have included in the xm
Hi,
In my application i am having Image in my jsp page with thumb nails. when i
click at a particular area of an image it will call a javascript method which
helps us in rendering a new jsp page.
Below is the page source code for the situation i described above:
39 matches
Mail list logo