How to Protect the user to login in Multiple system (Multiple browser) when the session is active.

2007-06-05 Thread Srinivasula Reddy A , Bangalore
Hi Team, How to protect the user to login in multiple browsers when the session is action. For example in gmail if we login in one browser and we are surfing, then if we open another IE and type gmail it will redirect to the page where we are surfing in the previous IE. I need

How to Protect copying the URL in another explorer to access the data in Struts

2007-06-05 Thread Srinivasula Reddy A , Bangalore
Hi Team, How can protect copying or book marking URLs in my Struts application. Give me some sample snippet or rough idea. Regards, Sreenivasula Reddy A DISCLAIMER: --

javascript issue in jsp

2007-06-05 Thread Krishna, Hari \(FTT-CInternet\)
Hi all, I am working in a struts application. I am getting two peculiar problems with java script in jsp. PROBLEM1: When ever I enter "\" in the text box I am getting un terminated string constant error. Please find the code snippet which I am using in jsp' This is the line of

RE: display current date in header

2007-06-05 Thread Norbert Hirneisen
In your jsp: <%@ page import="java.util.Calendar"%> <%@ page import="java.util.Date"%> <%@ page import="java.text.*"%> <% // current Date Calendar cal = Calendar.getInstance(); Date currDate = cal.getTime(); SimpleDateFormat df = new SimpleDateFormat("dd.MM."); String showDate = df.format(cu

javascript issue in jsp

2007-06-05 Thread Krishna, Hari \(FTT-CInternet\)
Hi all, I am working in a struts application. I am getting two peculiar problems with java script in jsp. PROBLEM1: When ever I enter "\" in the text box I am getting un terminated string constant error. Please find the code snippet which I am using in jsp' This is the line of co

RE: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Al Sutton
It smells like a threading issue to me. Are the Action and the AxisServlet accessing the same resource, and if so are they doing it through a layer that implements caching?, my initialy thought is that somewhere a cached is being used for one, then returned to the other, then being cleared by one,

display current date in header

2007-06-05 Thread Ambaris Mohanty
Hi all, I'm using struts 1.2.9 along with Tiles. I want to display current date in the header page. Can anybody tell me the best approach to do so? Thank you, AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
On 6/5/07, Niall Pemberton <[EMAIL PROTECTED]> wrote: Might be a Tomcat issue - can you be more precise about the version of Tomcat 5.5? from org/apache/catalina/util/ServerInfo.properties server.info=Apache Tomcat/5.5 server.number=5.5.0.0 server.built=Sep 25 2005 10:08:45

Re: Properties files

2007-06-05 Thread vikas rao
Yeah, create a .properties file, have your key, value pairs in it. Write a simple java program like this at first to see how it works: import java.util.ResourceBundle; public class ConfigRead { public static ResourceBundle confdetails=ResourceBundle.getBundle(" JDomTrial.myconffile"); publi

Re: Properties files

2007-06-05 Thread Frank W. Zammetti
Comes with java itself .. grep java.util.Properties Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1)

Properties files

2007-06-05 Thread Asaf Paris Mandoki
Is there a standard way to read properties files I create? Maybe a jakarta commons library? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Niall Pemberton
On 6/6/07, Jeff Amiel <[EMAIL PROTECTED]> wrote: Recent issue is driving me batty. Suddenly started receiving exceptions in app server logs (tomcat a la jboss)... Servlet.service() for servlet AxisServlet threw exception java.lang.IllegalStateException org.apache.catalina.connector.ResponseFaca

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
On 6/5/07, Dave Newton <[EMAIL PROTECTED]> wrote: *Nothing* else changed in the app and/or configuration? nope...no code changes. The problem has always existed...once or twice a day. However recently, as often as 200 per day because certain actions are being hit much more often because of ce

is there anyway to store the previous added lateExtraAmount

2007-06-05 Thread prasad kumar
hi, iam using struts, i have one class i.e LateExtra,in this class i have wriiten the code like below double lateExtraAmount = calc.calculateLateExtra(currentContract); from the above iam getting the lateExtraAmount for ex:intially the amount is 2000 After t

is there anyway to store the previous added lateExtraAmount

