RE: jsession id in url
Another approach is to use urlrewrite filter (http://tuckey.org/urlrewrite/) and configure an outbound rule to get rid of the jsessionid=XYZ part: remove outbound jsessionid ^(.*);jsessionid=[^\?]*(.*)$ $1$2 Hansen -Original Message- From: Paul Benedict [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Wednesday, October 04, 2006 9:33 PM To: Struts Users Mailing List Subject: Re: jsession id in url 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 Griebel wrote: > 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 reason why the jsessionid is appended the first time is that the > web server cannot know _a priori_ if a browser has enabled cookies. > Only when the web server gets a second request from the browser with a > jsession id cookie can it assume that it has cookies and will strip > the jsessionid from future requests. > > -ed > > On 10/4/06, sunil virmani <[EMAIL PROTECTED]> wrote: >> 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 >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 回覆: RE: Session without cookies
Michael, It would help isolate the problem if you can use firefox's LiveHttpHeaders http://livehttpheaders.mozdev.org/ to examine Set-Cookies header from tomcat and Cookie header to tomcat. HTH Hansen -Original Message- From: Chan Michael [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 3:22 AM To: Struts Users Mailing List Subject: 回覆: RE: Session without cookies Hi, The test is done within the same tab in firefox. Thanks. Michael --- abdurrahman sahin <[EMAIL PROTECTED]> �f: > are you sure that u did not start a new browser process each time.? > because sessions are browser process based. > starting a new process and opening a new window within a browser > window are different things. > > http://asahin.net > > > -Original Message- > From: Chan Michael > [mailto:[EMAIL PROTECTED] > Sent: Monday, April 24, 2006 12:18 PM > To: user@struts.apache.org > Subject: Session without cookies > > > Hi All, > > I have been searching for hours and still cannot find any useful info. > Hope you can help. > > I am building a Struts app. (Struts 1.2.4 + Tomcat > 5.5 > + Apache 2.0.55 + Spring 1.2.6) and want to use > session without > enabling cookies. I use to create links so ;jsessionid is > appended to the end. Fine. The problem I have is every time I access a > page, a new session id is created so essentially everything stored in > session is lost. Here is some output from my test action, > test.do: > > test.do > = > HttpSession session = request.getSession(); System.out.println("Is > session new? " + session.isNew()); System.out.println("Session id: " + > session.getId()); > > First access > = > Is session new? true > Session id: B9F9E135DCBAC90AB2B5AEBCE901FAA5 > > Second access > = > Is sesssion new? false > Session id: 8CCE7A388E76C0F56016E8F41E29E0E5 > > The session is not new but the id is different...I already set in > Tomcat server.xml > > > > What am I missing?? > > Thanks in advance. > > Michael > > ___ > YM - �x息 > > 就算你�]有上�W,你的朋友仍可以留下��息�o你,��你上�W�r就能立即看到,任何�f > ��都�幼呤А� > http://messenger.yahoo.com.hk > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ YM - �x息 就算你�]有上�W,你的朋友仍可以留下��息�o你,��你上�W�r就能立即看到,任何�f��都�幼呤А� http://messenger.yahoo.com.hk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:option on a nested collection
Do something like this: You also need to add "action" property to your app class. This is to hold the input specified by Hansen -Original Message- From: Shoukat, Faisal [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 10:37 AM To: Struts Users Mailing List Subject: RE: html:option on a nested collection I have this working using the following code: <% String literal =(String) act; %> But as you can see I am using java in the jsp: can anyone advise of some other way of doing this -Original Message- From: Vinit Sharma [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 15:35 To: Struts Users Mailing List Subject: Re: html:option on a nested collection Try using: If act is the third element in the list apps. On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > When I do the below in the form it submits > {exampleFormBean.apps.actions.act} > > As the value. I have a getter defined for apps in the formbean and in > apps there is a getter for actions. > > There is no getter for act as this is deifined in the iterate tag > > Still stuck!! > > -Original Message- > From: Vinit Sharma [mailto:[EMAIL PROTECTED] > Sent: 23 March 2006 15:01 > To: Struts Users Mailing List > Subject: Re: html:option on a nested collection > > You can use EL extention of html tag and use something like this: > > name="act"/> > > Assuming getters are defined for all properties. > > Regds, > > > On 3/23/06, Shoukat, Faisal <[EMAIL PROTECTED]> wrote: > > > > Hi Guys, > > > > > > > > I have a formBean which has a collection of objects within it called > Apps. > > Each App object has several fields with one of these fields being a > > collection or list of Strings. > > > > > > > > ExampleFormBean properties are > > > > > > > > String Name > > > > String Class > > > > String Student > > > > List apps > > > > > > > > Each app object looks like this > > > > String first > > > > String second > > > > List actions. --- This is a collection of Strings > > > > > > > > I am trying to display the actions of the app object in a drop down > list. > > But am having a few problems with the option tag. > > > > > > > > So far I have this: > > > > > > > > > > > > > > > > > indexId="index"> > > > > > name="act"/> > > > > > > > > > > > > > > > > > > > > This code displays the drop down with the correct string values showing. > > However where I have put one above as the option value I actually > > want > to > > put something like the actual String i.e: . > > > > > > > > Does anyone know how I can do this. I have tried html:options and > > optionscollections but could not get them to work. > > > > > > > > If the suggestion is to go with nested tags please provide an > > example as > I > > could not get far with this either. > > > > > > > > Secondly, If I submit the form but have modified two rows from the > > drop down when I get to the action class how can I know which rows I > > have > modified. > > > > > > > > Thanks in advance > > > > > > > > > > > > > -- > Vinit Sharma > > > > > The Northgate IS Content Screening and Inspection system has scanned > this message for malicious and inappropriate content and none was > found. Please take care when opening attachments even when these are > expected and from known and trusted sources. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Vinit Sharma The Northgate IS Content Screening and Inspection system has scanned this message for malicious and inappropriate content and none was found. Please take care when opening attachments even when these are expected and from known and trusted sources. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Controller element question
Use SecureTilesRequestProcessor and SecureTilesPlugin from sslext to use tiles and sslext. Hansen -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 10:25 AM To: Struts Users Mailing List Subject: Re: Controller element question This scenario was the main driving force for moving the RequestProcessor to a Chain of Commands in Struts 1.3. I believe sslext has a tiles RequestProcessor version but anyway in Struts 1.2.x you don't have much option but to create multiple flavours. Probably the only thing you can do to make life easier is to plug your functionality into "helper" classes that you call from whatever flavours of RequestProcessors you require. In Struts 1.3 then its just a case of adding and/or replacing the appropriate commands. http://struts.apache.org/struts-action/userGuide/building_controller.htm l#request_processor Niall - Original Message - From: "Scott Purcell" <[EMAIL PROTECTED]> To: Sent: Friday, March 03, 2006 2:09 PM Subject: Controller element question The struts-config.xml has an element named in which you can add the "processorClass" attribute. Currently a project I am working on is using the TileRequestProcessor as the value of the processorClass attribute. I want to be able to use the TilesRequestProcessor, but also I have written a class that does some setup and I have created a class that extends the RequestProcessor. So now I have two different classes that need to be entered in the controller element. Further down the road, I envision also needing the sslExt which is a class that extends the RequestProcessor. Is there a way to call multiple classes here, or do I need to create one massive class and combine all three of the functionality? I really don't know how to handle this. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.
Here are what I have used for the past few years: 1. javaservlethosting.com, reliable and flexible hosting service with very low prices, no private JVM, but can reload webapps from control panel. 2. godaddy's (virtual) dedicated server, very good value and service. Do not purchase control panel if you can manager the server. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 11:50 AM To: Struts Users Mailing List Subject: Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list. On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote: > > www.kattare.com has been stellar so far. We had to work through some > issues to setup Roller, and they accomodated me at ever step. Wow, very nice. Thanks Ted. The only thing is I'd need to host a few addon domains and it appears I'd have to jump from the 3.1 level to the corporate account at 40/month http://www.kattare.com/services_pricing.kvws in order to achieve this. When things are running smoothly I really love what I get for the money at hostforweb with the supreme package http://hostforweb.com/hosting_supreme.html . I haven't found anything close to what they offer for the buck... but I guess now they're trying to jam too many accounts on each server and customer support has gone down recently also (I've been several tickets today without a response back and I still can't access my site http://www.learntechnology.net/ .). -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to retain form data when disabling input in html:text
That is display problem. You can use css to make the field gray or red etc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 3:57 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED]; Struts Users Mailing List Subject: Re: How to retain form data when disabling input in html:text Thanks Craig: I worked for what I wanted to achieve. Only with read-only property setting, it does not grey out input text field. I have to find out what to set so that it changes appearance when read-only property is set. Thanks. Digant "Craig McClanahan" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 02/21/2006 05:14 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: Subject:Re: How to retain form data when disabling input in html:text On 2/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have I > populate html:text with data from DB. > I want to disable input for this property, but when I get form data > back in Action form bean does not have data for this > property "bucketName" > > How do i retain data after disabling input in html:text. Short answer ... you cannot. By defintion in HTML, disabled fields are not sent to the server, so the server has no opportunity to keep them for you. On the other hand, if you make the field read only instead of disabled, the value *will* be sent to the server ... but the user will not be able to edit it. Thanks. Craig This communication is for informational purposes only. It is not intended > as an offer or solicitation for the purchase or sale of any financial > instrument or as an official confirmation of any transaction. All > market prices, data and other information are not warranted as to > completeness or accuracy and are subject to change without notice. Any > comments or statements made herein do not necessarily reflect those of > JPMorgan Chase & Co., its subsidiaries > and affiliates > > > This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]