Re: cannot get parameter value in action class passed using html:link

2006-10-04 Thread Antonio Petrelli
Hi Vinod Vinod Kumar ha scritto: Hi Antonio, Thanks for your response. 1. I am not using any filter and if i am not wrong, then tomcat 3.3.2 does support filters since it implements servlet 2.2 specs. Uh, right! Well i cannot know everything :-) I am not sure if paramters from

How to set html:link as a post method

2006-10-04 Thread Thanigaivelan . Murugan
Hi All, I need to set html:link as a post method, caz I need to avoid the parameter values to be catched in the histories in case of the GET method request. can anyone send me some suggestions. Thanks, Thanigai M. This electronic mail message is intended solely for the named recipients

DynaForm and Indexed properties

2006-10-04 Thread Strachan, Paul
Hi All, I'm already familiar with the basic process of using DynaForm with String properties (to capture the HTTP request params) and then copying the DynaForm values to a business object. form-bean name=TestForm type=forms.TestForm form-property name=firstName type=java.lang.String initial=/

RE: How to set html:link as a post method

2006-10-04 Thread Strachan, Paul
maybe you can wrap your anchor in a Form and use the onclick event handler to set the value and submit the form by post method, using hidden attributes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 October 2006 4:49 PM To: user@struts.apache.org

[OT][ANN] Video for BOF 21 Max Antoni's Object Oriented JavaScript AJAX

2006-10-04 Thread Peter . Pilgrim
Hi All Some news from the JAVAWUG, UK. Max Antoni's presentation on Object Oriented JavaScript and AJAX is available now http://video.google.com/videoplay?docid=379277225413483138hl=en More details here and here http://jroller.com/page/javawug?entry=bof_21_report

Re: session management