2007-06-05 Thread prasad kumar
hi, iam using struts, i have one class i.e LateExtra,in this class i have wriiten the code like below double lateExtraAmount = calc.calculateLateExtra(currentContract); from the above iam getting the lateExtraAmount for ex:intially the amount is 2000 After th

Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Dave Newton
--- Jeff Amiel <[EMAIL PROTECTED]> wrote: > Recent issue is driving me batty. Suddenly started > receiving exceptions in app server logs (tomcat a la > jboss)... *Nothing* else changed in the app and/or configuration? > Any thoughts? How can the activities of one servlet > effect another such

How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

2007-06-05 Thread Jeff Amiel
Recent issue is driving me batty. Suddenly started receiving exceptions in app server logs (tomcat a la jboss)... Servlet.service() for servlet AxisServlet threw exception java.lang.IllegalStateException org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.java:220) org.apac

is there anyway to store the previous added lateExtraAmount?

2007-06-05 Thread prasad kumar
hi, iam using struts, i have one class i.e LateExtra,in this class i have wriiten the code like below double lateExtraAmount = calc.calculateLateExtra(currentContract); from the above iam getting the lateExtraAmount for ex:intially the amount is 2000 After that i Updated the amo

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread Ray Clough
if you are constructing the url using the s:url tag, there are two different attributes you may be using. The "action" attribute assumes that the action will end in "*.action", so you can't forward to a Struts-1 action using the action attribute. Instead use the 'value' attribute, and you can th

Re: [S2] Mixing JSP variables and strut properties

