Last Page Regenration

2006-11-08 Thread Balwinder
Hi All !! I have a situation in my application, i want to implement a functionality that does, if a user accidentally close his browser window, on his next request(in new window) to the application he should be displayed with the last page he visited this should happen after login(authenticat

Regeneration of last page visited.

2006-11-08 Thread Balwinder
Hi All, I have a situation, it goes like this; If user is accessing application (build on struts) and accidentally he close the browser, on revisit to the same application by the same user, user after login should get the last page he was working on. I am working on cookies option but someho

Transaction control in Struts

2006-11-08 Thread Balwinder
Hi everyone!! What option struts provide for handling transaction(atomicity) in application. Thanks in advance. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Ajax in Struts 1.x , && what about SSL in Struts 2.x

2006-11-08 Thread robin bajaj
Hi All, I am using Struts 1.2.x for my web app. I have a navigation functionality on my forms (*Prev, Next, First , Last) for navigating through the records. My client does not like the whole page refreshing when any of the navigation buttons is clicked. Is that something that I can avoid by usi

Re: struts configuration tweaking

2006-11-08 Thread Wendy Smoak
On 11/8/06, Laurie Harper <[EMAIL PROTECTED]> wrote: You can either use prefix mapping (/do/*) or suffix mapping (*.do). Unfortunately, you can't mix them, using one style for some requests and the other for other requests. Struts doesn't support having multiple servlet mappings for ActionServle

Re: struts configuration tweaking

2006-11-08 Thread Laurie Harper
Tejesh Shetty wrote: I am currently using struts-1.2.8 and in my web.xml all '*.do' are handled by ActionServlet. So in my form action value is '/contextRoot/logon.do'. Now I want couple of my actions to be handled without .do but not all of them. So say for logon I want struts to kick in when

Re: Confused by issue with being directed to index.jsp

2006-11-08 Thread Laurie Harper
Patel, Rahul wrote: Hi All, I have a very confusing issue at hand that I have been trying to solve for a couple of days. I have a Struts-based application where my index.jsp has only one line Further, once the user logs in, he is forwarded to applications based on his feature access. Thou

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Chris Pratt
OK, now I'm scared. It's fixed and I can't figure out why? Earlier I made the change to make sure that securityfilter came before I18NFilter in the chain but the text was still showing up French. I put a bunch of debugging code in (over hours and many, many tests) and now I can't reproduce the

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Benedict wrote: > In Struts 1.3.6, I hope to be providing a locale solution for Struts > which is not tied to the session. Does struts rely on the session for locale information? I would have expected a null session to result in a call to

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Chris Pratt
Will it work with JSTL as well? That would be very nice. (*Chris*) On 11/8/06, Paul Benedict <[EMAIL PROTECTED]> wrote: In Struts 1.3.6, I hope to be providing a locale solution for Struts which is not tied to the session. Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Has

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Paul Benedict
In Struts 1.3.6, I hope to be providing a locale solution for Struts which is not tied to the session. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: Yes, I'm using mainly JSTL to display data on the page (fmt:message) and they're all showi

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > Yes, I'm using mainly JSTL to display data on the page (fmt:message) and > they're all showing up in French. I put one bean:message on the page just > as a test and it is correctly displaying English. Hmm. It looks like t

Re: checkbox issue

2006-11-08 Thread Wendy Smoak
On 11/3/06, fea jabi <[EMAIL PROTECTED]> wrote: When this jsp is first loaded the checkbox above is unchecked. When user checked the checkbox, and clicked a submit save button, in the save method of dispatch action I was expecting to see the split value as "true". But it was "false" when I debu

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Chris Pratt
Yes, I'm using mainly JSTL to display data on the page (fmt:message) and they're all showing up in French. I put one bean:message on the page just as a test and it is correctly displaying English. (*Chris*) On 11/8/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSA

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Pratt wrote: > It seems that the next time SecurityFilter gets run after a > Session.invalidate(), it calls Session.invalidate() itself which was > throwing out the values set by I18NFilter. Really? So, it's killing your new session? It

Re: Losing Locale after Sesion.invalidate()

2006-11-08 Thread Chris Pratt
OK, I've found the root of one of the two mysteries. I was using my I18NFilter (from the original email) and SecurityFilter ( http://securityfilter.sourceforge.net/) and I had SecurityFilter mapped before I18NFilter in my web.xml. It seems that the next time SecurityFilter gets run after a Sessi

Re: checkbox issue

2006-11-08 Thread Chris Pratt
I personally haven't had good luck with Dynamic Form Beans that use anything but java.lang.String's. You might want to try changing the java.lang.Boolean to a String, you should get "on" as the value if it is checked. (*Chris*) On 11/8/06, fea jabi <[EMAIL PROTECTED]> wrote: well the class na

Re: checkbox issue

2006-11-08 Thread fea jabi
well the class name and the form-bean name are same. I tried removing the name attribute in html:checkbox too but, have same issue. Is there anything else I can try? Thanks. From: "Chris Pratt" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subjec

Re: checkbox issue

2006-11-08 Thread Chris Pratt
The name parameter of the html:checkbox is the name of a bean, not the name of a class. If you remove the name attribute, it will default to the form bean associated with the html:form surrounding the html:checkbox, which is probably what you want. (*Chris*) On 11/8/06, fea jabi <[EMAIL PROTECT

RE: checkbox issue

2006-11-08 Thread fea jabi
can someone help me with this please. Thanks. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: checkbox issue Date: Fri, 03 Nov 2006 17:30:09 -0500 struts-config The below form-bean is session scoped and hence using reset.

Re: Cannot Retrieve Request Parameter

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Harrison wrote: > CreditCardPaymentAction >StringBuffer parms = makeParms(userVO, creditCardForm, props); >sendRequest(conn, parms); > private void sendRequest(HttpURLConnection conn, StringBuffer parms) >{ >

Re: Two values on "input" attribute

2006-11-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thom, Thom Burnett wrote: > First, I found my error and it's (of course) not in any of the code listed. > I had neglected the import statements in the jsp pages. :-( That always helps. So, your JSPs weren't compiling or something? It's odd that it wo

Re: Two values on "input" attribute

2006-11-08 Thread Martin Gainty
The simplest way to show the error in browser is to capture the OutputStream for the Response Object and stream the exception code,/desc/whatever back to the user as in this example- response.getOutputStream().out("Exception text is "+excp.getMessage()); if you want to dress it up you can use cs

struts configuration tweaking

2006-11-08 Thread Tejesh Shetty
I am currently using struts-1.2.8 and in my web.xml all '*.do' are handled by ActionServlet. So in my form action value is '/contextRoot/logon.do'. Now I want couple of my actions to be handled without .do but not all of them. So say for logon I want struts to kick in when form action value is

Re: Struts2, "model-driven" interceptors

2006-11-08 Thread Ted Husted
With model-driven, we don't need to prefix the property references with "model." or "user.". We can also do things like mix and match properties from the model and the Action, without adding extra references. For example, a model object might have a password property, but it won't have a passwordC

Re: [s2] JSP or Freemarker or Velocity ?

2006-11-08 Thread Ted Husted
On 11/8/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: I've started with the archetype, which is using Freemarker and Sitemesh, neither of which I'm familiar with. If you mean you're starting a project, you might want to start with the blank application instead. It's designed so that you don't have

Re: [s2] JSP or Freemarker or Velocity ?

2006-11-08 Thread Ted Husted
From a project perspective, they are all supported equally, and I believe we have committers that are using one or the other in production. We tend to provide most of the examples in JSP, since most people are at least familiar with JSP (lowest common denominator). How close are we to a stable

RE: [s2] JSP or Freemarker or Velocity ?

2006-11-08 Thread Juan Espinosa
Im doing some testing with sitemes and i have problem with decorator and excludes with the urls. When i call an action like /Login.action that returns me a login.jsp page, the jsp page is not decorated because the url in the browser is /Login.action and not the resource i want to show. To solve i

[s2] JSP or Freemarker or Velocity ?

2006-11-08 Thread Wendy Smoak
Is one of the view technologies recommended or better supported than the others? I've started with the archetype, which is using Freemarker and Sitemesh, neither of which I'm familiar with. Before I switch to JSP and Tiles, (assuming I can figure out how...) is there anything I should know? (As

Re: Two values on "input" attribute

2006-11-08 Thread Thom Burnett
First, I found my error and it's (of course) not in any of the code listed. I had neglected the import statements in the jsp pages. :-( So you can ignore this question but it does bring up another one. Is there a way to get warnings or error messages when I've made a mistake like this in the jsp?

Cannot Retrieve Request Parameter

2006-11-08 Thread Robert Harrison
I am trying to post a payment to a vendor and receive a response from the vendor that the payment has been received. Servlet "CreditCardPaymentAction" posts the payment information to the vendor and returns null. The postback url is "http://xxx/CreateUser.do"; which maps to the "CreateUserAction"

Re: Two values on "input" attribute

2006-11-08 Thread Thom Burnett
I tried this technique for my situation where several jsp pages contribute to one ActionForm. I'm getting the correct page selection behavior by my errors don't show up. For the first page (the donation page) everything works very nicely. For the second page (the honoree page) there's no trace of

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Doh, missed a ... regards On 11/8/06, Greg Reddin <[EMAIL PROTECTED]> wrote: On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: > Vinicius Carvalho ha scritto: >> I have a list that is going to be iterated, and the bean inside it >> will be checked, depending on a certain flag a tiles defini

Struts2, "model-driven" interceptors

2006-11-08 Thread frankiestd168
this is a question for Struts2 interceptors.. I saw some examples, the action class implements ModelDriven, So this function is added in action class: public Object getModel() { return user; } Then jsp can directly access the properties of the User object. Beside this, what is the ben

Confused by issue with being directed to index.jsp

2006-11-08 Thread Patel, Rahul
Hi All, I have a very confusing issue at hand that I have been trying to solve for a couple of days. I have a Struts-based application where my index.jsp has only one line Further, once the user logs in, he is forwarded to applications based on his feature access. Though, for some reason,

Re: Simple Question about Tiles

2006-11-08 Thread Greg Reddin
On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition will be used to display the content, kinda like this: And the list goes on

Re: Struts problem, random properties after every restart of server

2006-11-08 Thread Ed Griebel
I have never experienced this problem, so this is a guess. Since it always comes up in German, it seems like the German locale is set somewhere either in the app server or operating system configuration. Did you check the locale setting on your client's machine and for the user that Orion is runni

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Hi there Antonio, thanks for the quick response. I did not specified, the code is pretty much the same I'm using (only the bean name is other) Inside my tiles I have this: <%@ page language="java" contentType="text/html" pageEncoding="ISO-8859-1"%> <%@ include file="include/taglibs.jsp" %> SIM

Re: Simple Question about Tiles

2006-11-08 Thread Antonio Petrelli
Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition will be used to display the content, kinda like this: And the list goes on ... Now, inside my tiles I need to access someBean.

Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Hello there! I have a simple question on Tiles usage, hope I get some advice here. I know this is not the best usage for it, but we have a kinda of emergency here... I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition

Re: How to pass Java parameter to javascript

2006-11-08 Thread Martin Gainty
set the value in hidden field/pass to JS function/set JD param to value of hidden field ..example located at http://javaboutique.internet.com/tutorials/strutstand/index-2.html Anyone else? M- This e-mail communication and any attachments may contain confidential and privileged information for th

RE: Please unsubscribe me

2006-11-08 Thread hegerich_mike
I have also tried many times to no avail. If I could be removed too, that would be appreciated. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Tuesday, November 07, 2006 3:28 AM To: Struts Users Mailing List; Kiren KN Pillay Subjec

RE: SiteMesh

2006-11-08 Thread Juan Espinosa
Ah, your excludes are mapped to your actionswhen i tried to mapp my excludes to an action it works. But i dont want to map to an action, i want to map the exclude to a jsp page. This is the thing that is not working. Thanks ted for your help Regards, Juan -Mensaje original-

Re: SiteMesh

2006-11-08 Thread Tom Ziemer
Hello Juan, I don't know about Struts2 - in Struts 1.2 it works like this: Link -> LoginAction.do -> login.jsp where LoginAction.do will perform some work, and then forward to login.jsp without redirecting. My SiteMesh excludes are mapped to the actions and not to the JSPs. Unfortunately I know a

RE: SiteMesh

2006-11-08 Thread Juan Espinosa
This is my problem IE link ==> Customer!input.action ==> /private/login.jsp the url of my request is ??? http://www.mysite.com/Customer!input.action, sitemes look on the excludes but there is no exclude for this url, so it decorate the page rendered But really this url is a page, no. the the

Re: SiteMesh

2006-11-08 Thread Tom Ziemer
Hi Juan, I am not sure I really get your problem. However, I assume, your problem lies in forwarding. Are you redirecting (redirect="true") to the JSP in your struts-config.xml? If so, disable the forwarding and this ought to fix your problem, otherwise a new request is issued that will not match

RE: SiteMesh

2006-11-08 Thread Juan Espinosa
Hi Tom as you say i made some changes, i create a sitemesh file and put the line you told me but it didnt work. I google for this problem and i could realise that many people have this problem. The problem is that if i call an action like this Area privada the resource that im getting is Customer

Re: How to pass Java parameter to javascript

2006-11-08 Thread Puneet Lakhina
On 11/8/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi All, I am unable to pass a java parameter to a javascript method. Can you please tell whats going wrong. Here is my code: You got to do something like this ' Submit regards, Pankaj -- Puneet