Author Login
Post Reply
user Digest 27 May 2008 18:29:29 -0000 Issue 8052
Topics (messages 186834 through 186863):
Re: validation problem
186834 by: nuria
dying to solve this problem
186835 by: puneet duggal
186836 by: Antonio Petrelli
Re: password> Problem
186837 by: Michael Gagnon
186853 by: Himanshu Rathore
186856 by: Michael Gagnon
186857 by: Michael Gagnon
Re: Struts2 Validation on Indexed Properties
186838 by: Bob Tiernay
Re: Dojo and TabbedPanel in Internet Explorer 7
186839 by: Owen Berry
Re: Downloading a file through struts
186840 by: dusty
Re: sending multiple parameter with display tag
186841 by: dusty
Re: Freemarker code completion ide support
186842 by: dusty
Re: Avoiding Validation While Loading Page
186843 by: dusty
Re: <s:password> Problem
186844 by: Skip Hollowell
186854 by: Himanshu Rathore
Re: [S2] Can an interceptor save the request to use it later ?
186845 by: dusty
186848 by: Andrea Vettori
186849 by: dusty
186850 by: Andrea Vettori
Re: Pagination problem with struts2,Please Please help me.
186846 by: dusty
186861 by: Musachy Barroso
Re: Struts2+DOJo1.x
186847 by: aum strut
186852 by: Laurie Harper
Javascript in S2
186851 by: Stanley, Eric
186855 by: Laurie Harper
186859 by: Stanley, Eric
186860 by: Musachy Barroso
186862 by: Stanley, Eric
Resource bundle location
186858 by: Gamble, Wesley (WG10)
186863 by: Gamble, Wesley (WG10)
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_186834.ezm (zipped)
Thanks a lot!
Sorry about my poor english, I couldn't explain exactly what was the
problem. I was explaining some different ways I tried to do the validation
in some forms of my application.
Message Store Interceptor have been a good solution for some of them. I have
to try the others. I haven't realize the existence of it. thanks again.
Nuria
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186835.ezm (zipped)Friend how can we detect WebCam Without using JMFSTUDIO
Is there any way to do this ??
__________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

Attachment:
user_186836.ezm (zipped)2008/5/27 puneet duggal <duggal_punit@(protected)>:
> Friend how can we detect WebCam Without using JMFSTUDIO
This is not the place to ask such a question. This mailing list is
only for Struts-related questions.
Antonio

Attachment:
user_186837.ezm (zipped)I'd imagine that's all that separates s:password from s:textfield
If you want the text to be visible, use s:textfield or s:property instead
But certainly if you're going to require that the password be shown as stars
instead of plain text, then you don't want to be sending the plain text
value along to the client side. If you're making an 'update account values'
type page where you can change your password, then you should have 2 blank
s:password fields. One to enter the new password and one to confirm.
Assuming you want to redisplay this page when submitting, then you should
acknowledge the change with a status message at the top of the page saying
'password successfully updated' or something to that effect.
Do you have some different specification that doesn't fall into these
patterns?
-----Original Message-----
From: Himanshu Rathore [mailto:techsawi@(protected)]
Sent: Tuesday, May 27, 2008 8:06 AM
To: Struts Users
Subject: <s:password> Problem
Hi,
The data set in password field is not displayed on jsp. In my bean, the
value is set properly after retrieved from db but when page is displayed I'm
not able to see it.
May be this is security feature but it might not be acceptable by client. Is
there way around?
--
--
Regards,
Himanshu Rathore

Attachment:
user_186853.ezm (zipped)Hey Michael,
I have a update page wherein I'm displaying the information as stored in DB.
Situtation can be that user may or may not want to change/update the
password. I can't user to enter his existing password.
So what are the options?
On Tue, May 27, 2008 at 6:51 PM, Michael Gagnon <
mgagnon@(protected):
> I'd imagine that's all that separates s:password from s:textfield
> If you want the text to be visible, use s:textfield or s:property instead
>
> But certainly if you're going to require that the password be shown as
> stars
> instead of plain text, then you don't want to be sending the plain text
> value along to the client side. If you're making an 'update account values'
> type page where you can change your password, then you should have 2 blank
> s:password fields. One to enter the new password and one to confirm.
> Assuming you want to redisplay this page when submitting, then you should
> acknowledge the change with a status message at the top of the page saying
> 'password successfully updated' or something to that effect.
>
> Do you have some different specification that doesn't fall into these
> patterns?
>
> -----Original Message-----
> From: Himanshu Rathore [mailto:techsawi@(protected)]
> Sent: Tuesday, May 27, 2008 8:06 AM
> To: Struts Users
> Subject: <s:password> Problem
>
> Hi,
>
> The data set in password field is not displayed on jsp. In my bean, the
> value is set properly after retrieved from db but when page is displayed
> I'm
> not able to see it.
>
> May be this is security feature but it might not be acceptable by client.
> Is
> there way around?
>
> --
> --
> Regards,
> Himanshu Rathore
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Himanshu Rathore

