Re: i18n Interceptor cookie

2019-02-20 Thread Lukasz Lenart
śr., 20 lut 2019 o 13:21 Rita Brito napisał(a): > I am defining an i18n interceptor with name="localeStorage">cookie so that a cookie with the user's > selected language is stored. > > Everything is working fine if when I navigate in my domain (eg: > my.domai

i18n Interceptor cookie

2019-02-20 Thread Rita Brito
Hi, I am defining an i18n interceptor with name="localeStorage">cookie so that a cookie with the user's selected language is stored. Everything is working fine if when I navigate in my domain (eg: my.domain.com/somepage.html). However, when navigating to a subdomain (

Re: Cookie in struts2

2013-05-15 Thread john lee
thanks, in my program, after i import it, the compile error is gone. From: Chris Pratt To: Struts Users Mailing List Cc: john lee Sent: Wednesday, May 15, 2013 4:54 PM Subject: Re: Cookie in struts2 Ah, my bad, you are correct, Dave. John, like Dave

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
Ah, my bad, you are correct, Dave. John, like Dave pointed out, you should be using: import javax.servlet.Cookie; Cookie[] cookieList = ServletActionContext.getRequest().getCookies(); (*Chris*) On Wed, May 15, 2013 at 2:41 PM, Dave Newton wrote: > (With the caveat that the interface

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
27;s a good post on handling Cookies in Struts 2: > http://omkarp.blogspot.com/2007/07/working-with-cookies-in-struts2.html > (*Chris*) > > > On Wed, May 15, 2013 at 2:14 PM, Dave Newton > wrote: > > > Import the Cookie class, and get the cookies from the request, not

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
> Import the Cookie class, and get the cookies from the request, not the > class of the request? > > Dave > > > > On Wed, May 15, 2013 at 4:56 PM, john lee wrote: > > > > > > > I have no difficulty to handle cookie in struts 1, but have lots of err

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
Import the Cookie class, and get the cookies from the request, not the class of the request? Dave On Wed, May 15, 2013 at 4:56 PM, john lee wrote: > > > I have no difficulty to handle cookie in struts 1, but have lots of error > in struts 2 > > i have the following program

Cookie in struts2

2013-05-15 Thread john lee
I have no difficulty to handle cookie in struts 1, but have lots of error in struts 2 i have the following program public class SecurityVerifySessionIntercepter extends AbstractInterceptor implements ServletResponseAware, ServletRequestAware { Map session= ActionContext.getContext

Re: Update Cookie JSESSIONID

2013-04-04 Thread Antonios Gkogkakis
the existing session but does not create a new > > one. > > > > > > > > To create a new session you have to call request.getSession(true); on > > the > > > > HttpServletRequest, Struts will do that for you if you attempt to put > > > > something in the i

Re: Update Cookie JSESSIONID

2013-04-04 Thread Peter Lin
new session you have to call request.getSession(true); on > the > > > HttpServletRequest, Struts will do that for you if you attempt to put > > > something in the invalidated session using ActionContext.getContext(). > > > getSession().put > > > >

Re: Update Cookie JSESSIONID

2013-04-04 Thread Antonios Gkogkakis
t; > > > > > > > > On 4 April 2013 14:44, Peter Lin wrote: > > > > > That is exactly my problem. The application server does not send a new > > > JSESSIONID back to browser as long as a JSESSIONID cookie came with the > > > original request,

Re: Update Cookie JSESSIONID

2013-04-04 Thread Peter Lin
).put > > > > > On 4 April 2013 14:44, Peter Lin wrote: > > > That is exactly my problem. The application server does not send a new > > JSESSIONID back to browser as long as a JSESSIONID cookie came with the > > original request, even I specifically invalidate

Re: Update Cookie JSESSIONID

2013-04-04 Thread Antonios Gkogkakis
back to browser as long as a JSESSIONID cookie came with the > original request, even I specifically invalidate session and create a new > one. > > What is work-around? Do we have a way to block JSESSIONID cookie come to > my specific URL/action? > > > > Thanks, >

Re: Update Cookie JSESSIONID

2013-04-04 Thread Peter Lin
That is exactly my problem. The application server does not send a new JSESSIONID back to browser as long as a JSESSIONID cookie came with the original request, even I specifically invalidate session and create a new one. What is work-around? Do we have a way to block JSESSIONID cookie come to

Re: Update Cookie JSESSIONID

2013-04-03 Thread JOSE L MARTINEZ-AVIAL
Are you creating a new session after invalidating the original one? If you do that, the server should send a new JSESSIONID cookie to the client on the response. Otherwise I don't know how your server will work, but I assume it will not sent any cookie back to the client, and therefore the br

Re: Update Cookie JSESSIONID

2013-04-03 Thread Peter Lin
store some data for other action classes to use. But my application server still pick the old JSESSIONID as the identifier of the new session - it is a security hole. Before an user invokes my authentication action class, he needs to enter username/password to the form. I tried to set JSESSIONID cookie

RE: Update Cookie JSESSIONID

2013-04-03 Thread Martin Gainty
leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Wed, 3 Apr 2013 15:23:09 -0500 > Subject: Update Cookie JSESSIONID > From: peterli...@gmail.com > To: user@struts.apache.org > > Due to our server always picks up the

Update Cookie JSESSIONID

2013-04-03 Thread Peter Lin
Due to our server always picks up the old JSESSIONID for creating a new user session if a cookie JSESSIONID has been passed - Waiting for Basis team to solve it. I tried to set the cookie JSESSIONID to expired before display the login screen, but failed. I just wonder can I block the JSESSIONID

Re: exception while setting cookie

2011-11-28 Thread Maurizio Cucchiara
" ha scritto: It seems that your cookie is bigger than the maximum admitted(which is 4k). 2011/11/28 Debraj Mallick > *my action : * > > public class SetCookie...

Re: exception while setting cookie

2011-11-28 Thread JOSE L MARTINEZ-AVIAL
It seems that your cookie is bigger than the maximum admitted(which is 4k). 2011/11/28 Debraj Mallick > *my action : * > > public class SetCookieAction extends ActionSupport implements > ServletRequestAware, ServletResponseAware { > > private List ingredientBeanL

Re: exception while setting cookie

2011-11-28 Thread Debraj Mallick
(); ingredientBeanList = ingredientService.obtainAllIngredientsByUserId(new Long(2)); String gstr = gson.toJson(ingredientBeanList); String str = Base64.encode(gstr.getBytes()); Cookie mycookie = new Cookie("ingredientList", str); mycookie.setMaxAge(60*60*24*365); servletResponse.addCookie(mycookie);

Re: exception while setting cookie

2011-11-28 Thread Łukasz Lenart
I don't see any connections with Struts 2 code, could you provide more details and the whole stack trace ? Regards -- Lukasz 2011/11/28 Debraj Mallick : > hi all, > > i am setting cookie form action and i am getting exception : > > org.apache.catalina.connector.CoyoteAdap

exception while setting cookie

2011-11-28 Thread Debraj Mallick
hi all, i am setting cookie form action and i am getting exception : org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.ArrayIndexOutOfBoundsException org.apache.coyote.http11.AbstractHttp11Processor

Re: Cookie Manipulation attack

2010-05-27 Thread Alex Rodriguez Lopez
and index_ar.jsp the parameter is passed as the POST variable. Now we conducted a security testing in which it was shown that the parameter has been changed in to some meta tag for cookie manipulation. If I try changing the parameter the dispatch action will throw an error

Cookie Manipulation attack

2010-05-27 Thread Vishnu Vyasan Nelliparmbil
variable. Now we conducted a security testing in which it was shown that the parameter has been changed in to some meta tag for cookie manipulation. If I try changing the parameter the dispatch action will throw an error java.lang.NoSuchMethodException: Now how could I redirect

Re: Cookie Intercepter configuration

2009-02-11 Thread Musachy Barroso
ast week... > > http://www.nabble.com/CookiesInterceptor-config-missing-in-2.1.6-to21790815.html > > Later, > > Andy > > -- > View this message in context: > http://www.nabble.com/Cookie-Intercepter-configuration-tp21922591p21953827.html > Sent from the Struts - User mai

Re: Cookie Intercepter configuration

2009-02-11 Thread Andy Law
rence: > > https://issues.apache.org/struts/browse/WW-2992 > > Well, I guess that answers my question from last week... http://www.nabble.com/CookiesInterceptor-config-missing-in-2.1.6-to21790815.html Later, Andy -- View this message in context: http://www.nabble.com/Cookie-I

Re: Cookie Intercepter configuration

2009-02-10 Thread Dave Newton
Norris Shelton wrote: Correct, that is the only action that needs cookie information. I believe I was misunderstood. I'm saying that the cookie interceptor is the *only* interceptor that will be called for that action--again, this may be what you intended, but that is something diff

Re: Unable to specify cookie intercepter via annotation

2009-02-10 Thread Musachy Barroso
; */ >@Action(interceptorRefs = { >@InterceptorRef(value = "cookie", params = {"cookiesName", "*", > "cookiesValue", "*"}), >@InterceptorRef("defaultStack")}) >public String execute() throws Exception { >

Unable to specify cookie intercepter via annotation

2009-02-10 Thread Norris Shelton
(interceptorRefs = { @InterceptorRef(value = "cookie", params = {"cookiesName", "*", "cookiesValue", "*"}), @InterceptorRef("defaultStack")}) public String execute() throws Exception { Logger log = LoggerF

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
Thanks! From: Musachy Barroso To: Struts Users Mailing List Sent: Tuesday, February 10, 2009 10:35:01 AM Subject: Re: Cookie Intercepter configuration It is a bug. This interceptor was added in 2.0.7, and it was never added to struts-default.xml in the 2.1

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
t;org.apache.struts2.interceptor.CookieInterceptor"/> > > for reference: > > https://issues.apache.org/struts/browse/WW-2992 > > musachy > > On Tue, Feb 10, 2009 at 10:27 AM, Musachy Barroso wrote: >> Where is the cookie interceptor defined? it is not in struts-default.xml: >

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
the cookie interceptor defined? it is not in struts-default.xml: > > http://struts.apache.org/2.x/docs/struts-defaultxml.html > > hum..this is weird. > > musachy > > On Tue, Feb 10, 2009 at 9:08 AM, Norris Shelton > wrote: >> >"-//Apache Software

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
That is a very good question. Is it supposed to be in the default? I assumed it was there. From: Musachy Barroso To: Struts Users Mailing List Sent: Tuesday, February 10, 2009 10:27:42 AM Subject: Re: Cookie Intercepter configuration Where is the cookie

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
Where is the cookie interceptor defined? it is not in struts-default.xml: http://struts.apache.org/2.x/docs/struts-defaultxml.html hum..this is weird. musachy On Tue, Feb 10, 2009 at 9:08 AM, Norris Shelton wrote: > "-//Apache Software Foundation//DTD Struts Configuration

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
Yes, look at the Convention docs: http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-InterceptorRefannotation musachy On Tue, Feb 10, 2009 at 8:48 AM, Norris Shelton wrote: > Correct, that is the only action that needs cookie information. > > Is there so

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
009 8:55:11 AM Subject: Re: Cookie Intercepter configuration what's the file:/C:/dev/sun/sjas9_1_u2/domains/domain1/applications/j2ee-modules/conap/WEB-INF/classes/struts.xml:17:44 show text! -- From: "Norris Shelton" Sent: Tuesday,

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
Correct, that is the only action that needs cookie information. Is there some way to configure this via annotations/Convention plugin? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton

Re: Cookie Intercepter configuration

2009-02-10 Thread Jack Qu
g List" Subject: Re: Cookie Intercepter configuration Is there a library that I should be including? [#|2009-02-10T08:19:42.441-0500|INFO|sun-appserver9.1|org.apache.struts2.spring.StrutsSpringObjectFactory|_ThreadID=22;_ThreadName=httpWorkerThread-4848-1;|... initialized Struts-Spring

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116) Caused by: Unable to find interceptor class referenced by ref-name cookie - interceptor-ref - file:/C:/dev/sun/sjas9_1_u2/domains/domain1/applications/j2ee

Re: Cookie Intercepter configuration

2009-02-09 Thread Dave Newton
Norris Shelton wrote: Struts 2.1.6 on Glassfish 9.1_02 I am trying to configure the cookie intercepter, but it looks like I am missing something. I have the following in my struts.xml: * * Also be aware

Re: Cookie Intercepter configuration

2009-02-09 Thread Musachy Barroso
There should be a more meaningful exception down there in the log, can you post the whole stack trace? musachy On Mon, Feb 9, 2009 at 4:38 PM, Norris Shelton wrote: > Struts 2.1.6 on Glassfish 9.1_02 > > I am trying to configure the cookie intercepter, but it looks like I am

Cookie Intercepter configuration

2009-02-09 Thread Norris Shelton
Struts 2.1.6 on Glassfish 9.1_02 I am trying to configure the cookie intercepter, but it looks like I am missing something. I have the following in my struts.xml: * * My server errors when I try to deploy the

Struts 2.1.x - Cookie inteceptor in whar .jar??

2008-11-19 Thread Burton Rhodes
I keep getting this error on startup... "SEVERE: Unable to find interceptor class referenced by ref-name cookie - interceptor-ref" I assume I don't have the correct jar file in my class path. Anyone know which one contains the cookie intercepto

[S2] Filter Cookie

2007-02-14 Thread ekoje ekoje
Hi Guys, I would like to check a cookie every time a user try to access my website. So, I've created an interceptor, it work fine but it didn't work if the user ask for a JSP page. The interceptor was never called. So, I've created a filter who check all cookies at every reque

Re: Defining dynamic default value for a cookie [*]

2006-08-28 Thread Andreas . Hartmann
Hello Puneet! I could solve my problem now on my own :-). I addressed the class directly in the jsp-file: The created symlinks I mentioned in the other post are not needed any more. Kind regards, Andreas Hartmann - To unsu

Antwort: Re: Defining dynamic default value for a cookie [*]

2006-08-28 Thread Andreas . Hartmann
Hello Puneet, I tried your solution, but I'm getting now another error: Generated servlet error: Integrationmenuform cannot be resolved to a type I wrote the following in the jsp: My web.xml from conf-dir with the init-params: jsp org.apache.jasper.servlet.JspServlet

Re: Defining dynamic default value for a cookie

2006-08-28 Thread Andreas Hartmann
Hello Puneet! Puneet Lakhina wrote: > On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >> >> Hello! >> >> I'm trying to define a default value in the jsp for a cookie, but I don't >> know >> how to do it :-(. >> >&

Re: Defining dynamic default value for a cookie

2006-08-28 Thread Puneet Lakhina
On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello! I'm trying to define a default value in the jsp for a cookie, but I don't know how to do it :-(. I've go the following piece of code: ... ... I would like to have the output from the bean:write - tag a

Defining dynamic default value for a cookie

2006-08-28 Thread Andreas . Hartmann
Hello! I'm trying to define a default value in the jsp for a cookie, but I don't know how to do it :-(. I've go the following piece of code: ... ... I would like to have the output from the bean:write - tag as input for the value in the bean::cookie - tag: does not work

RE: Efficient session object and cookie checks in struts

2006-04-17 Thread George.Dinwiddie
Jeff Thorne wrote: > I have been reading that it May be more > efficient to just pass the resultset back to the view rather > Than deal with the overhead of several transfer objects. Does > this make sense? I don't thinks so. 1. Object creation time is trivial compared with database access tim

Re: Efficient session object and cookie checks in struts

2006-04-16 Thread Frank W. Zammetti
less efficient that defining a new base class? Cheers, Jeff -Original Message- From: David Evans [mailto:[EMAIL PROTECTED] Sent: Saturday, April 15, 2006 8:25 AM To: Struts Users Mailing List Subject: RE: Efficient session object and cookie checks in struts Instead of scattering the sessi

RE: Efficient session object and cookie checks in struts

2006-04-16 Thread Jeff Thorne
: David Evans [mailto:[EMAIL PROTECTED] Sent: Saturday, April 15, 2006 8:25 AM To: Struts Users Mailing List Subject: RE: Efficient session object and cookie checks in struts Instead of scattering the session/cookie checks throughout your actions, you could make a BaseSecurityCheckAction that does

RE: Efficient session object and cookie checks in struts

2006-04-15 Thread David Evans
Instead of scattering the session/cookie checks throughout your actions, you could make a BaseSecurityCheckAction that does the check and then have the actions which need the checks extend the base action. In Webwork and therefore Struts 2, you'll be able to implement this as an interceptor

RE: Efficient session object and cookie checks in struts

2006-04-15 Thread Jeff Thorne
Andy, Thanks for the response. I not 100% sure the session/cookie checks were slowing me down. I just had a hunch that there must be a better way To implement these checks than to scatter them about my jsp and action classes. My site acts like a portal for members and the member home page must

Re: Efficient session object and cookie checks in struts

2006-04-15 Thread Adam Hardy
Jeff Thorne on 15/04/06 06:19, wrote: My struts application maintains 2 small objects in the user’s session. One is for the users location info (mandatory) and the other is the User Object (optional). I also save 2 cookies one being the user’s location info (mandatory) and the other the user’s sa

Efficient session object and cookie checks in struts

2006-04-14 Thread Jeff Thorne
My struts application maintains 2 small objects in the user’s session. One is for the users location info (mandatory) and the other is the User Object (optional). I also save 2 cookies one being the user’s location info (mandatory) and the other the user’s saved login credentials (optional) to m

RE: Cookie

2006-04-01 Thread Ruben Cepeda
I've never done it myself but this might try to add the cookie with a null value in theresponse object. response.addCookie(new Cookie("targetName",null)); Let me know if works. * Ruben Cepeda [

Re: [ot] Cookie

2006-03-29 Thread Laurie Harper
Marcio Ghiraldelli wrote: How do I unset a Cookie with a Struts Action? Not sure, but I think you need to call addCookie() and pass in a cookie with the right name and a null value. L. - To unsubscribe, e-mail: [EMAIL

Cookie

2006-03-29 Thread Marcio Ghiraldelli
How do I unset a Cookie with a Struts Action?

Re: using tiles and setting a cookie

2006-02-22 Thread brian papa
method is overidden and ignores any attempt to change a header - in my case, a cookie. Does anybody have any experience with this? Should I just move the cookie setting into an action? Is this a problem I will only see in Tomcat (since ApplicationHttpResponse is in a catalina package)? Is there so

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
Oops, meant to question the presence of the Response there. On 2/21/06, Dave Newton <[EMAIL PROTECTED]> wrote: > brian papa wrote: > > I'm starting to think now that perhaps I'm doing this in the wrong > > place. After all the purpose of a controller should simply be to > > prepare data for render

Re: using tiles and setting a cookie

2006-02-21 Thread Dave Newton
brian papa wrote: > I'm starting to think now that perhaps I'm doing this in the wrong > place. After all the purpose of a controller should simply be to > prepare data for rendering in a JSP tile. I'm wondering though if this > is the case what the purpose is of having the HttpServletRequest as a

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
ose is of having the HttpServletRequest as a parameter to a Controller? I'm now considering moving my database code into an action, and then setting the cookie in there before handing off to a slimmed-down controller. On 2/21/06, David G. Friedman <[EMAIL PROTECTED]> wrote: > Brian, &g

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
: brian papa [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 6:59 PM To: Struts Users Mailing List Subject: Re: using tiles and setting a cookie Yeah that doesn't seem to be the problem, and the ".mysite.com" is working with an Action anyway... setting the cookie the same

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
Yeah that doesn't seem to be the problem, and the ".mysite.com" is working with an Action anyway... setting the cookie the same exact way. I'm wondering if this is some trouble with tiles. I see using my debugger that the internals of the Response object in a Controller se

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
Have you tried it without the domain setting to ensure that your chosen domain of ".mysite.com" isn't interfering with the cookie handoff? There is the possibility that the browser is configured to accept anything other than the exact hostname, though you have probably looke

Re: using tiles and setting a cookie

2006-02-21 Thread brian papa
I was unaware of that actually. But, even outside of the debugger the cookie isn't seen on the client side. And it isn't seen on the next request. Here's some of the code - In the controller class (it's an abstract class): public void execute(ComponentContext componentContext

RE: using tiles and setting a cookie

2006-02-21 Thread David G. Friedman
Brian, When and where are you looking for a value change with your debugger? You do know that the cookie won't be seen until the response ends, right? The NEW cookie is given to the client's browser and won't be seen by the server until the client's next request. Can you

using tiles and setting a cookie

2006-02-21 Thread brian papa
I'm having a problem setting a cookie inside of a Controller class. My custom controller extends from the base Controller class. Inside of my class, I'm simply trying to set a cookie to the HttpServletResponse. Inside of a Strut Action class, it's been working just fine. But in

Re: [OT] Cookie

2005-12-14 Thread Alexandre Poitras
Yeah your right. I wasn't clear in my explanations. It would only allow you to use it on a https connection so it is sent encrypted on the network. It means your cookie will be unavailable when the user connect through a normal Http connection (http). It will only be available through a Htt

Re: [OT] Cookie

2005-12-14 Thread Tamas Szabo
According to my knowledge cookie.setSecure(true) doesn't encrypt anything. If you call it then the cookie will be sent over only over a secure connection. So if you have an unsecure connection the cookie will not be used. Tamas On 12/14/05, Deepa Khetan <[EMAIL PROTECTED]> wrote:

Re: [OT] Cookie

2005-12-14 Thread Deepa Khetan
o i need to use some tool for it?? Actually, before implementing it, i need to tell all the pros and cons for secured Cookies to my client. So, i need to do my homework thoroughly. On 12/14/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > If you set this property to true, your

Re: [OT] Cookie

2005-12-13 Thread Paul Benedict
If you setSecure(true), the cookie will ONLY be available through HTTPS. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [OT] Cookie

2005-12-13 Thread Alexandre Poitras
If you set this property to true, your cookie will be sent over an HTTP/SSL (https) connection. What it means is that every value to be stored in this cookie are encrypted before being sent on the network. This way, any malicious third party who are *sniffing* the network can't read the valu

[OT] Cookie

2005-12-13 Thread Deepa Khetan
Hi!! I am not geting any help from net about this issue. So, postin this question on this group. I want to know exactly what difference does it make if i set Cookie.setSecure(true)?? I am using SSL in my application. What are the advantages or disadvantages of doing it from security point of view.

Re: How i can write cookie from a jsp file

2005-09-12 Thread Martin Gainty
Legolas Java has a cookie class you can use http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Cookie.html be mindful of the RFC2109 name for the first parameter HTH, Martin- - Original Message - From: "Legolas Woodland" <[EMAIL PROTECTED]> To: "Struts User

How i can write cookie from a jsp file

2005-09-12 Thread Legolas Woodland
Hi Thank you in advance How i can write a cookie to client system from a jsp page , i mean when im proccessing a form submit in a jsp file i write its content as a cookie (for example). Thank you

Re: how to write cookie from a Struts jsp file

2005-09-10 Thread Laurie Harper
Legolas Woodland wrote: Hi Thank you for reading my post. How i can write a cookie from a Struts jsp file into client system ? I mean when user pressed sub,it button i write the cookie in a way that i can use it within logic:present and logic:notPresents tags . There are probably dozens of

how to write cookie from a Struts jsp file

2005-09-09 Thread Legolas Woodland
Hi Thank you for reading my post. How i can write a cookie from a Struts jsp file into client system ? I mean when user pressed sub,it button i write the cookie in a way that i can use it within logic:present and logic:notPresents tags .

Re: Cookie problem is killing me

2005-09-09 Thread Martin Gainty
host1.foo.com and host2.foo.com to share cookies, but not a.com and b.com. " when in doubt your domain name should specify wither the FQDN or the IP HTH, Martin- - Original Message - From: "David Thielen" <[EMAIL PROTECTED]> To: Sent: Thursday, September 08, 2005 11:46

Cookie problem is killing me

2005-09-08 Thread David Thielen
Hi; No this isn't a struts problem - but this is driving me up the wall and there are a lot of smart people here. This is all on my system - Windows XP / IIS 5.1. So I am hitting localhost from IE to tomcat. When I add a cookie to the HttpServletResponse, if I leave the cookie d

Asking again: Need advice - 3rd party cookie

2005-09-06 Thread David Thielen
Hi; I need some advice on how to implement something. I have two websites, windwardreports.com and windward.net. When someone comes to windwardreports.com, I need to save a cookie in windward.net. This cookie is then used on windward.net to identify them as the same person on windwardreports.com

Need advice - 3rd party cookie

2005-09-03 Thread David Thielen
Hi; I need some advice on how to implement something. I have two websites, windwardreports.com and windward.net. When someone comes to windwardreports.com, I need to save a cookie in windward.net. This cookie is then used on windward.net to identify them as the same person on

sort-of off topic: How to do a 3rd party cookie

2005-08-21 Thread David Thielen
Hi; I have 2 domains. I need to get a cookie from domain A to domain B. Is the best way to do this to have a http://www.domainb.com/servlet&cookie=value&cook ie=value - And if so: 1. Anyone have some sample servlet code for this so I don't have to re-invent the whee

Re: Accessing Cookie information

2005-07-15 Thread Richard Reyes
MAIL PROTECTED] > > the value seems like a result of Object#toString(). > so, at least you can access methods of Cookie class like > <%= > ((javax.servlet.http.Cookie)pageContext.getAttribute("use

Re: Accessing Cookie information

2005-07-14 Thread ichy
Hi, Rechard. 2005/7/15, Richard Reyes [EMAIL PROTECTED]: > > The value of > > <%= pageContext.getAttribute("username") %> > > is > > [EMAIL PROTECTED] the value seems like a result of Object#toString(). so, at least you

Re: Accessing Cookie information

2005-07-14 Thread Richard Reyes
working . > > What version are you on now? I assume you've gone from Tomcat 5 back to > Tomcat 4.1. If so, then JSTL and Struts-EL will get you close to what you > had. > > You can also read the cookie and set the form property in the Action, before > forwarding to the JSP.

Re: Accessing Cookie information

2005-07-07 Thread Wendy Smoak
hat version are you on now? I assume you've gone from Tomcat 5 back to Tomcat 4.1. If so, then JSTL and Struts-EL will get you close to what you had. You can also read the cookie and set the form property in the Action, before forwarding to the JSP. Without testing it, I don't see

Accessing Cookie information

2005-07-07 Thread Richard Reyes
Hello Guys, I have this code... . . down the line i need to access the bean and set it to an input field. . . previously i was using EL but the webapp was deployed in an older version of tomcat where EL is not working . I tried this <%= pageContext.getAttribute("username") %> but its not wo

Re: how to save last 5 searches in the cookie?

2004-12-13 Thread Derek Broughton
uld strongly recommend saving your User preferences etc back up to the > Server via "Session" attributes My 2 cents, How do you get a virus from a cookie? As a matter of habit, I don't accept cookies, but it's a privacy

RE: how to save last 5 searches in the cookie?

2004-12-13 Thread Ron Day
How are you maintaining your session: URL Rewriting?? -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 4:35 PM To: Struts Users Mailing List Subject: Re: how to save last 5 searches in the cookie? Personally I dislike cookies and dont allow

Re: how to save last 5 searches in the cookie?

2004-12-13 Thread Webmaster
Server via "Session" attributes My 2 cents, Martin -Original message- From: "Yadav, Ganesh" [EMAIL PROTECTED] Date: Mon, 13 Dec 2004 13:00:21 -0500 To: [EMAIL PROTECTED] Subject: how to save last 5 searches in the cookie? > Hello All. > > I have a requireme

RE: how to save last 5 searches in the cookie?

2004-12-13 Thread Jim Barrows
> -Original Message- > From: Yadav, Ganesh [mailto:[EMAIL PROTECTED] > Sent: Monday, December 13, 2004 11:00 AM > To: [EMAIL PROTECTED] > Subject: how to save last 5 searches in the cookie? > > > Hello All. > > I have a requirement to save last 5 searche

how to save last 5 searches in the cookie?

2004-12-13 Thread Yadav, Ganesh
Hello All. I have a requirement to save last 5 searches in the cookie. In other words, saving last 5 set of "search param- value" pairs in cookie. Retrieve them and show these 5 searches in Combo box. So whenever user select one, he should have his search screen params filled u

RE: More generic cookie question

2004-12-10 Thread Jim Barrows
> -Original Message- > From: Nagiel, Shahak (Mission Systems) [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 09, 2004 11:33 AM > To: [EMAIL PROTECTED] > Subject: More generic cookie question > > > We have a customized login/authentication scheme in our si

More generic cookie question

2004-12-09 Thread Nagiel, Shahak \(Mission Systems\)
s the lack of cookie access somehow requiring an additional round-trip to the server that's preventing this from working? Thanks in advance, <mailto:[EMAIL PROTECTED]> Shahak Nagiel

Re: Definite Cookie Weirdness (logic:notPresent help)

2004-09-21 Thread Bill Siggelkow
Use 'cookie' not 'name' COOKIE Not FOUND Also, remember that you will be looking at the cookies in the request -- not any that have been set in the response. One other thing, if you truly want to comment out JSP tags so they are not translated you must

Definite Cookie Weirdness (logic:notPresent help)

2004-09-21 Thread CCNY
Alright, I'm definitely in need of help now. I'm SURE I'm setting the cookie in the response, but I cant get to work as I expect. Help! What am I doing wrong? -JSP----- COOKIE Not FOUND JAVA in Action Class-

Re: Checking a cookie or redirecting - best way? (Getting ERROR, Help!)

2004-09-21 Thread CCNY
Daniel I'm following this example : http://j2ee.masslight.com/Chapter5.html and it seems to have the /> at the end. I think I must be confused. Could I have a bad TLD? Also, the tag is telling me the cookie isn't there. (I see the notpresent=true message below. JSP: NO

  1   2   >