2007-06-05 Thread yitzle
Thank you. I got it to work (after playing with it for an hour. Stupid array variables sometimes are singular and sometimes plural. I need to decide on one or the other... An hour because I don't know my own naming... ) - To unsu

Re: Handeling org.apache.struts.chain.commands.InvalidPathException

2007-06-05 Thread Niall Pemberton
On 6/5/07, Nathan Hook <[EMAIL PROTECTED]> wrote: Thank you for your response. We actually have an Exception Handler setup and it catches java.lang.Exception. Here is the mapping for it... Wouldn't this normally catch the org.apache.struts.chain.commands.InvalidPathException? Or do w

RE: [S2] Why are my struts pages rendering slow

2007-06-05 Thread Jon Cruz
I *just* had the same issue. One table, (5 columns), displaying anywhere from 10 to 50 records. Hidden behind some CSS Div code, I had: Column 1 : Textbox control Column 2 : Select control with 6 options Column 3 : Select control with 5 options Column 4 and 5 : Edit and Delete hyperlinks. Same

RE: [S2] Why are my struts pages rendering slow

2007-06-05 Thread Charbel Abdul-Massih
The most interesting part is in IE, it renders quick...in Firefox, the top of the page renders, then slowly, it renders the rest of the page line by line...Any suggestions??? -Original Message- From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 3:28 PM To: S

RE: [S2] Why are my struts pages rendering slow

2007-06-05 Thread Dave Newton
--- Charbel Abdul-Massih wrote: > I did notice however, that when my page only has > tags, to write out text, and no form > fields, it renders faster... http://struts.apache.org/2.x/docs/performance-tuning.html Note in particular the exclamation-pointed section titled "Copy the /template direct

AW: Struts-Jsp display

2007-06-05 Thread Norbert Hirneisen
Hi Maya, I suggest you should implement a paging mechanism not only on the struts side but also on the query side as well. Take you original select and enclose it by an outer select using the rownum to fetch only the records needed for display. A simple example (Oracle 10g): Original query: select

RE: [S2] Why are my struts pages rendering slow

2007-06-05 Thread Charbel Abdul-Massih
I am not using the ajax theme...I'm not using any specialized concepts...just straight struts 2 tags, and a combination of the css_xhtml theme and the simple theme... I did notice however, that when my page only has tags, to write out text, and no form fields, it renders faster... -Origina

Re: [S2] Why are my struts pages rendering slow

2007-06-05 Thread Allen Gilliland
do you have an s:head tag in the head section of your pages? are you using the ajax theme? i have noticed that my pages are a lot slower when they have to include and initialize the dojo stuff. -- Allen Charbel Abdul-Massih wrote: I have a page with several form fields (checkboxes, drop do

[S2] Why are my struts pages rendering slow

2007-06-05 Thread Charbel Abdul-Massih
I have a page with several form fields (checkboxes, drop downs, radio buttons)... The page renders slowly from top to bottom, as if it's being streamed...I posted this same issue a couple of weeks ago, and I'm still trying to figure out the solution... I have devMode = false, and tried ever

Re: datetimepicker shows 1907 when populated from existing value

2007-06-05 Thread Allen Gilliland
Musachy Barroso wrote: On 6/5/07, Allen Gilliland <[EMAIL PROTECTED]> wrote: I am just using the default settings ... when the form is submitted i see that there are actually 2 values submitted, the dojo.bean.dateString and bean.dateString. the format for dojo.bean.dateString is RFC 3339

Re: Ending session

2007-06-05 Thread Caine Lai
Probably the easiest way to do this would be to have a very short session timeout period (5minutes?) set on the server. You could then have a JavaScript function that polls the server every 5 minutes. Each ajax request made by the JavaScript will reset the session timer on the server. On 6/5/07

Re: Softer action mappings

2007-06-05 Thread Musachy Barroso
do you mean the request url? musachy On 6/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a way to get the current request substituted in an action mapping? ${currentRequest} I'd rather not stash this in a session variable if it's available someplace! -- Sco

Re: datetimepicker shows 1907 when populated from existing value

2007-06-05 Thread Musachy Barroso
On 6/5/07, Allen Gilliland <[EMAIL PROTECTED]> wrote: I am just using the default settings ... when the form is submitted i see that there are actually 2 values submitted, the dojo.bean.dateString and bean.dateString. the format for dojo.bean.dateString is RFC 3339 and the format of bean.dat

Re: datetimepicker shows 1907 when populated from existing value

2007-06-05 Thread Allen Gilliland
I am just using the default settings ... when the form is submitted i see that there are actually 2 values submitted, the dojo.bean.dateString and bean.dateString. the format for dojo.bean.dateString is RFC 3339 and the format of bean.dateString is DateFormat.SHORT (mm/dd/yy). if i start

Re: [S2] Mixing JSP variables and strut properties

2007-06-05 Thread Musachy Barroso
PIN1: Total Count:

Re: datetimepicker shows 1907 when populated from existing value

2007-06-05 Thread Musachy Barroso
What is the format of the date in the string? If you stick to RFC 3339 it should be fine : -MM-dd (this is just the value, the display format can be set using the "displayFormat" attribute) musachy On 6/5/07, Allen Gilliland <[EMAIL PROTECTED]> wrote: I'm having a problem with the datetime

Re: Struts Menu

2007-06-05 Thread Antonio Petrelli
2007/6/5, Archer <[EMAIL PROTECTED]>: Hi All, I am new to struts menu. Can anybody please help where I can find a good tutorial or suggest me a good place to start work with struts menu. Thanks in advance. Probably at Struts Menu website http://struts-menu.sourceforge.net/ Antonio

Struts Menu

2007-06-05 Thread Archer
Hi All, I am new to struts menu. Can anybody please help where I can find a good tutorial or suggest me a good place to start work with struts menu. Thanks in advance. -- Regards Archer

Re: Struts-Jsp display

2007-06-05 Thread Antonio Petrelli
2007/6/5, Maya menon <[EMAIL PROTECTED]>: Can anyone suggest an improvement ? I think that you need some sort of paging. One of the most used technique is by using displaytag: http://displaytag.sf.net/ HTH Antonio - To uns

Struts-Jsp display

2007-06-05 Thread Maya menon
All, I have a requirement in which I display reports in a jsp using Struts. The reports pull huge data like 3-5 records will be in the jsp page. Right now, I get the records in an array from my DAO and then set them to my form bean. In results jsp, I iterate through it and use ta

[S2] Mixing JSP variables and strut properties

2007-06-05 Thread yitzle
Before I begin, I apologize if I offend anyone by asking a question that could easily be found in the Struts 2 documentation by searching for the correct keywords, and, no, I did not read the entire Struts documentation nor any other Struts textbook (though I did read and appreciate a good chunk o

datetimepicker shows 1907 when populated from existing value

2007-06-05 Thread Allen Gilliland
I'm having a problem with the datetimepicker where it always thinks the year is 1907 when it gets loaded from an existing value. I have only been able to find this thread on the issue which suggests there is a bug but doesn't really provide any real work around ... http://www.mail-archive.com

is there anyway to store the previous added lateExtraAmount?

2007-06-05 Thread prasad kumar
hi, iam using struts, i have one class i.e LateExtra,in this class i have wriiten the code like below double lateExtraAmount = calc.calculateLateExtra(currentContract); from the above iam getting the lateExtraAmount for ex:intially the amount is 2000 After that i Updated the am

Re: Quetsions about tag

2007-06-05 Thread Musachy Barroso
1. nope, you will have to use 2 pickers, one for the time and another for the date 2. nope 3. Big bug in datetimepicker: https://issues.apache.org/struts/browse/WW-1917 , until 2.1, you would have to use an String for the field that will be assigned the date value, or use a converter. musachy

Re: / and primitive properties

2007-06-05 Thread Torsten Römer
Sorry I just realize I didn't use the tag the right way. I had String literals in my list instead of the actual primitives/objects... Now of course it works just fine without any patching! Slowly, but I am getting there ;-) Torsten Torsten Römer schrieb: > I tried to use primitive types/arrays

Softer action mappings

2007-06-05 Thread stanlick
Is there a way to get the current request substituted in an action mapping? ${currentRequest} I'd rather not stash this in a session variable if it's available someplace! -- Scott [EMAIL PROTECTED]

Re: [S2] map to boolean property not checked

2007-06-05 Thread Torsten Römer
I think you have the same problem as I just had. Because you put the values as literals in , the tag ends up comparing a String "true" against a Boolean true which of course returns false. Could you try the tag like this: Torsten Vincent Lin schrieb: > I have a java bean serviceData with a Boo

Quetsions about tag

2007-06-05 Thread Vincent Lin
Hi, I've tried tag in my JSP. It's really a cool tag which render a date selection javascript control. But I have some quetsions about this tag: 1. Can I select date and time simultaneously in one datepicker control? Currently I map a date property in action to 2 separate datepicker in JSP: one

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread Dave Newton
--- panpan <[EMAIL PROTECTED]> wrote: > Thanks, Dave. I just tried it. It worked. That's great :) Just an FYI; I, at least, am receiving three copies of each of your list posts. d. 8:00? 8:25? 8:40? Find a

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
panpan wrote: > > Thanks, Dave. I just tried it. It worked. > > ⩽param name="actionName">Menu.do⩽/param> > ⩽param name="namespace">/restricted/main⩽/param> > > S2 knows to how to redirect to S1 action. That's great. > > > > Dave Newton-4 wrote: >> >> --- panpan <[EMAIL PROTECTED]> wrote:

Re: [S2] How do I disable tags generated by ?

2007-06-05 Thread Eric Rank
Hi Vincent, The table layout is default for forms using the xhtml theme. You have a couple options if you don't want to use that. Try the css_xhtml theme or the simple theme. 1. Specify a different default theme globally with the 'struts.ui.theme' property in your struts.xml file. For exa

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
Thanks, Dave. I just tried it. It worked. ⩽param name="actionName">Menu.do ⩽param name="namespace">/restricted/main S2 knows to how to redirect to S1 action. That's great. Dave Newton-4 wrote: > > --- panpan <[EMAIL PROTECTED]> wrote: >> In the struts 2 configuration file struts.xml >>

[S2] map to boolean property not checked

2007-06-05 Thread Vincent Lin
I have a java bean serviceData with a Boolean property autoActivate in my action. And I wrote a tag in my JSP: But the default radio button is not checked in my page. (While autoActivate is true the radio button of 'true' should be checked, but it isn't.) It works when I map to java 1.5 enum

Re: Handeling org.apache.struts.chain.commands.InvalidPathException

2007-06-05 Thread Nathan Hook
Thank you for your response. We actually have an Exception Handler setup and it catches java.lang.Exception. Here is the mapping for it... Wouldn't this normally catch the org.apache.struts.chain.commands.InvalidPathException? Or do we specifically catch the InvalidPathException?

Re: Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread Dave Newton
--- panpan <[EMAIL PROTECTED]> wrote: > In the struts 2 configuration file struts.xml > > /restricted/main/Mene.do > > I know I cann't do that but anyone knows the way to > fulfill the same functionality. http://struts.apache.org/2.x/docs/result-types

Can I Redirect Action Result to Strut1 action in struts.xml

2007-06-05 Thread panpan
In the struts 2 configuration file struts.xml /restricted/main/Mene.do I know I cann't do that but anyone knows the way to fulfill the same functionality. Any suggestion would be appreciated!

Re: [S2] How do I disable tags generated by ?

2007-06-05 Thread Musachy Barroso
Take a look here: http://struts.apache.org/2.x/docs/why-do-the-form-tags-put-table-tags-around-controls.html musachy On 6/5/07, Vincent Lin <[EMAIL PROTECTED]> wrote: Hi! I've done several projects with struts1 and planned to use struts2 in my new project. I am amazed the the code is so conc

Re: Ending session

2007-06-05 Thread Oguz Kologlu
I think the way it is mostly done is by using push events from the server. Have a look at Mortbay Jetty servlet container if you are really interested, It's supposed to handle continuations/push events quite well. If you can no longer push server events out you could make the assumption the

Re: [OT] Mentors, Was: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Ted Husted
Personally, I've never thought that RTFM or PRTM by itself is a sufficient response. Since all of our material is online, it's much better to provide a link directly to a relevant page in the documentation. IMHO, it's just as lazy to reply with "RTM" as it is to post without reading the manual. :)

Re: Ending session

2007-06-05 Thread Roger Varley
Roger Varley wrote: > I'm sure that I've read that it's possible, using Javascript, to > detect if a client closes the browser & if that's true, then you could > use an AJAX call to invalidate the session. This is possible, but you can't bet on it actually working. The user might have javascript

[S2] How do I disable tags generated by ?

2007-06-05 Thread Vincent Lin
Hi! I've done several projects with struts1 and planned to use struts2 in my new project. I am amazed the the code is so concise in struts2. But I have quetsion about the tag. When I use and , the , and tags are generated in html page. Can I disable this feature? Because it might interfere

Re: Ending session

2007-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger, Roger Varley wrote: > I'm sure that I've read that it's possible, using Javascript, to > detect if a client closes the browser & if that's true, then you could > use an AJAX call to invalidate the session. This is possible, but you can't bet o

Re: Ending session

2007-06-05 Thread Roger Varley
2. if the user simply closes the browser, you have no option but to wait for the session to expire. Maybe all you really want is a shorter session timeout.; but I'm sure that I've read that it's possible, using Javascript, to detect if a client closes the browser & if that's true, then you co

RE: custom interceptor in default stack

2007-06-05 Thread Al Sutton
Any reason you're not using CONFIDENTIAL? Before you ask, here's a reference with an example that has a clickable link to the definition http://wiki.metawerx.net/Wiki.jsp?page=Web.xml -Original Message- From: sudeepj2ee [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 14:00 To: user@struts.a

Re: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Niall Pemberton
Your initial response to Srinivasula was OT and vague enough to make me think WTF? This is a place for individuals to meet and get help - whoever they work for and whatever their skill level. Lets not put new people off asking questions - just don't reply if something annoys you. Niall P.S. I th

Re: custom interceptor in default stack

2007-06-05 Thread sudeepj2ee
I am going for a https and for switching between http and https for that i have made a interceptor, and there are arount 35 struts- xml files which are included in struts.xml,what i was thinking is that instead of inserting interceptor in each strut-xml i can have a global interceptor kind of thin

Re: Ending session

2007-06-05 Thread Jeromy Evans
Mansour wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? 1. provide a logout action. In this action, get the ServletRequest and invalidate the session immediately; but 2. if the user simply closes the brows

reads wrong key from i18n bundle

2007-06-05 Thread mraible
I have a Company object that's attached to my User object with the following JPA configuration: @ManyToOne(cascade = CascadeType.ALL, optional=true) @JoinColumn(name="company_id") public Company getCompany() { return company; } In my userForm.jsp, I'm trying to render all

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Al Sutton
I still don't understand why you're not using the server to get the date and explicitly including it in the query, for example; select * from table where date <= ? Or even doing all of the above in an action and using the jsp to display the results. Using the database as a timesource i

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Ambaris Mohanty
Ok thanks for your reply n showing me the way. It seems you didn't get my question write. Let me explain it to you... When I query the database normally using tag I get a result set consisting of multiple rows, which I can display using using the tag. But how to handle query like "select sysdate

[OT] Mentors, Was: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Al Sutton
Thanks for the clarification :). I've been a Mentor a number of times in the past and I've always seen it as someone who guides as well as corrects. In companies I worked in a mentor has always been seen as the first port of call when a new coder has problems or is unsure of something, that way no

[OT] Re: using jstl sql tags for displaying date from database

2007-06-05 Thread Oguz Kologlu
Ambaris, I think it's quite the opposite here, but anyway... the fact is it's database dependent. Depending on the DB you may be able use "select now()" as a query and if it doesn't work consult you DB manual. The question has nothing to do with struts Oz On 05/06/2007, at 9:46 PM, Am

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Raghupathy, Gurumoorthy
No way I said that you are being racist I think you are great... Look at the smiley icon I had at the last RTFM is the only way to get the concepts right Mentors are when we get something wrong ... not for teaching concepts ... Happy coding and enjoy RTFM :) Regards Guru

RE: custom interceptor in default stack

2007-06-05 Thread Al Sutton
Technically you can, but it's most likley not the best approach. See http://cwiki.apache.org/WW/interceptors.html for information on better ways, or, if you absolutley must, it will show you how to add it to struts-default. -Original Message- From: sudeepj2ee [mailto:[EMAIL PROTECTED] S

Re: custom interceptor in default stack

2007-06-05 Thread Dave Newton
--- sudeepj2ee <[EMAIL PROTECTED]> wrote: > can we put our custom interceptor in > struts-default.xml,if yes than what configurations are > required. You *could*, but why wouldn't you just put it in your struts.xml and not worry about your customizations being lost when you upgrade your S2? d.

custom interceptor in default stack

2007-06-05 Thread sudeepj2ee
can we put our custom interceptor in struts-default.xml,if yes than what configurations are required. -- View this message in context: http://www.nabble.com/custom-interceptor-in-default-stack-tf3871308.html#a10968002 Sent from the Struts - User mailing list archive at Nabble.com.

[OT] RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Dave Newton
--- Ambaris Mohanty wrote: > Do u have the solution or just wasting my time??? The irony here is thick enough to slice. d. Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel a

Test mail

2007-06-05 Thread Kalpak Luniya
Hi all, Please avoid this mail. I am just checking if I can mail this list. Thanks and regards, Kalpak

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Al Sutton
I'm a firm beleiver in your RTFM answer. You seem to think I was being in some way racist against Indians, this isn't the case. If he had come from a company that said it was "The UKs leading IT and technology company" I would have made the same remark quoting the title of their website. My point

Re: Ending session

2007-06-05 Thread Roger Varley
On 05/06/07, Mansour <[EMAIL PROTECTED]> wrote: I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? Implement an HttpSessionListener. The destroy() method will be invoked by the servlet container when the session ends.

RE: Ending session

2007-06-05 Thread Raghupathy, Gurumoorthy
If all the attributes are stored in the session then it will destroy itself .. but if you want to clean other stuff not stored in the session they try To write an HttpSessionListener http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm http://java.sun.com/j2ee/sdk_1.3/techdocs/ap

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Al Sutton
I'm showing you the solution, but I'm not going to do your job for you. Now if you think about the question, that about how you would cope with adjusting the time on one server (the web server) by a fixed offset (if the database server is in another timezone), you'll see how you can do it without

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Raghupathy, Gurumoorthy
May be he is just a trainee learning java / struts / MVC .. If he knew this concepts then why would he come here :) My suggestion is RTFM Remember I am an Indian as well (though I work in the UK) .. nothing wrong in being Indian or working for leading technology company as long as this ty

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Ambaris Mohanty
Do u have the solution or just wasting my time??? -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 5:09 PM To: 'Struts Users Mailing List' Subject: RE: using jstl sql tags for displaying date from database And the reason these aren't synchronized

RE: Ending session

2007-06-05 Thread Al Sutton
The server has no way of knowing if the client closes their browser. You'll just have to wait for the session to expire. -Original Message- From: Mansour [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:34 To: Struts Users Mailing List Subject: Ending session I am saving objects in the s

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Al Sutton
And the reason these aren't synchronized using NTP or a similar protocol would be...? -Original Message- From: Ambaris Mohanty [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:33 To: 'Struts Users Mailing List' Subject: RE: using jstl sql tags for displaying date from database Becaus

Ending session

2007-06-05 Thread Mansour
I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Ambaris Mohanty
Because the application is all about generating reports from the data in the database. So I want to display the database server time and not the web server time. It makes more sense to the users. AM -Original Message- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Al Sutton
And the reason for not using the server time would be..? -Original Message- From: Ambaris Mohanty [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:21 To: 'Struts Users Mailing List' Subject: RE: using jstl sql tags for displaying date from database I want to display the same time in

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Al Sutton
You know theres something about requests like this coming from hcl.in who describe themselves as "Indias leading IT & Technology Company" that deeply concerns me. -Original Message- From: Srinivasula Reddy A , Bangalore [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:08 To: Struts Us

RE: using jstl sql tags for displaying date from database

2007-06-05 Thread Ambaris Mohanty
I want to display the same time in all the client machines irrespective of their location. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 4:34 PM To: Struts Users Mailing List Subject: Re: using jstl sql tags for displaying date from database

/ and primitive properties

2007-06-05 Thread Torsten Römer
I tried to use primitive types/arrays of primitives as "name" property of and . It works fine, but the state is not maintained because the ContainUtil.compare() method returns false as it compares e.g. an Integer and a Sting using Object.equals(). Is there a reason why we can't use primitives li

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Srinivasula Reddy A , Bangalore
Thanks guru I will come back to you after trying this snippet -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 4:29 PM To: Struts Users Mailing List Subject: RE: How To Lock User Account If he Failed to give Correct Password in three

RE: [S2] ActionMessages and redirects

2007-06-05 Thread Gunnar Hillert
Hi, Thanks for your response. Yes, I think the interceptor will do. However, it just feels a bit clumsy to write 6 lines of XML in order to get functionality that Struts 1 provided in one. It may be a great solution for cases where your action messages have to survive multiple redirects but in 99

Re: using jstl sql tags for displaying date from database

2007-06-05 Thread Dave Newton
--- Ambaris Mohanty wrote: > And I want that the date should come from the database. Why would you want the current date to come from the database? d. Got a little couch potato? Check out fun summer a

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Raghupathy, Gurumoorthy
HttpSession session = request.getSession(); If ( session.getAttribute("LoginCount") == null ) { Session.setAttribute("LoginCount", new Integer(1)); } else { Integer loginCount = session.getAttribute("LoginCount"); try { Writecode to login; } catch (

hi

2007-06-05 Thread Ambaris Mohanty
Hi. testing

Re: Handeling org.apache.struts.chain.commands.InvalidPathException

2007-06-05 Thread Niall Pemberton
You can either set up an exception handler for InvalidPathException or you can mark one of your actions in the struts-config.xml as "unknown". Niall On 6/4/07, Nathan Hook <[EMAIL PROTECTED]> wrote: We have recently upgraded to struts 1.3.8 and have been running into the org.apache.struts.chain

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Srinivasula Reddy A , Bangalore
Yaa I know but I need some sample exact steps -Original Message- From: Raghupathy, Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 4:13 PM To: Struts Users Mailing List Subject: RE: How To Lock User Account If he Failed to give Correct Password in three attempts Store

RE: How To Lock User Account If he Failed to give Correct Password in three attempts

2007-06-05 Thread Raghupathy, Gurumoorthy
Store the count in the session using appropriate name Once that is above the limit then write the code to lock it ... . One suggestion though . All business logic code in single action That is not a good design ... Cant you make your business objects more layered ? Regards Guru

FW: using jstl sql tags for displaying date from database

2007-06-05 Thread Ambaris Mohanty
_ From: Ambaris Mohanty [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 05, 2007 3:16 PM To: 'user@struts.apache.org' Subject: using jstl sql tags for displaying date from database Hi all, In my web application I want to put current date into the header segment of each page. And

  1   2   >