Attachment:
user_186856.ezm (zipped)The form could just not require the user to enter a password then.
So, you'd have a change password (call this A) and change password
confirmation textboxes (call this B) and:
1. If A has a non-null value that is not equal to B, display an error
2. If A has a non-null value that is equal to B, submit the form
3. If A has a null value, regardless of B, submit the form
4. In the update action, if password is null, do not update this field
5. In the update action, if password is not null, change the value in the DB
(from the above, this will only occur when both A and B had matching
non-null values)
-----Original Message-----
From: Himanshu Rathore [mailto:techsawi@(protected)]
Sent: Tuesday, May 27, 2008 1:16 PM
To: Struts Users Mailing List
Subject: Re: password> Problem
Hey Michael,
I have a update page wherein I'm displaying the information as stored in DB.
Situtation can be that user may or may not want to change/update the
password. I can't user to enter his existing password.
So what are the options?
On Tue, May 27, 2008 at 6:51 PM, Michael Gagnon <
mgagnon@(protected):
> I'd imagine that's all that separates s:password from s:textfield
> If you want the text to be visible, use s:textfield or s:property instead
>
> But certainly if you're going to require that the password be shown as
> stars
> instead of plain text, then you don't want to be sending the plain text
> value along to the client side. If you're making an 'update account
values'
> type page where you can change your password, then you should have 2 blank
> s:password fields. One to enter the new password and one to confirm.
> Assuming you want to redisplay this page when submitting, then you should
> acknowledge the change with a status message at the top of the page saying
> 'password successfully updated' or something to that effect.
>
> Do you have some different specification that doesn't fall into these
> patterns?
>
> -----Original Message-----
> From: Himanshu Rathore [mailto:techsawi@(protected)]
> Sent: Tuesday, May 27, 2008 8:06 AM
> To: Struts Users
> Subject: <s:password> Problem
>
> Hi,
>
> The data set in password field is not displayed on jsp. In my bean, the
> value is set properly after retrieved from db but when page is displayed
> I'm
> not able to see it.
>
> May be this is security feature but it might not be acceptable by client.
> Is
> there way around?
>
> --
> --
> Regards,
> Himanshu Rathore
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Himanshu Rathore