2006-10-04 Thread purushottam hegde
So you know when exactly 30 mins elapses? right.? immedietly after this you can invalidate the session right? Regards PH On 10/3/06, sowjanya chimmani [EMAIL PROTECTED] wrote: Hi All, In our webapplication (struts based) we are using Ajax code (as part of header in all

New twist on old topic? Back button issue with Token

2006-10-04 Thread pantichd
Hello, Forgive me for bringing up what seems to be a topic that's been discussed here a lot: Issues with the back button. I am using the token mechanism to prevent multiple form submits. My jsp is invoked with a ForwardAction where I set the token. The jsp submits to an action that checks if

Re: session management

2006-10-04 Thread Ed Griebel
It is not clear what you are asking. Is the problem that - the session is not being maintained even when setting the timeout to 30 minutes - even after 1/2 hour the session does not timeout An observation, pinging the server every 10 seconds will create a lot of unnecessary work on the server.

Re: removing jsessionid from the URL

2006-10-04 Thread sunil virmani
Hi All, In my application in each request jsessionid is passed both in cookie as well as in url. I have enabled the cookie then why it is appearing in the URL also. Regards, Sunil On 9/7/06, Antonio Petrelli [EMAIL PROTECTED] wrote: sunil virmani ha scritto: But Is there any way to hide

jsession id in url

2006-10-04 Thread sunil virmani
Hi All, In my application in each request jsessionid is passed both in cookie as well as in url. I have enabled the cookie then why it is appearing in the URL also. Regards, Sunil

tomcat/struts...

2006-10-04 Thread maya
I'm just starting to learn struts.. have been doing JSP/servelts/tomcat for about three years.. downloaded and am running successfully example 5 from this pg.. http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html am using tomcat 5.5/jvm 1.4 this struts example (and all other

Re: Check a multibox dynamically

2006-10-04 Thread Uday Karrothi
Hi thre, I am trying to give you an example. Multibox basically fills in using a string array. i am sure you are aware of that. logic:iterate id=apprEntry name=listDevApprGrpList indexId=userIndex html:multibox property=toBeAddedList bean:write name=apprEntry property=userID/

Re: jsession id in url

2006-10-04 Thread Ed Griebel
http://www.junlu.com/msg/287317.html As stated in above response to (your) similar question, the first request that is returned will have jsessionid= appended. To get rid of it you can try having the first page of the application be a dummy page that merely redirects to the real page. The

[struts2] redirecting to a struts action in a filter

2006-10-04 Thread Garner Shawn
I have a filter and I'm trying to check a session value is set for security. I'm putting my filter to the /admin/* url mapping. My filter is getting hit but then if I try to do a redirect to a struts action it seems like I get some kind of infinite filter loop and is choking, I'm kind of new is

Re: [struts2] redirecting to a struts action in a filter

2006-10-04 Thread Don Brown
Sounds like you have the situation under control - you are probably forwarding to an /admin/ action. As for the redirect, from a servlet filter, a plain redirect is the best approach. Don On 10/4/06, Garner Shawn [EMAIL PROTECTED] wrote: I have a filter and I'm trying to check a session value

How to access JSP variables inside Tiles

2006-10-04 Thread Vinod Kumar
Hi All, I have included printable.jsp page in the layout-tiles file. I have some jsp variables (such as href, onchange etc see below in file) in printable.jsp, which i want to use inside tiles such as top.jsp, bottom.jsp but i cannot use those variables as they are not available. I get

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Chris Pratt
How about basing the value of the tag on some computed value involving the data in question (like adding up all the hashcodes and using that as the token value). Then if the data changes, it's a different token? (*Chris*) On 10/4/06, pantichd [EMAIL PROTECTED] wrote: Hello, Forgive me for

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Jason King
If the user has a workflow that involves cycling back, give them a link or button to cycle back with. If the users need to use the back button as a regular part of their use of the application the application is poorly designed. Chris Pratt wrote: How about basing the value of the tag on some

Re: [struts2] redirecting to a struts action in a filter

2006-10-04 Thread Chris Pratt
Normally, with filters you chain when you're finished, not redirect. The only time you would redirect would be if the user wasn't logged in and you wanted to redirect to your login page and then a plain ol' redirect should work fine as long as you don't redirect to a page that's also under the

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
That's because it's a JSP include, not a tile. JSP knows nothing about the tile scope and since the inclusion gets done by the JSP processor, not the tiles plugin, the tile variables aren't available. Make that a tile instead and you shouldn't have a problem. (*Chris*) On 10/4/06, Vinod Kumar

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Chris Pratt
I don't know if I agree with your last statement. I often prefer to use the back button rather than buttons that are on the screen right in front of my face, so it's often much less about site design and more about user preference. But not accounting for someone using the back button, that

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread pantichd
Chris Pratt wrote: How about basing the value of the tag on some computed value involving the data in question (like adding up all the hashcodes and using that as the token value). Then if the data changes, it's a different token? (*Chris*) Interesting! Hadn't thought of that. Have

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Chris Pratt
Sorry, I haven't, it just seemed to make sense. (*Chris*) On 10/4/06, pantichd [EMAIL PROTECTED] wrote: Chris Pratt wrote: How about basing the value of the tag on some computed value involving the data in question (like adding up all the hashcodes and using that as the token value).

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Jason King
Using the token does account for the user hitting the back button. Having been building web apps for almost 10 years now, I'm very much of the back button is evil school. If there's an element on the page that allows going to the beginning of the workflow and token is used to prevent

Re: New twist on old topic? Back button issue with Token

2006-10-04 Thread Chris Pratt
True, I definitely wouldn't use my suggested token trick in an eCommerce app to allow resubmitting an order, unless you could back out the old order and put this one in it's place (but even that would be risky). It might be useful to determine if you should show the user a page asking if they

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
If they are tile scope variables, you either need to put tiles:importAttribute/ at the top of the page to put them in page scope or use the tiles tags to insert the values (like tiles:getAsString name=href/) (*Chris*) On 10/4/06, Vinod Kumar [EMAIL PROTECTED] wrote: Hi Chris, I made the

Problem with validator

2006-10-04 Thread Frank W. Zammetti
Hello... trying to use Commons Validator 1.3.0 with Struts 1.2.9, seeing the following error... anyone have any ideas? Everything seems fine until the first check... config files follow trace. Thanks! 20061004-17:29:17,766 DEBUG [Servlet.Engine.Transports : 0] (ModuleUtils.java:167) Get module

Re: Problem with validator

2006-10-04 Thread Frank W. Zammetti
the following error... anyone have any ideas? Everything seems fine until the first check... config files follow trace. Thanks! 20061004-17:29:17,766 DEBUG [Servlet.Engine.Transports : 0] (ModuleUtils.java:167) Get module name for path /testView/testValidation.do 20061004-17:29:17,766 DEBUG

Re: Problem with validator

2006-10-04 Thread Wendy Smoak
On 10/4/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hello... trying to use Commons Validator 1.3.0 with Struts 1.2.9, seeing the following error... anyone have any ideas? Everything seems fine until the first check... config files follow trace. Thanks! In the config files you posted, the

making complex objects available for View to extract subobjects

2006-10-04 Thread J. Patrick Bedell
Hello, Sorry for what is surely a FAQ from a struts newbie... I'm trying to make a complex object available to my JSP so that code in the JSP can access subobjects within the original object (it's an Amazon Item object generated with XMLBeans). What is the right way to make such an object

Re: How to access JSP variables inside Tiles

2006-10-04 Thread Chris Pratt
Then you should be able to go to the outermost tile and use tiles:importAttribute scope=request/ after you've imported the tiles taglib and all the tile variables to be available to the jsp and jstl tags. (*Chris*) On 10/4/06, Vinod Kumar [EMAIL PROTECTED] wrote: Hi Chris, Thanks for your

Array of DynaForms

2006-10-04 Thread Strachan, Paul
Is it possible to define an ArrayList of DynaValidatorForm for working with indexed properties? Or can I construct a DynaForm class in my action class to add it to the Parent DynaForm array? ** This message is intended for

RE: Array of DynaForms

2006-10-04 Thread Strachan, Paul
Maybe rather than having a dynaForm with a single array I should be changing my form properties from String to String[]. If I do that am I still moving into the area of indexedPropoerties? I thought I had read about problems with validator and simple arrays? Any suggestions would be helpful

Placement of Application Logic

2006-10-04 Thread Asad Habib
I have a Struts action which extracts field values from the request object and then uses these values to set the name of a file which the application reads from. The code responsible for forming the file name currently resides in the action. Is this the best place to put it? This code cannot

Re: Placement of Application Logic

2006-10-04 Thread Frank W. Zammetti
That doesn't sound too egregiously wrong to me... generally speaking, the code in a Struts Action should basically fall in one of two categories (or both): flow control and/or data marshalling. Some also say validation should go in the Actions, but I'm going to put that debate aside for the

Re: [s2] calling defferent methods in action on submit button press

2006-10-04 Thread Tom Jerry
how about use of MappingDispatchAction ? On 10/3/06, Don Brown [EMAIL PROTECTED] wrote: If you want to call a different method on an action, use the method attribute: s:submit action=myAction method=update/ Don On 10/3/06, Garner Shawn [EMAIL PROTECTED] wrote: I'm trying to calldefferent

Re: jsession id in url

2006-10-04 Thread Paul Benedict
If you don't need session management, use the JSP page directive to turn off sessions -- at least until the user logs in, if you have that kind of website. The jsessionid is only for a stateful application, so if you don't need sessions, get rid of them. That will solve your problem. Paul Ed

plz unsubscribe me

2006-10-04 Thread Rohit Dadhwal

unsubscribe me from the list

2006-10-04 Thread Rohit Dadhwal