YES! thank you so much this really helps!
Piero Sartini-3 wrote:
>
> On Monday 09 February 2009 16:43:09 xianwinwin wrote:
>> Hi all,
>> here's a scenario:I have some methods that before executed, they should
>> run
>> an interceptor --to verify if the
Hi all,
here's a scenario:I have some methods that before executed, they should run
an interceptor --to verify if the user is authorized to do something.
I read that struts2 has a @before @after interceptors that could help here.
here's my though
@before
public String activateProcess()
{
Hi All,
Here's a scenario that drives me crazy:
1. A user fills-up a form (a date) and clicks submit
2. An Action return a List of items related to the user's input
3. The list is returned as an ID (AJAX) to the form
4. User sees the list and can click a URL from the list
Problem: When the user
Hi there,
Here's a scenario
1. A user fill up a form and clicks submit
2. An Action return a List of items related to the user's input
3. The list is returned as an ID (AJAX) to the form
4. User sees the list and can click a LINK from the list
Problem: When the user clicks a LINK from the *list
Hi all,
I have a class with different methods. I have 2 type of users:
Employee and Manager
my XML looks like this:
fileLayout
.
.
.
I realized that one of the meth
Hi all,
I have a button that once clicked an Interceptor does something.
So...I have a form that requires the user to input an ID, how can I check,
in the interceptor, if this value is valid BEFORE it gets to the action
class.
in other words: say a field called resourceID (Long) and the user in
@SuppressWarnings("unchecked")
public String addStep()
{
System.out.println("do abc");
return "ajax-add-step";
}
@SkipValidation
public String completeIncentive()
{
I have it:
/pages/incentive/steps/ajaxInput.jsp
/pages/incentive/steps/ajaxAddStep.jsp
/pages/incentive/steps/ajaxConfirmation.jsp
Struts Problem Report
Struts has detected an unhandled exception:
Messages: No result defined for action
com.struts.incentive.target.StepsIncentiveAction and result success
File:
file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/MGroups/WEB-INF/classes/incentiv
yes, I get: undefined
* I use ajax for the return type
* the action is not executed (meaning, when the user clicks a button the
failure occurs before the action)
Lukasz Lenart wrote:
>
> 2008/11/20 xianwinwin <[EMAIL PROTECTED]>:
>> I have a simple form with 2 buttons
Hi all,
I have a simple form with 2 buttons (diff action), how can I make sure both
will exec?
http://www.nabble.com/2-buttons-for-the-same-form%2C-error-when-trying-to-invoke-different-action-tp20608955p20608955.html
Sent from the Struts - User mailing list archive at Nabble.com.
I have the following code:
When populating the info of flight.departureTime the result is always 12:00
AM
Does anyone know why?
* the flight.departureDate is 14:00 PM (I verified it with debugging)
* I tried displayFormat="h:mm a" (same result)
Thank you!
--
View this message in context
Hi Pawel,
thank you for your reply. You mentioned: "But You can achieve the same by
adding ajax to this field" how can I achieve that?
Thank you!
Paweł Wielgus wrote:
>
> Hi xianwinwin,
> it's a firefox feature - remember entered form values or something like
> th
I have a textfield where a user input information.
My question is this: how can I give the user previous input that he provided
once he clicks the textfield; in other word, when he clicks (or double
click) the textfield he can see (in a drop down box) what he entered before.
for some reason,
Hi all,
Say I have 4 dates and I wish the end-user to choose one of them, how can I
do that with radio Box?
Say this is the datetimepicker:
how can I integrate a radio box on the left side so the user can choose one.
the user must have the ability to change the date (so I can't have i
Hi all,
I downloaded the SSL plugin from
http://code.google.com/p/struts2-ssl-plugin/
I added the jar to my application path and as the tutorial describes:
"The plug-in extends struts-default so you can extend the "ssl-default"
package to get these additional features." /under usage
I simply c
thanks!!!
Gabriel Belingueres-2 wrote:
>
>
>
> 2008/8/4 xianwinwin <[EMAIL PROTECTED]>:
>>
>> hi there,
>> say I have an object client and it has firstName and lastName. I wish to
>> write this on the jsp page:
>>
>> Dear Mr. XX welcom
hi there,
say I have an object client and it has firstName and lastName. I wish to
write this on the jsp page:
Dear Mr. XX welcome to
the XX should be substitute with firstName and lastName.
what tag should be used in order to achieve this?
thank you!
--
View this message in co
I have a form in which I wish to have it align horizontally.
If I use the tags like this:
I get it in a vertical way. Does anyone know how to set it horizontally?
* the idea is to create a table and let the end-user fill the information as
if he sees an e
Hi all,
I have a table (displayTag) and a form. when the user check (checkbox) some
of the items in the table and clicks submit the action is performed BUT
after it is finished it performs again... my question is why and how can I
avoid that?
Thank You!
--
View this message in context:
http:/
Hi all,
I wish to prevent a user to input a date in my datetimepicker. For this, I'm
using the command:
disabled ="true"
Unfortunately, the user is able to input the date.
does anyone know what is the problem?
--
View this message in context:
http://www.nabble.com/s2%3A-howto-disable-the-use
GOT IT
thanks Dave!
newton.dave wrote:
>
> --- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>> removed - so the conversionError is not working. ok, how can
>> I provide my own errors now?
>
> Doesn't your existing validation handle the re
removed - so the conversionError is not working. ok, how can I provide my own
errors now?
- is it possible using notation for that?
thanks Dave
newton.dave wrote:
>
> --- On Fri, 6/27/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>> I'm not sure I fully understand you
s are added separately from validation errors.
>
> Among the options is to remove the conversion error interceptor from your
> interceptor stack and use only the validation errors.
>
> Dave
>
> --- On Thu, 6/26/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>> From: xianwi
Hi all,
If the end-user input wrong date-type (eg., date format is incorrect, or for
'number of people' he types 'Q') the 'input' is fired and it shows the error
message.
I do that with the 'return input' and the jsp page (this is ajax-id) looks
like this:
<%@ taglib prefix="s" uri="/struts-ta
out.
Jim Kiley wrote:
>
> Fair enough. Is this something you could solve with a validate() method
> on
> your action, assuming that your action is ValidationAware?
>
> On Tue, Jun 24, 2008 at 9:45 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> But that
gt; "empl.date," put the validation on the setter for the date field of Empl,
> rather than on the action.
>
> On Tue, Jun 24, 2008 at 9:06 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> hi Lukasz
>>
>> In your example, you wrote:
>>
&
hi Lukasz
In your example, you wrote:
Private Date today;
@RequiredFieldValidator(message = "Date is required")
public Date getToday() {
return today;
}
this works great also in my application, but my question is different, I
don't have a field called today, I have an obj
This also works on my end *BUT* the Date in part of an Object (not a field)
so I have Employee empl;
with Date dob,
thank you
Lukasz Lenart wrote:
>
>> I did, and it doesn't work, when I click submit, I immediately get a red
>> message next to the required fields...but not next to the dat
I did, and it doesn't work, when I click submit, I immediately get a red
message next to the required fields...but not next to the date.
Lukasz Lenart wrote:
>
> Hi,
>
> Did you try
> @RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName =
> "customfield", message = "You must enter
I was wondering how to force the user to input a Date field? consider the a
class of Employee (dob, name).
and I wish to insert new data.
I managed to force the date by the code below, but couldn't do that for the
date.
example
Class Test {
private Employee empl;
@Validations(
mmm, this is interesting, I get a dialog box and it says:
The currently displayed page contains invalid values.
--
View this message in context:
http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp17917051p1798.html
Sent from the Struts - User mailing list archive at
1. How did you add the reference in eclipse? Make sure it is listed in
the J2EE Module dependencies.
After placing the JAR I right clicked on the project-->Properties-->Java
Build Path-->Libraries-->Add External JAR--> jsonplugin-0.30.jar
2. Is your URL right? Is the request being made? Is the
you are right (I guess I was trying to be succinct),
Ok...so here's the deal, I wish to use JSON, for this, I downloaded the JAR
(jsonplugin-0.30) and had a reference to it (on my eclipse)
So, this is the previous code I was using that worked well:
XML:
Hi all,
I'm trying to integrate Struts2 with JSON; what is needed beside a reference
to the JAR?
I'm trying to use the plugin and for some reason when I extends
'json-default' in the xml file - the action doesn't work (it works when
extending struts-default).
I'm using eclipse, I added the json
In my actioncompleter tag I'm trying to give the end user a list based on
his/her input (the list is returned from a db in the invoked method)
JSP:
BUT where is the list?!?!?!
The method potentialList is invoked (and I get the user's input, so far so
good), but how does the statement above (
t; action will be called with the current value in the
>> text box. You use that
>> > partial value to do a database search (or filter an
>> existing list, or
>> > however you'll implement that part).
>> >
>> > Dave
>> >
>
I have a list of 20,000 cities; I would like the user to provide at least 2
chars and then present him a'potential list'.
I managed to do this:
JSP
Java:
public class autocompleter extends ActionSupport
{
private List state;
public String execute() throws Exception{
state = new Arr
I wonder what is the "readonly" for
I wish the user to specify the path only with the Browse button but will not
be able to change the path on field.
In other words, once the user has specified the path (by the browse) he will
not be able to change it directly from the textfield as in make ch
car wrote:
>
> %{#attr.current.id} is OGNL, you should be able to use it.
>
> What do you mean by "the actual string"?
>
> xianwinwin wrote:
>>
>> but EL is not allowed in Struts tags.
>> when I use # or $ I get the actual string (not the value).
>&
7;s documentation for more info.
>
>
> xianwinwin wrote:
>>
>> thank you Wild Oscar,
>> this is a good starting point for me.
>> what is the attr and current here?
>>
>> %{#attr.current.entityId}?
>>
>> I have this on the action
e.com/No-result-defined-for-action-and-result-input-with-checkbox-to16966533.html
>
>
> Which basically happens when the action is executed without any checkbox
> selected.
>
>
> xianwinwin wrote:
>>
>> Hi all,
>>
>> I have a table with a list o
Hi all,
I have a table with a list of buyers. Each buyer has a checkBox that the
user can click and decide if he wants to work with them.
I'm using displayTag and this is my code:
I wonder why I don't get the *value/content* of the userCheck. Instead, I
get ${entityId} (this really very s
I have the following button-action:
this button, when clicked, does some action (removes a form from the screen)
I would like to 'convert' the button (the image-button) into a simple link:
close-form (so the user actually clicks the link and
Hi there,
can anyone adivse how to return a 'Success message' to a div after a file
was uploaded?
For some reason, I get this annoying message [Object] after a file was
successfully uploade. This is caused because I return a message to a div
(without it, it works ok - but the page is refreshed)
I checked it on both IE7 and FireFox - no error on the js and the value is
NULL
any idea?!?!
Laurie Harper wrote:
>
> If it works without theme set to ajax, it's probably a client-side
> issue. What browser are you using? Are there any Javascript errors
> reported?
>
e included, it should be set from the textfield so you
> must have something configured wrong. What does your action mapping look
> like? Are you using the default interceptor stack or have you specified
> a different one?
>
> L.
>
> xianwinwin wrote:
>> C
Can anyone advise why my bean is null.
I have the following jsp page:
when the user cllicks submit - the action 'insert' kicksin but the bean
(Note) is null (yes, i have getter and setter)
//action
@Validation
public class NoteActi
Hi there,
I created an ajax capability to my form where the user clicks the 'add note'
button -a textarea is shown with a submit button (the textarea is shown just
below the [add note] button) the form works great.
I wonder:
1. When the user clicks submit and the process is over - how can I
'p
Hi guys,
I've been strugling with this one for a while: How is it possible to
place 2 (or more) buttons one after the other?
Currently, my buttons looks like this:
[update]
[test]
and I wish to have:[update] [test]
my jsp code:
--
View this message in context:
ess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>> From: xianwinwin <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List
>> Date: Wed, 26 Mar 2008 16:34:48 -0700 (PDT)
>> To:
>> Subject: @ExpressionValidator - how to set th
ou try
> @ExpressionValidator(expression = "(amount > 0) || (amount == null)",
> message = "err message")
>
> Regards,
> Randy Burgess
> Sr. Web Applications Developer
> Nuvox Communications
>
>
>
>> From: xianwinwin <[EMAIL PROTECTED]>
>
Hi,
I have the following Expression Validator:
@ExpressionValidator(expression = "amount > 0", message = "err message")
what should come in the expression if amount can be either greater than 0 or
null?
thank you!
--
View this message in context:
http://www.nabble.com/%40ExpressionValidator
Thank you Dave!!!
yes, this works for checking the range but I wish to check the validity of
the field.
meaning, I'd like to provide my error message in case the user gave wrong
input. how do I do that?
Thank you again
newton.dave wrote:
>
> --- xianwinwin <[EMAIL PRO
hi there,
say a user inputs a value for a double field (say amount of money); the
value should be a double (eg, 53.23)
Question: if the user enters something like ABCD how can I provide the error
message?
I would like to do that with annotation? (sayyou enter an invalid
value...)
what ty
Hi guys,
when a user clicks Submit in my form, a message is returned to an ID with
the following errors:
you have an error in your date entry!
Invalid field value for field "age". 336r
IL
3/15/07
the JSP page looks like this:
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
request.setA
Hi,
I'm using the ajax theme and I wonder if anyone can assist in the validation
issue.
When the user clicks 'Update' and everything goes well, a message- "Update
successfully" is shown next to the update button.
when the user enter an invalid data - the validation interceptor kicks in
and a mes
duahhh me!!!...
thanks Dave, I got it, the value="" caused it
:-)
working fine!
newton.dave wrote:
>
> --- xianwinwin <[EMAIL PROTECTED]> wrote:
>> >value=""
>>
Hi all,
I'm having a problem with datetimepicker.
The form works great; the user is able to enter the date and I can persist
the data. Problem is when I wish to post the information on the screen - the
bean is populated but the value is not shown on the form :-(
code:
thanks for any
Thanks Ealden, this was very helpful!
I tried that and it works fine.
Question, say I wish to check for a date, so far I've been doing it this
way:
example
private Date delta;
@TypeConversion(converter="com.utilities.conversion.DateTypeConversion")
public void setDelta(Date d
Hi there,
I'm trying to incorporate some the dojo in my application. for this I do:
I have a file that look like this:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/struts-dojo-tags" prefix="sx" %>
<%@ taglib uri="/WEB-INF/displ
Hi there,
I would like to create a validation with annotation.
consider the following case:
@Validation
public class AddCaseAction
{
private Registration registration;
.
.
.
public String addNewRegistration()
{
//do something
return "succ
Hi there,
I wonder if anyone knows how to align the check-box list in groups of 10 (or
20). as you can see from the picture below, the list (US states) are aliened
vertically (not a user friendly) is there anyway to have them in a
matrix-style (meaning all states will be in a matrix of 10x5 (plus
Hi all,
I'm trying to create an AuthorizationInterceptor.
consider the following scenario: The user clicks on any link and the the
link has resourceID
eg: doSomthig_update.do?resourceID=44
I would like to transfer the resouceID to my interceptor in order to verify
if the user is entitle to
Dear Ravi
YOU ARE THE MAN!!!
Thank you so much!
* I placed it under WebContent and it worked!
--
View this message in context:
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p156
:-(
debuging with fireBug I get the following message: dojo is not defined
--
View this message in context:
http://www.nabble.com/strut2---Ajax-dojo%3A-rr-what%27s-wrong-with-my-settings--cant-get-the-theme%3Dajax-to-wrork-%28pictures-included%29-tp15600219p15612900.html
Sent from the Strut
resources it requires are loaded (using the net tab).
> Ensure that struts filter is receiving requests for the /struts/*
> resources.
>
> xianwinwin wrote:
>> :-(
>> I think I have an issue with the ajax configuration (I'm not sure).
>> How can I verify
and it isnt)
>
> musachy
>
> On Wed, Feb 20, 2008 at 5:21 PM, xianwinwin <[EMAIL PROTECTED]> wrote:
>>
>> WHAT am I possibly doing wrong here?
>>
>> I want to get this result: (attention on the tabs example)
>> http://www.nabble.com/file/p
WHAT am I possibly doing wrong here?
I want to get this result: (attention on the tabs example)
http://www.nabble.com/file/p15600219/good.jpeg
but I get this result:
http://www.nabble.com/file/p15600219/wrong.bmp
the code is:
<%@ include file="/pages/layouts/taglibs.jsp" %>
Welcome ; last
your action you will have to do:
> addActionMessage(\"Put w/e data you want in here\");
>
> Hopefully it works out for your..
>
>
>
> On 2/19/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>
>> Hi all,
>> I\'m trying to return a result to DIV
; on top, plus
>>
>> > />
>>
>> but I get the same result - it goes to an empty page with the result and
>> not
>> to the DIV?
>> :-(
>>
>> any idea?
>>
>>
>>
>>
>>
>> xianwinwin wrote:
&g
thanks you for the reply. I added the code:
on top, plus
but I get the same result - it goes to an empty page with the result and not
to the DIV?
:-(
any idea?
xianwinwin wrote:
>
> Hi all,
> I'm trying to return a result to DIV in a form (in the example id='tw
Hi all,
I'm trying to return a result to DIV in a form (in the example id='two')
this is my form:
initial content
when the user clicks the GO2 --> the action, AjaxRemoteForm, is 'activated'
(showing the 'data' the user has input)
public String AjaxRemoteForm()
{
THANK YOU Jeromy
this solved the question I presented.
Jeromy Evans - Blue Sky Minds wrote:
>
> xianwinwin wrote:
>> Thank you Jeramy!
>> I tried to use the cssStyle for a while and came up with this:
>>
>> > name="groupSelect"
>> lis
Thank you Jeramy!
I tried to use the cssStyle for a while and came up with this:
the result came up with a 'twist' the name-of-group comes after the radio
button
image --> http://aycu20.webshots.com/image/43859/2003464400042803302_fs.jpg
any idea how to fix it, so it will be on the same line
is there any concrete example of how to modify an existing
template,
thanks!
--
View this message in context:
http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492763.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
you suggested:
Use theme="simple" on the radio then add breaks between each radio
button; or
Q: what do you mean by "add breaks between each radio
button"
Thank you!
--
View this message in context:
http://www.nabble.com/radio-tag---how-to-have-the-items-order-vertically--tp15468384p15492163
Hi there,
I have a list of items ordered on my jsp page with a radio buttons:
my question is how to have the list vertically? (I get it horizontally)
I tried to dig the info from
http://struts.apache.org/2.x/docs/radio.html
but couldn't get it right
thanks for any pointers!
--
View this
thanks, this solved it
--
View this message in context:
http://www.nabble.com/struts2-forms-and-css-tp15164776p15170582.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PRO
hi there,
I wonder how to change the font style of my form. Currently it is in a
simple 'Times New Roman' and I would like to have it differently (say
verdana).
the jsp page looks like this (below) and I wonder where the code should be
embedded?
<%@ include file="/pages/layouts/taglibs.jsp" %
THANK YOU nuwan !!! this is exactly what i was looking for
--
View this message in context:
http://www.nabble.com/is-it-possible-to-pass-a-parameter--to-an-interceptor-from-the-xml-file--tp15074977p15090339.html
Sent from the Struts - User mailing list archive at Nabble.com.
---
Hi all,
I wonder if it is possible to pass a parameter with a value to an
interceptor.
Example:
I have the following interceptor:
(parameterGivenInXmlFile==4)
the implementation is:
public String intercept (ActionInvocation invocation) throws Exception
{
hi all,
I have the following code:
this provides the end user a comboBox with a textfield (user can input his
own input not from the list)
Q: How can I have a simple combobox WITHOUT the textfield and by that force
the end-user to choose only from the list.
thanks!
--
View this messag
I would like to validate if the user has entered a valid email.
for this I have the method
@TypeConversion(converter =
"com.utilities.conversion.EmailTypeConversion")
public void setEmail(String email) {
this.email = email;
}
the conversion (where I'm a
THANK YOU ROBI
Roberto Nunnari wrote:
>
> Try this:
>
>
>
> --
> Robi
>
>
> xianwinwin wrote:
>> Hi there,
>>
>> using struts2: I have just place the user's information on a session:
>>
>> session.setAttribute(Propert
Hi there,
using struts2: I have just place the user's information on a session:
session.setAttribute(Properties.USER_HANDLE, secUser);
I wonder how to access on a jsp page the info; I tried, unsuccessfully, the
following combinations:
any idea?
--
View this message in context:
http://w
AND THE WINNER IS: xniit2003
YES!! thank you so much! good call and a brilliant observation
thank you all!
you wrote:
I guess your problem is in the xml file.
You are using "error" result type. But by default if validation error
occurs, "input" string is being returned.
So please use "inp
thanks wes, I tried this manipulation - didnt work
:-(
Wes Wannemacher wrote:
>
> Try annotating the getter rather than the setter.
>
> -Wes
>
> On 1/3/08, xianwinwin <[EMAIL PROTECTED]> wrote:
>>
>> yes i did :super:
>>
>>
>>
>>
yes i did :super:
newton.dave wrote:
>
> Did you annotate the class with the @Validation() annotation?
>
> d.
>
> --- xianwinwin <[EMAIL PROTECTED]> wrote:
>
>>
>> I've been struggling with this issue for a while and any pointer would be
>
I've been struggling with this issue for a while and any pointer would be
appreciated.
I have a simple file with one field -name; I would like to validate that the
user put information in it.
I'm using the annotation in order to achieve this but for some reason the
validation doesn't work (there
e the button to use such method (method
> attribute in tag).
>
> Good luck!
>
> xianwinwin wrote:
>> I have a login form. it has 3 buttons:
>>
>> 1. login
>> 2. register
>> 3. cancel
>>
>> when the user clicks the login - the a
I have a login form. it has 3 buttons:
1. login
2. register
3. cancel
when the user clicks the login - the application validates that the user
input data on the 'username' and 'password' fields.
Question: how can I avoid this validation if the user clicks either
'register' or 'cancel'
thanks
Hi guys,
I wonder if it's possible to create a form bean with a composition. I mean,
assuming I have the following classes:
AccountInformation ( fname, lname...)
CreditCard (number, type...)
I would like to know if I can create a form (registration) that is composed
from AccountInformation and
93 matches
Mail list logo