Attachment:
user_186857.ezm (zipped)Single line breaks were dropped by Outlook...reposting for readability
-----Original Message-----
From: Michael Gagnon [mailto:mgagnon@(protected)]
Sent: Tuesday, May 27, 2008 1:24 PM
To: 'Struts Users Mailing List'
Subject: RE: password> Problem
The form could just not require the user to enter a password then.
So, you'd have a change password (call this A) and change password
confirmation textboxes (call this B) and:
1. If A has a non-null value that is not equal to B, display an error
2. If A has a non-null value that is equal to B, submit the form
3. If A has a null value, regardless of B, submit the form
4. In the update action, if password is null, do not update this field
5. In the update action, if password is not null, change the value in the DB
(from the above, this will only occur when both A and B had matching
non-null values)
-----Original Message-----
From: Himanshu Rathore [mailto:techsawi@(protected)]
Sent: Tuesday, May 27, 2008 1:16 PM
To: Struts Users Mailing List
Subject: Re: password> Problem
Hey Michael,
I have a update page wherein I'm displaying the information as stored in DB.
Situtation can be that user may or may not want to change/update the
password. I can't user to enter his existing password.
So what are the options?
On Tue, May 27, 2008 at 6:51 PM, Michael Gagnon <
mgagnon@(protected):
> I'd imagine that's all that separates s:password from s:textfield
> If you want the text to be visible, use s:textfield or s:property instead
>
> But certainly if you're going to require that the password be shown as
> stars
> instead of plain text, then you don't want to be sending the plain text
> value along to the client side. If you're making an 'update account
values'
> type page where you can change your password, then you should have 2 blank
> s:password fields. One to enter the new password and one to confirm.
> Assuming you want to redisplay this page when submitting, then you should
> acknowledge the change with a status message at the top of the page saying
> 'password successfully updated' or something to that effect.
>
> Do you have some different specification that doesn't fall into these
> patterns?
>
> -----Original Message-----
> From: Himanshu Rathore [mailto:techsawi@(protected)]
> Sent: Tuesday, May 27, 2008 8:06 AM
> To: Struts Users
> Subject: <s:password> Problem
>
> Hi,
>
> The data set in password field is not displayed on jsp. In my bean, the
> value is set properly after retrieved from db but when page is displayed
> I'm
> not able to see it.
>
> May be this is security feature but it might not be acceptable by client.
> Is
> there way around?
>
> --
> --
> Regards,
> Himanshu Rathore
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Himanshu Rathore
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186838.ezm (zipped)
Currently, there doesn't seem to be a method of validating an indexed property (ie. a collection) directly or indirecetly within an action.
For instance, given an action OrderAction with a property order of type Order where order contains a collection trades of type Trade, the following is not possible:
@Validation
public class OrderAction {
private Order order = new Order();
@Validations(
requiredFields = {
@RequiredFieldValidator(message = "", key = "errors.required", fieldName = "order.trades[].field1"),
@RequiredFieldValidator(message = "", key = "errors.required", fieldName = "order.trades[].field2"),
}
)
public String execute() throws Exception {
....
}
The closest thing to support for something like the above is using the VisitorFieldValidator validator. Although it has the following disadvantages:
1. It must be placed on the target object (invasive and not context sensitive)
2. It does not work with an indirect collection (as in the example above)
Any suggestions would be greatly appreciated
_________________________________________________________________
If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one!
http://g.msn.ca/ca55/208

Attachment:
user_186839.ezm (zipped)Does it work after that forced refresh? Maybe you had a previous
version of the page cached in the browser and it wasn't loading the
scripts correctly. I've had a hard time convincing IE and Opera to
relinquish it's cache in the past.
On Mon, May 26, 2008 at 7:29 PM, Jay Bose <digi9ten@(protected):
> Any ideas?
>
>
> --- Jay Bose <digi9ten@(protected):
>
>> I'm using Struts-2.0.11.1 in Dev-Mode. The Dojo Head is also in Debug Mode.
>>
>> I have a tabbedPanel with one dynamic tab (for the purposes of this question). In
>> FireFox-2.0.X, the tab loads properly. In Internet Explorer-7.0, the tab does not load
>> properly. I've included the Dojo Debug statements for both browsers. Any ideas?
>>
>> Just a side note: the page loads properly if I hold Ctrl and "force" a refresh of the
>> same page.
>>
>>
>> Dojo Debug Statements for FF2 - expected debug output
>> ==============================================================================
>> DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed in
>> version:
>> 0.5
>> DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal in 0.5; use
>> dojo.lfx.* instead. 0.5
>> DEBUG: DEPRECATED: dojo.animation.Animation is slated for removal in 0.5; use
>> dojo.lfx.*
>> instead. 0.5
>> DEBUG: DEPRECATED: dojo.animation.AnimationSequence is slated for removal in 0.5; use
>> dojo.lfx.* instead. 0.5
>> DEBUG: DEPRECATED: dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.*
>> instead.
>> 0.5
>> DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
>> DEBUG: [message] Listening to msg_update to refresh
>> DEBUG: DEPRECATED: selectedTab deprecated, use selectedChild instead, will be removed
>> in
>> 0.5
>> DEBUG: dojo.widget.Parse: error:TypeError: page has no properties
>> DEBUG: widget ID collision on ID: subjectPanel
>> ==============================================================================
>>
>>
>> Dojo Debug Statements for IE7 - unexpected debug output
>> ==============================================================================
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/Manager.js with error:
>> [TypeError: '__clobberAttrs__' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/PageContainer.js with error:
>>
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/TabContainer.js with error:
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/ContentPane.js with error:
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/LinkPane.js with error:
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/PopupContainer.js with
>> error:
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: failed loading /appraiser/struts/dojo/src/widget/Tooltip.js with error:
>> [TypeError: 'dojo.widget.manager' is null or not an object]
>> DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed in
>> version:
>> 0.5
>> DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal in 0.5; use
>> dojo.lfx.* instead. 0.5
>> DEBUG: DEPRECATED: dojo.animation.Animation is slated for removal in 0.5; use
>> dojo.lfx.*
>> instead. 0.5
>> DEBUG: DEPRECATED: dojo.animation.AnimationSequence is slated for removal in 0.5; use
>> dojo.lfx.* instead. 0.5
>> DEBUG: DEPRECATED: dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.*
>> instead. 0.5
>> DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5
>> DEBUG: dojo.widget.Parse: error:[object Error]
>> DEBUG: dojo.widget.Parse: error:[object Error]
>> DEBUG: dojo.widget.Parse: error:[object Error]
>> ==============================================================================
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186840.ezm (zipped)
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html
Read the section on serving static content. Depends on what you are trying
to do. Serve a file your action is controlling/manipulating/creating or
serve some static content from the classpath.
DanglingChap wrote:
>
> Hi,
>
> I need to download some CSV file from struts. how can i? I have already
> implemented the "Action" class for specific page but i don't know how to
> write on stream in struts so that it may pop up as download dialog
> ..alee
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186841.ezm (zipped)
You can also create a link inside the column and then get a reference to the
current object in the iteration through the tables id parameter....
<display:table name="list" class="table" id="row" requestURI=""
cellpadding="4" cellspacing="0">
<display:caption>Episode Admin Index</display:caption>
<display:column property="episodeNumber" title="#"/>
<display:column style="width:500px" title="Episode Name">
<c:url value= ">${row.name}
</display:column>
</display:table>
Varun Deep wrote:
>
> Hello to all
>
> <display:table id="displaycolumn" name="listOfEmployee" pagesize="4"
> requestURI="offices.action">
>
> <display:column property="name" title="Emp Name"
> href="getEmployees.action"
> paramId="id,name" paramProperty = "id,name" >
>
> </display:column>
>
> </display:table>
>
> with above column I am trying to send multiple parameters with the
> column "Emp Name "but it shows nothing on the page.
> (means blank page).
>
> Please help me and if possible suggest me the solution.
>
> I am using displaytag.tld in web-inf folder and other jar file in the
> lib.
>
>
> Thanks in advance
>
> varun
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186842.ezm (zipped)
Intellij IDEA 8.0 has native freemarker support with the code completion you
are looking for.
Its only a EAP release. I don't know when 8.0 is scheduled to be released.
If you want to try the EAP release then you can register and download from
www.intellij.net.
IDEA also has a nice Struts2 plugin as well.
icet wrote:
>
> Yeah, I use that plugin, and I'm talking about freemarker code completion.
>
>
> Wes Wannemacher wrote:
>>
>> On Mon, 2008-05-26 at 12:52 -0700, icet wrote:
>>> I've been considering if it would be a good idea to adopt freemarker
>>> instead
>>> of JSP. After a lot of thought I'd found it to be superior in enough
>>> ways,
>>> when it hit me: the lack of IDE support it's a total dealbreaker.
>>>
>>> I don't believe I can get code completion from eclipse for struts tags
>>> right?
>>
>> I use freemarker in eclipse WTP quite often. I can't remember exactly
>> which plugin installed it, but there is information here -
>> http://freemarker.org/eclipse.html
>>
>> There is syntax highlighting, etc.
>>
>> When you are asking about code completion for struts tags, are you
>> talking about within JSP or within freemarker? In JSP, Struts2 tags work
>> just like any other tags, eclipse will check for required attributes,
>> and when you do <s:, eclipse will drop down a list of tags available (if
>> your JSP has the appropriate taglib declaration at the top.
>>
>> As far as code completion in freemarker, I don't know off the top of my
>> head.
>>
>> -Wes
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186843.ezm (zipped)
Also, remember that validate is being called because the validate or workflow
interceptor is being executed for your action. You can control the specific
set of interceptors for an action by adding an <interceptor-ref> to your
action definition. This can be a reference to a custom interceptor stack
you created for "view-only" that does not run the validation.
Finally, there is an excluded methods parameter for the workflow and
validate methods.
Himanshu Rathore wrote:
>
> Hey Lukasz,
>
> Thanks a ton man. It solved my problem.
>
>
>
> On 5/27/08, Lukasz Lenart <lukasz.lenart@(protected):
>>
>> Hi,
>>
>> Change the method name to validateUpdate() where Update is the name of
>> your
>> update method.
>>
>> class UserAction extends ActionSupport {
>>
>> private User user; //getters & setters
>>
>> public String edit() {
>> return "editForm";
>> }
>>
>> public String update() {
>> userService.save(user);
>> return "list";
>> }
>>
>> public void validateUpdate() {
>> if("".equals(user.getLastName()) {
>> addFieldError("user.lastName", "Last Name is empty");
>> }
>> }
>>
>> }
>>
>>
>>
>> Regards
>> --
>> Lukasz
>>
>> http://www.linkedin.com/in/lukaszlenart
>> http://jdn.pl/blog/416
>> http://www.lenart.org.pl/
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186844.ezm (zipped)Himanshu Rathore wrote:
> Hi,
>
> The data set in password field is not displayed on jsp. In my bean, the
> value is set properly after retrieved from db but when page is
> displayed I'm
> not able to see it.
>
> May be this is security feature but it might not be acceptable by
> client. Is
> there way around?
>
> --
> --
> Regards,
> Himanshu Rathore
<s:password> is an input tag to be placed on an <s:form>. It is used to
send a masked password into your bean. I can see no reason why one
would pull a password from the db and send it back to the user. Unless
you are doing some sort of user maintenance functionality, in which case
you would not want the masked version, and instead would simply put it
into a regular <s:text> field.

Attachment:
user_186854.ezm (zipped)Hi,
Actually this is client requirement. Neither I can't display the password as
normal text nor I can avoid not showing it on the page.
On Tue, May 27, 2008 at 9:03 PM, Skip Hollowell <skip@(protected):
> Himanshu Rathore wrote:
>
>> Hi,
>>
>> The data set in password field is not displayed on jsp. In my bean, the
>> value is set properly after retrieved from db but when page is displayed
>> I'm
>> not able to see it.
>>
>> May be this is security feature but it might not be acceptable by client.
>> Is
>> there way around?
>>
>> --
>> --
>> Regards,
>> Himanshu Rathore
>>
> <s:password> is an input tag to be placed on an <s:form>. It is used to
> send a masked password into your bean. I can see no reason why one would
> pull a password from the db and send it back to the user. Unless you are
> doing some sort of user maintenance functionality, in which case you would
> not want the masked version, and instead would simply put it into a regular
> <s:text> field.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
Regards,
Himanshu Rathore

Attachment:
user_186845.ezm (zipped)
So you are talking to the ActionInvocation and getting the components of the
request and then constructing the URL.... If you don't want to recreate the
URL you could decend a little lower in your interceptor and get the
HttpRequest. From there you can get the URL as it was sent to the server
and store that.
I have moved to using Spring Security which works great. With Acegi
Security the XML was a little overwhelming, but with Spring Security the XML
config has gotten much easier to handle.
Andrea Vettori wrote:
>
> Hi,
>
> I have a login interceptor that checks the presence of a token in the
> session. If the token is not present it returns LOGIN; if present it
> invokes the action. LOGIN is a global result that calls the login
> action.
>
> What I want to do is: after the login is completed the system should
> process the original request with all the parameters.
>
> I already can do this composing the request URL getting the action
> name, context, parameters name and values from ActionInvocation in the
> interceptor and storing it in a session variable and after the login
> redirect to that URL.
>
> What I want to know is if it exists a better way to do this, for
> example saving the ActionInvocation object insted of composing the URL
> and then use that to execute the original action in the interceptor.
>
>
>
> Something like this :
>
>
> public String intercept (ActionInvocation ai) {
>
> if (session contains saved invocation)
> continue that invocation and clear session saved invocation
> else {
> if (session contains token)
> ai.invoke()
> else
> return LOGIN
> }
> }
>
>
>
> I dont' like using the "composed URL method" even if it works, because
> it has some "hardcoded" values (i.e. the .action suffix) and because
> it converts all parameters to strings and then back to their original
> variables type when the URL is used in the redirect.
>
>
> Thanks
>
> --
> Ing. Andrea Vettori
> Consulente per l'Information Technology
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186848.ezm (zipped)
Il giorno 27/mag/08, alle ore 17:35, dusty ha scritto:
>
> So you are talking to the ActionInvocation and getting the
> components of the
> request and then constructing the URL.... If you don't want to
> recreate the
> URL you could decend a little lower in your interceptor and get the
> HttpRequest. From there you can get the URL as it was sent to the
> server
> and store that.
But what can I do if it was a POST request ?
--
Ing. Andrea Vettori
Consulente per l'Information Technology

Attachment:
user_186849.ezm (zipped)
That is a problem. Normally, in the world of redirects you have a handle on
the current request (POST) and you can dispatch that with the POST method
and parameters in tact. But since we have to store the URL and then
recreate the POST later, then I the only thing I can think of (or found by
googling) is that you actually have to create a POST request with something
like HttpClient! Not ideal.
If I get some time, I will dig into the Spring Security code and see how
they do it, since I am sure its handled there...
Andrea Vettori wrote:
>
>
> Il giorno 27/mag/08, alle ore 17:35, dusty ha scritto:
>
>>
>> So you are talking to the ActionInvocation and getting the
>> components of the
>> request and then constructing the URL.... If you don't want to
>> recreate the
>> URL you could decend a little lower in your interceptor and get the
>> HttpRequest. From there you can get the URL as it was sent to the
>> server
>> and store that.
>
>
> But what can I do if it was a POST request ?
>
>
>
> --
> Ing. Andrea Vettori
> Consulente per l'Information Technology
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186850.ezm (zipped)Thanks.
It would also be nice to solve using struts2 objects...
Il giorno 27/mag/08, alle ore 18:03, dusty ha scritto:
>
> That is a problem. Normally, in the world of redirects you have a
> handle on
> the current request (POST) and you can dispatch that with the POST
> method
> and parameters in tact. But since we have to store the URL and then
> recreate the POST later, then I the only thing I can think of (or
> found by
> googling) is that you actually have to create a POST request with
> something
> like HttpClient! Not ideal.
>
> If I get some time, I will dig into the Spring Security code and see
> how
> they do it, since I am sure its handled there...
>
>
>
> Andrea Vettori wrote:
>>
>>
>> Il giorno 27/mag/08, alle ore 17:35, dusty ha scritto:
>>
>>>
>>> So you are talking to the ActionInvocation and getting the
>>> components of the
>>> request and then constructing the URL.... If you don't want to
>>> recreate the
>>> URL you could decend a little lower in your interceptor and get the
>>> HttpRequest. From there you can get the URL as it was sent to the
>>> server
>>> and store that.
>>
>>
>> But what can I do if it was a POST request ?
>>
>>
>>
>> --
>> Ing. Andrea Vettori
>> Consulente per l'Information Technology
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/-S2--Can-an-interceptor-save-the-request-to-use-it-later---tp17484291p17493853.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
--
Ing. Andrea Vettori
Consulente per l'Information Technology

Attachment:
user_186846.ezm (zipped)
What does your action look like that provides the list?
Varun Deep wrote:
>
>
>
> Request to All
>
> I am using pagination with display tag in struts2. Following is the code
> I included in my jsp file.
> I also include all the jar file. And tld files. In the respective
> folders
> 1.try
> <%@(protected)" %>
>
> The EmployeeList is coming from the Action file.
>
> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
> <display:table name=" listofEmployee " pagesize="4" class="simple"
> id="row">
> <display:column property="name" />
> </display:table>
> I also include all the jar file. And tld files. In the respective
> folders. And using them as necessary.
>
>
>
> I also try to perform the following code:
> ------------------------------------------------
> 2. try
>
> Web.xml
> <jsp-config>
> <taglib>
>
> <taglib-uri>http://displaytag.sf.net</taglib-uri>
>
> <taglib-location>displaytag.tld</taglib-location>
> </taglib>
> </jsp-config>
>
> employee. Jsp
>
> <%@(protected)" %>
>
> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
> <display:table name=" listofEmployee " pagesize="4" class="simple"
> id="row">
> <display:column property="name" />
> </display:table>
> I also include all the jar file. And tld files. In the respective
> folders. And using them as necessary.
>
> ------------------------------------------------------------------------
> -------------------------------------
> 3. try
> Web.xml
> <jsp-config>
> <taglib>
>
> <taglib-uri>/WEB-INF/displaytag.tld</taglib-uri>
>
> <taglib-location>displaytag.tld</taglib-location>
> </taglib>
> </jsp-config>
>
> employee. Jsp
>
> <%@(protected)" %>
>
> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
> <display:table name=" listofEmployee " pagesize="4" class="simple"
> id="row">
> <display:column property="name" />
> </display:table>
> I also include all the jar file. And tld files. In the respective
> folders. And using them as necessary.
>
> ------------------------------------------------------------------------
> -------------------------------------
>
> 4. try
>
> Web.xml
> <jsp-config>
> <taglib>
>
> <taglib-uri>http://displaytag.sf.net</taglib-uri>
>
> <taglib-location>displaytag.tld</taglib-location>
> </taglib>
> </jsp-config>
>
> employee. Jsp
>
> <%@(protected)" %>
>
> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
> <display:table name=" listofEmployee " pagesize="4" class="simple"
> id="row">
> <display:column property="name" />
> </display:table>
> I also include all the jar file. And tld files. In the respective
> folders. And using them as necessary.
>
> ------------------------------------------------------------------------
> --------------------------------------------------------------
> Problem.
>
> But it shows nothing, not even any error message.
>
> Please Please help me. And suggest me how I have to move
>
> Thanks in advance
>
> Varun
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_186861.ezm (zipped)OSGi is case sensitive right? replace
<s:set name="listofEmployee" value="EmployeeList" scope="request"/>
with
<s:set name="listofEmployee" value="employeeList" scope="request"/>
musachy
On Tue, May 27, 2008 at 11:38 AM, dusty <dustin_pearce@(protected):
>
> What does your action look like that provides the list?
>
>
>
> Varun Deep wrote:
>>
>>
>>
>> Request to All
>>
>> I am using pagination with display tag in struts2. Following is the code
>> I included in my jsp file.
>> I also include all the jar file. And tld files. In the respective
>> folders
>> 1.try
>> <%@(protected)" %>
>>
>> The EmployeeList is coming from the Action file.
>>
>> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
>> <display:table name=" listofEmployee " pagesize="4" class="simple"
>> id="row">
>> <display:column property="name" />
>> </display:table>
>> I also include all the jar file. And tld files. In the respective
>> folders. And using them as necessary.
>>
>>
>>
>> I also try to perform the following code:
>> ------------------------------------------------
>> 2. try
>>
>> Web.xml
>> <jsp-config>
>> <taglib>
>>
>> <taglib-uri>http://displaytag.sf.net</taglib-uri>
>>
>> <taglib-location>displaytag.tld</taglib-location>
>> </taglib>
>> </jsp-config>
>>
>> employee. Jsp
>>
>> <%@(protected)" %>
>>
>> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
>> <display:table name=" listofEmployee " pagesize="4" class="simple"
>> id="row">
>> <display:column property="name" />
>> </display:table>
>> I also include all the jar file. And tld files. In the respective
>> folders. And using them as necessary.
>>
>> ------------------------------------------------------------------------
>> -------------------------------------
>> 3. try
>> Web.xml
>> <jsp-config>
>> <taglib>
>>
>> <taglib-uri>/WEB-INF/displaytag.tld</taglib-uri>
>>
>> <taglib-location>displaytag.tld</taglib-location>
>> </taglib>
>> </jsp-config>
>>
>> employee. Jsp
>>
>> <%@(protected)" %>
>>
>> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
>> <display:table name=" listofEmployee " pagesize="4" class="simple"
>> id="row">
>> <display:column property="name" />
>> </display:table>
>> I also include all the jar file. And tld files. In the respective
>> folders. And using them as necessary.
>>
>> ------------------------------------------------------------------------
>> -------------------------------------
>>
>> 4. try
>>
>> Web.xml
>> <jsp-config>
>> <taglib>
>>
>> <taglib-uri>http://displaytag.sf.net</taglib-uri>
>>
>> <taglib-location>displaytag.tld</taglib-location>
>> </taglib>
>> </jsp-config>
>>
>> employee. Jsp
>>
>> <%@(protected)" %>
>>
>> <s:set name="listofEmployee" value="EmployeeList" scope="request"/>
>> <display:table name=" listofEmployee " pagesize="4" class="simple"
>> id="row">
>> <display:column property="name" />
>> </display:table>
>> I also include all the jar file. And tld files. In the respective
>> folders. And using them as necessary.
>>
>> ------------------------------------------------------------------------
>> --------------------------------------------------------------
>> Problem.
>>
>> But it shows nothing, not even any error message.
>>
>> Please Please help me. And suggest me how I have to move
>>
>> Thanks in advance
>>
>> Varun
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Pagination-problem-with-struts2%2CPlease-Please--help-me.-tp17466353p17493322.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_186847.ezm (zipped)Thanbks for the infomation.
my question was that i want touse DOJO 1.x with STruts2 but hvae no idea how
to configure DOJO 1.x with Struts2 Project.
if any body there using this can point me out the way , how to use DOJo 1.x
independently with Struts2 without using Struts2 Ajax Tag.
Thanks in advance,
-aum
On 5/27/08, duschhaube <duschhaube@(protected):
>
> Hi,
>
>
> with dojo 1.1 you can use different versions of dojo.
> look here
> http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page
>
> so you can use dojo1.1 and dojo-struts-tags (dojo0.43) at the same time
>
> aum strut schrieb:
>
>> Hi All,
>>
>> Is there any one who is using DOJO 1.X with the Struts2.
>>
>> we are aslo trying to use DOJO with Struts2(Without using struts2 ajax
>> tags)
>>
>>
>>
>> Thanks & Regards,
>> aum
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_186852.ezm (zipped)Exactly as you would use Dojo 1.x in any web application or web site:
deploy the Dojo distribution within your web application, reference
dojo.js in a script tag in your page and away you go. There is nothing
'special' about using Dojo with Struts once you take the Ajax tags out
of the picture.
See the Dojo documentation for introductory tutorials and such. They
will work just as well for a Struts app.
L.
aum strut wrote:
> Thanbks for the infomation.
>
> my question was that i want touse DOJO 1.x with STruts2 but hvae no idea how
> to configure DOJO 1.x with Struts2 Project.
> if any body there using this can point me out the way , how to use DOJo 1.x
> independently with Struts2 without using Struts2 Ajax Tag.
>
>
> Thanks in advance,
> -aum
>
>
> On 5/27/08, duschhaube <duschhaube@(protected):
>> Hi,
>>
>>
>> with dojo 1.1 you can use different versions of dojo.
>> look here
>> http://dojotoolkit.org/book/book-dojo/part-3-javascript-programming-dojo-and-dijit/multiple-versions-dojo-page
>>
>> so you can use dojo1.1 and dojo-struts-tags (dojo0.43) at the same time
>>
>> aum strut schrieb:
>>
>>> Hi All,
>>>
>>> Is there any one who is using DOJO 1.X with the Struts2.
>>>
>>> we are aslo trying to use DOJO with Struts2(Without using struts2 ajax
>>> tags)
>>>
>>>
>>>
>>> Thanks & Regards,
>>> aum
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_186851.ezm (zipped)All,
What are my options if I want to use a confirm when a user clicks a
S2 anchor? Its an anchor that will remove something, so I want the user
to confirm that before the database gets touched. Currently the confirm
is not there, and when you click the anchor, the item is removed. No
bueno. Time to do it right.
E. Ryan Stanley
Phone: 720.578.3703
Pager: 801.482.0172
<mailto:exstanl@(protected)>
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

Attachment:
user_186855.ezm (zipped)Stanley, Eric wrote:
> All,
> What are my options if I want to use a confirm when a user clicks a
> S2 anchor? Its an anchor that will remove something, so I want the user
> to confirm that before the database gets touched. Currently the confirm
> is not there, and when you click the anchor, the item is removed. No
> bueno. Time to do it right.
Your options are the same as in any other HTML + Javascript context. At
simplest, use an onclick="javascript:confirm('prompt')" type construct.
You should really consider putting the guard logic server-side, though,
so it isn't bypassed if Javascript is disabled in the user's browser
(depending how critical the delete operation is).
L.

Attachment:
user_186859.ezm (zipped)Laurie,
Thanks for the quick reply, but I have tried that. It does
display the confirm window, but the users approval/denial has no effect.
The record gets removed regardless. What am I missing? Im sure it's a
simple thing :)
-Ryan
-----Original Message-----
From: news [mailto:news@(protected)
Sent: Tuesday, May 27, 2008 11:21 AM
To: user@(protected)
Subject: Re: Javascript in S2
Stanley, Eric wrote:
> All,
> What are my options if I want to use a confirm when a user clicks
> a
> S2 anchor? Its an anchor that will remove something, so I want the
> user to confirm that before the database gets touched. Currently the
> confirm is not there, and when you click the anchor, the item is
> removed. No bueno. Time to do it right.
Your options are the same as in any other HTML + Javascript context. At
simplest, use an onclick="javascript:confirm('prompt')" type construct.
You should really consider putting the guard logic server-side, though,
so it isn't bypassed if Javascript is disabled in the user's browser
(depending how critical the delete operation is).
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

Attachment:
user_186860.ezm (zipped)You have to return "false" from that function in order to cancel the
submit. It is a javascript thing, as far as Struts is concerned,
anything you put into "onclick" will be passed outputted to the
onclick event in the generated html.
musachy
On Tue, May 27, 2008 at 1:46 PM, Stanley, Eric <Eric.R.Stanley@(protected):
> Laurie,
> Thanks for the quick reply, but I have tried that. It does
> display the confirm window, but the users approval/denial has no effect.
> The record gets removed regardless. What am I missing? Im sure it's a
> simple thing :)
>
> -Ryan
>
> -----Original Message-----
> From: news [mailto:news@(protected)
> Sent: Tuesday, May 27, 2008 11:21 AM
> To: user@(protected)
> Subject: Re: Javascript in S2
>
> Stanley, Eric wrote:
>> All,
>> What are my options if I want to use a confirm when a user clicks
>> a
>> S2 anchor? Its an anchor that will remove something, so I want the
>> user to confirm that before the database gets touched. Currently the
>> confirm is not there, and when you click the anchor, the item is
>> removed. No bueno. Time to do it right.
>
> Your options are the same as in any other HTML + Javascript context. At
> simplest, use an onclick="javascript:confirm('prompt')" type construct.
> You should really consider putting the guard logic server-side, though,
> so it isn't bypassed if Javascript is disabled in the user's browser
> (depending how critical the delete operation is).
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> This communication is the property of Qwest and may contain confidential or
> privileged information. Unauthorized use of this communication is strictly
> prohibited and may be unlawful. If you have received this communication
> in error, please immediately notify the sender by reply e-mail and destroy
> all copies of the communication and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_186862.ezm (zipped)Musachy / Laurie,
Thanks for setting me straight. Working perfectly. Laurie, at a
high level, how would you use the backend to do this? I'd like to go
this way, but ive never done it before. Thanks for any input :)
-Ryan
-----Original Message-----
From: Musachy Barroso [mailto:musachy@(protected)]
Sent: Tuesday, May 27, 2008 11:51 AM
To: Struts Users Mailing List
Subject: Re: Javascript in S2
You have to return "false" from that function in order to cancel the
submit. It is a javascript thing, as far as Struts is concerned,
anything you put into "onclick" will be passed outputted to the onclick
event in the generated html.
musachy
On Tue, May 27, 2008 at 1:46 PM, Stanley, Eric
<Eric.R.Stanley@(protected):
> Laurie,
> Thanks for the quick reply, but I have tried that. It does
> display the confirm window, but the users approval/denial has no
effect.
> The record gets removed regardless. What am I missing? Im sure it's a
> simple thing :)
>
> -Ryan
>
> -----Original Message-----
> From: news [mailto:news@(protected)
> Sent: Tuesday, May 27, 2008 11:21 AM
> To: user@(protected)
> Subject: Re: Javascript in S2
>
> Stanley, Eric wrote:
>> All,
>> What are my options if I want to use a confirm when a user clicks
>> a
>> S2 anchor? Its an anchor that will remove something, so I want the
>> user to confirm that before the database gets touched. Currently the
>> confirm is not there, and when you click the anchor, the item is
>> removed. No bueno. Time to do it right.
>
> Your options are the same as in any other HTML + Javascript context.
> At simplest, use an onclick="javascript:confirm('prompt')" type
construct.
> You should really consider putting the guard logic server-side,
> though, so it isn't bypassed if Javascript is disabled in the user's
> browser (depending how critical the delete operation is).
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> This communication is the property of Qwest and may contain
> confidential or privileged information. Unauthorized use of this
> communication is strictly prohibited and may be unlawful. If you have
> received this communication in error, please immediately notify the
> sender by reply e-mail and destroy all copies of the communication and
any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_186858.ezm (zipped)I can't seem to get my action-specific resource bundle to be found.
My action class is in the com.tmw.applicant.tracking.actions package.
It is named ApplicationStartAction.
Should my resource bundle be named "ApplicationStart.properties" or
"ApplicationStartAction.properties"?
Should it be located in the root of the classes directory or in the
com.tmw.applicant.tracking.actions package?
FWIW, I have successfully retrieved messages from a global resource
bundle in this app. But I'd like to have the option of specifying
action specific resources.
Thanks,
Wes

Attachment:
user_186863.ezm (zipped)ANSWER:
The action class must extend
com.opensymphony.xwork2.ActionSupport in
order to get the default resource bundle look-up functionality, which
will allow resources in <Action Name>.properties and <Action
Name>_locale.properties to be loaded.
Wes