Form pre-fill issue

2006-01-27 Thread Karthik Manimaran
Hi, Form data is not getting pre-filled on submission. Can anyone tell me the reason? JSP - included from def.jsp - <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> submit PrivacyPreferences

Exception Handling in struts - Sitemesh messes it up! :(

2006-01-27 Thread Raghu Kanchustambham
Hi, Before I introduced Sitemesh into my ecosystem, I used to handle exceptions in a "declarative" fashion in the struts-config.xml. For example, an entry in struts-config.xml like: would handle a good subset of my Database exceptions. Now comes sitemesh, which is really a "servlet-filter".

Re: One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-27 Thread Raghu Kanchustambham
Hi, I solved the problem by "playing the container". I called the tag functions that the container would have called in the same sequence. This surely is a hack, but works for me right now. If you guys have a better way to solve this issue, I would be glad to hear it. Regards, Raghu On 1/25/06

Re: data in session affecting performance ?

2006-01-27 Thread Frank W. Zammetti
Yes, that would be my advice. Further, I would try and architect your solutions in such a way as to not even require session as much as that is possible. Clearly it won't always be, but every little bit helps :) Frank Lixin Chu wrote: thank you very much - my memory is not too rusty then -

Re: data in session affecting performance ?

2006-01-27 Thread Lixin Chu
thank you very much - my memory is not too rusty then - at least I remember the 32kb threshhold :-( ok, so my takeaway is that, in general it is ok to use a session scoped ActionForm with some minimum data but for large list/set we better look it carefully. Putting them into request scope might be

insert dynamic jsp codes in Tiles

2006-01-27 Thread Kai Mai
Hi, Sorry, my previous posting was messed up by Roomity. I need to insert some dynamic jsp codes into my pages using tiles with Struts 1.2.4. The following examples don't seem to insert really dynamic jsp. It's for illustration purpose. tiles-defs.xml: in my jsp pag

Two questions.

2006-01-27 Thread digant . k . joshi
Very simple two questions . 1. How do I get struts log4j messages on my console/my log ? 2. How do I read application specific properties file in struts application? Thanks. Digant . This communication is for informational purposes only. It is not intended as an offer or solicitation for the

how to use Tomcat datasource inside a servlet

2006-01-27 Thread Legolas Woodland
Hi thank you for reading my post. I defined a data-source in tomcat administration console. now i want to use this data source inside my servlet how i can do that ? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

insert dynamic jsp codes in Tiles

2006-01-27 Thread kai
Hi, I need to insert some dynamic jsp codes into my pages using tiles with Struts 1.2.4. The following examples don't seem to insert really dynamic jsp. It's for illustration purpose. tiles-defs.xml: in my jsp page, using tiles:insert or tiles:getAsString doesn't work as an exception occurs. It

Authentication crisis

2006-01-27 Thread Luis Gervaso
Hello I need how to put subject information returned of lc.login() in webapp context int order to invoke getUserPrincipal and not retur null LoginServlet.java protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String username =

forward using RequestDispatcher

2006-01-27 Thread temp temp
I using ServletFilter to check whether the user is authenticated or has permissions to access resource. In case of not authenticated or not authorized I must redirect user to some page (Error Page ) . For this I must use RequestDispatcher to forward him to error page. If I do this I mu

Re: using an action form if no input from page

2006-01-27 Thread Hubert Rabago
If the request being submitted doesn't include form values, I'd say skip the ActionForm. Hubert On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > My question concerns jsp pages that provide a read only view of data. In > other words, there won't be a form submitted from the page. Is

Re: using an action form if no input from page

2006-01-27 Thread Craig McClanahan
On 1/27/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Struts best practices suggest that an action handles a request (with > or without input data), while a JSP page is simply a data-aware HTML. > Look at it this way: by calling an action instead of calling JSP > directly you are asking for

Re: using an action form if no input from page

2006-01-27 Thread Michael Jouravlev
Struts best practices suggest that an action handles a request (with or without input data), while a JSP page is simply a data-aware HTML. Look at it this way: by calling an action instead of calling JSP directly you are asking for a resource to render itself according to its current state. If you

Re: Authentication problem

2006-01-27 Thread Luis Gervaso
Hello again, Mi purpose is establish this in order to call ejb in jboss from tomcat For user authentication i need user + password + country user and password come from de login page and country form de last from www.google (.es | us | fr ) and so (http header host) gracias :) 2006/1/27

using an action form if no input from page

2006-01-27 Thread [EMAIL PROTECTED]
My question concerns jsp pages that provide a read only view of data. In other words, there won't be a form submitted from the page. Is there a compelling reason to use an action form in these cases. I've just been using tags such as c:out with my own beans put in scope. I've noticed tha

Re: Authentication problem

2006-01-27 Thread Prashanth.S
whats your appserver?? Iam working on a project using websphere app server and it has admin configurations wherein you can set websphere to authenticate using different authentication mechanisms[ex:Basic,Form,client-cert etc] aganist different user information repository[Ex:windows/solaris use

Re: [OT] Authentication problem

2006-01-27 Thread Marcelo Morales
Helo On Jan 27, 2006, at 2:44 PM, Luis Gervaso wrote: Hello all, I need help about authentication problem The scenario is: When user login is necessary consult database to obtain user information in order to store this in the HttpSession I hope to integrate this with container based secu

Authentication problem

2006-01-27 Thread Luis Gervaso
Hello all, I need help about authentication problem The scenario is: When user login is necessary consult database to obtain user information in order to store this in the HttpSession I hope to integrate this with container based security in order to use getUserPrincipal, etc if we use j_secur

Re: [shale] Tomahawk components

2006-01-27 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > Ryan Wynn wrote: > > I would recommend that the ticket on shale bugzilla be closed in favor > > of the ticket on myfaces jira ticket > > > > http://issues.apache.org/jira/browse/MYFACES-806 > > > > because I think it was agreed that this file wo

forwarding to a global forward using RequestDispatcher

2006-01-27 Thread temp temp
How can I pass a Struts Global forward to request.getRequestDispatcher("struts global Forward).forward(request,response) or How can I forward to a struts Global forward using RequestDispatcher. I tried passing struts global forward , but always I got page not found error . I can creat

[shale] Images and css being rejected

2006-01-27 Thread Richard Wallace
I'm having a problem with pages loading images and css files. I turned up the debugging on log4j and when the css files and images are requested by the browser nothing is returned. I checked the logs and they're saying: 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] org.apache.

Re: order in which filters are executed in web.xml

2006-01-27 Thread Frank W. Zammetti
They are executed in the order they appear in web.xml, subject to the mapping rules (i.e., if you have 4 filters, filter 2 and 3 might be skipped for a given request depending on how they are mapped, but filter 1 and 4 will fire in that order, assuming they are listed 1, 2, 3, 4). So, in your spec

Re: Validation problems

2006-01-27 Thread Daniel Kies
Niall: I took your recommendation and removed the action chaning from my struts config. I am still not seeing any error text. Here is my new action mapping: On 1/27/06, Niall Pemberton <[EMAIL PROTECTED]> wrote

order in which filters are executed in web.xml

2006-01-27 Thread temp temp
I written two filters for my web application. One filter is to check whether session has userId called SecurityFilter.(This filter is applied to all *.do) Second filter to check if login user has access to a particular page called AccessControlFilter .(This filter only to some .do) in t

Re: [Shale] Error in remoting

2006-01-27 Thread Craig McClanahan
(Memo to self -- don't let your cat hit the "Send" button before you are done ... :-) On 1/27/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > I have noticed the following errors in my Tomcat logs: > > > > java.lang.Ill

Re: [Shale] Error in remoting

2006-01-27 Thread Craig McClanahan
On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > > I have noticed the following errors in my Tomcat logs: > > java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT > at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader( > CoyoteRequest.java:1887) > at

Re: [shale] Tomahawk components

2006-01-27 Thread Richard Wallace
Ryan Wynn wrote: I would recommend that the ticket on shale bugzilla be closed in favor of the ticket on myfaces jira ticket http://issues.apache.org/jira/browse/MYFACES-806 because I think it was agreed that this file would reside inside tomahawk.jar instead of within shale. The concensus on

design question

2006-01-27 Thread fea jabi
For all the tables in the JSP, I am using displaytag. For each row in the table I created an Object. I am creating instances of this Object and making a List which is getting displayed in the JSP. I was told that instead of creating Object and creating instances, one can directly use the re

RE: Action Form error.

2006-01-27 Thread Garner, Shawn
I think there is a ConsoleAppender for log4j. Otherwise I believe you can do a System.out.println. Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 7:22 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Re: Ac

Re: LDAP Authentication

2006-01-27 Thread Marcelo Morales
On Jan 27, 2006, at 11:51 AM, Buntin, Seth - KATE wrote: So if I am using JBoss I should look at the container (Tomcat) information on how to implement this through it? Yes. The main references: http://java.sun.com/products/servlet/index.jsp http://tomcat.apache.org/tomcat-5.5-doc/realm-how

RE: [HELP] Can't not get parameter when submit a form

2006-01-27 Thread Garner, Shawn
Put it in the session and then retrieve it from there. Shawn -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 9:43 PM To: Struts Users Mailing List Subject: Re: [HELP] Can't not get parameter when submit a form I have a bean property is

RE: Action Form error.

2006-01-27 Thread Garner, Shawn
>>>path="/sectorSetUp" >> name="sectorForm" Is sectorForm declared in the top of your struts-config file? Make sure the type is valid. Also check that your JSP has ... Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thurs

Re: Secure - Non Secure problem (http-https)

2006-01-27 Thread Dave Newton
Nick Sophinos wrote: > Although there probably is, I am old-fashioned and implement that in > a Servlet Filter. Even old-fashioned programmers can use a configuration file of some sort ;) One nice thing about sslext is that it's integrated into the struts config file, so there's one less place t

Re: [shale] Tomahawk components

2006-01-27 Thread Ryan Wynn
I would recommend that the ticket on shale bugzilla be closed in favor of the ticket on myfaces jira ticket http://issues.apache.org/jira/browse/MYFACES-806 because I think it was agreed that this file would reside inside tomahawk.jar instead of within shale. The concensus on the shale ticket h

Re: Secure - Non Secure problem (http-https)

2006-01-27 Thread Nick Sophinos
Hi, Although there probably is, I am old-fashioned and implement that in a Servlet Filter. Below is such a Filter. It will redirect person either to or from a https port depending on whether the URL matches a given pattern. ** * This class contains an web application SSL filter * * @author

Re: data in session affecting performance ?

2006-01-27 Thread Frank W. Zammetti
On Fri, January 27, 2006 4:30 am, David Delbecq said: > Hello, > > I think i read (probably on tomcat mailing list), that clustering should > ensure (in specs) that a session is not spread across cluster (once > session > is started, user always speak with same jvm which started the session). That

Re: LDAP Authentication

2006-01-27 Thread Buntin, Seth - KATE
So if I am using JBoss I should look at the container (Tomcat) information on how to implement this through it? Seth Buntin

Re: [shale] Some Clay oddities

2006-01-27 Thread Richard Wallace
Tried it. Same result. I'll file a bug report. [EMAIL PROTECTED] wrote: Hi Try and clean out your Tomcat work directory prior to restart after you have made your changes. Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 12:14

Re: LDAP Authentication

2006-01-27 Thread Torgeir Veimo
On Fri, 2006-01-27 at 09:05 -0600, Buntin, Seth - KATE wrote: > t off, let me say that I am fairly new to Struts. I am pretty > efficient with Coldfusion and thought I would expand my horizons with > JSP and Struts. > > > > Now that being said I have a question. I work for a University and >

Re: LDAP Authentication

2006-01-27 Thread Marcelo Morales
Helo On Jan 27, 2006, at 11:05 AM, Buntin, Seth - KATE wrote: First off, let me say that I am fairly new to Struts. I am pretty efficient with Coldfusion and thought I would expand my horizons with JSP and Struts. welcome Now that being said I have a question. I work for a University an

RE: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread [EMAIL PROTECTED]
. . . you want to know whether that feature is 90% done or 95% done. --- On Fri 01/27, Ted Husted < [EMAIL PROTECTED] > wrote: From: Ted Husted [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Fri, 27 Jan 2006 08:54:40 -0500 Subject: [FRIDAY] You might be a pointy-haired-boss if .

RE: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread [EMAIL PROTECTED]
. . . if you believe all the things that come out of your mouth. --- On Fri 01/27, Ted Husted < [EMAIL PROTECTED] > wrote: From: Ted Husted [mailto: [EMAIL PROTECTED] To: user@struts.apache.org Date: Fri, 27 Jan 2006 08:54:40 -0500 Subject: [FRIDAY] You might be a pointy-haired-boss if ... .

LDAP Authentication

2006-01-27 Thread Buntin, Seth - KATE
First off, let me say that I am fairly new to Struts. I am pretty efficient with Coldfusion and thought I would expand my horizons with JSP and Struts. Now that being said I have a question. I work for a University and most of the applications I write for the web have LDAP authentication with

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Dave Newton
Dave Newton wrote: > - [ My list ] Dammit! - Sends a TODO list in Word, multiple items per paragraph, with the stuff that's _already done_ HIGHLIGHTED. Woot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Dave Newton
David G. Friedman wrote: >> - You used to use grep to change strings in a file... > >> 'back in the day' (seriously, he thinks he did) >> > sed 's/grep/sed/g' > sed 's/back in the day/when we had punch cards/g' > I tried to convince him it was sed (or possibly awk, but that's... unlikely)

RE: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread David G. Friedman
> - You used to use grep to change strings in a file... > > 'back in the day' (seriously, he thinks he did) sed 's/grep/sed/g' sed 's/back in the day/when we had punch cards/g' -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Dave Newton
Ted Husted wrote: > ... you think blogs are a breakfast treat. > They're not?! - Turn on task lamps at unoccupied desks when clients come in for a meeting so it looks like you have employees - Puts trash back on a cleaned-off shelf when a network technician comes in so it looks like... uh... yo

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Emmanouil Batsis
... you want a clever reply to this thread yesterday. Ted Husted wrote: ... you think blogs are a breakfast treat. Engineer: "I like to start each day with a cup of coffee and a couple of blogs." PHB: ... H ... A cream-filled blog would hit the spot ... -Ted. ** http://husted.com/ted/bl

[ANN] Struts-Dev Forum Available

2006-01-27 Thread Ted Husted
If you'd like to peek on the Struts Developers list, and maybe even post a message, but don't want to actually subscribe to yet-another-list, then the OpenSymphony Struts Developers Forum may be for you. * http://forums.opensymphony.com/forum.jspa?forumID=34 Using this Jive forum, you can review

Re: [FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Simon Chappell
Errr, depending on what sort of blogs you like to visit, that might just be possible! There's all sorts on the Internet you know! On 1/27/06, Ted Husted <[EMAIL PROTECTED]> wrote: > ... you think blogs are a breakfast treat. > > Engineer: "I like to start each day with a cup of coffee and a coupl

[FRIDAY] You might be a pointy-haired-boss if ...

2006-01-27 Thread Ted Husted
... you think blogs are a breakfast treat. Engineer: "I like to start each day with a cup of coffee and a couple of blogs." PHB: ... H ... A cream-filled blog would hit the spot ... -Ted. ** http://husted.com/ted/blog/ - To

Validating a subset of the element in validation.xml file

2006-01-27 Thread Yasser Al Masri
Hi, I have configured my form which contains 70 elements for validation using validation.xml file, and in many cases I needed to reuse the same exact definitions of the 's available within my for validation of subsets of that form, e.g., I need to enable the user to fill in fields x, y, and

problem with forwardPattern and modules

2006-01-27 Thread Günther Wieser
hi, i'm trying to configure the controller using so that it looks for jsp pages in the webroot folder, no matter if we are inside a module or not. but whatever i enter in the forwardPattern or pagePattern properties, no changes in the behaviour. went through the source code of 1.2.8, and in Re

Re: Action Form error.

2006-01-27 Thread digant . k . joshi
Deepa: Thanks. That was it ! I had wrong form bean defined in struts-config. It works now ! By the way any idea on how struts log messages to appear in console. I am sure there is some where log4j property definition I have to do, I am not sure wher

Re: Secure - Non Secure problem (http-https)

2006-01-27 Thread Dave Newton
Dinesh Mehra wrote: > Is there any way in struts-config.xml (either by action mapping or in > forward tag) where I can rectify this situation?? > http://struts.apache.org/struts-doc-1.2.x/faqs/ssl.html - To unsubscribe, e-mai

RequestProcessor and multiples configuration files

2006-01-27 Thread Jérémie GARROT
Hello, I have a problem with my struts configuration file. I use a specific RequestProcessor class that extends RequestProcessor. but since I cut my struts configuration file in multiples files, it doesn't work anymore : the standard processor class is invoked instead of mine.

Re: HttpServletRequest.getParameterNames()

2006-01-27 Thread Shadi Rifai
Hello Carl, you can work with the MultipartRequestWrapper. I hope you will reach your goal :-) Shadi Rifai [EMAIL PROTECTED] Software Technology Group Phone: ++49 (0) 6151-16-3608 Darmstadt University of Technology Fax:++49 (0) 6151-16-5

RE: Refreshing a JSP from Action class

2006-01-27 Thread Vidya \(Suvarna\) Mahavadi
Hi Deepa, You can do it like this.. In Struts-config.xml.. And in UpdateNotificationsAction you can forward it to 'update' action. Return ActionMapping.findForward("update"); I hope it helps. Vidya -Original Message- From: Deepa Khetan [mailto:[EMAIL PROTECTED]

Re: Validation problems

2006-01-27 Thread Niall Pemberton
On 1/26/06, Daniel Kies <[EMAIL PROTECTED]> wrote: > Hello. I am trying to do some standard validations, but I am failing. Any > ideas why? I know the errors are getting raised as the request is > forwarding back to the initial page making the request, but the error > messages are not showing on

Secure - Non Secure problem (http-https)

2006-01-27 Thread Dinesh Mehra
Hi, I have a shipping/billing page (secure page - https) in a shopping cart application. If there is any error then I am redirecting to home page that is non-secure(http). The problem is that after error in the secure pages its redirecting to home page but in the same secure https mode. Is there

Re: data in session affecting performance ?

2006-01-27 Thread David Delbecq
Hello, I think i read (probably on tomcat mailing list), that clustering should ensure (in specs) that a session is not spread across cluster (once session is started, user always speak with same jvm which started the session). Size of objects contained inside a session might however be a perf

[Shale] Error in remoting

2006-01-27 Thread hermod.opstvedt
Hi I have noticed the following errors in my Tomcat logs: java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(CoyoteRequest.java:1887) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(CoyoteReque

Re:data in session affecting performance ?

2006-01-27 Thread starki78
Ciao, I was it who received the answer, well I didn't find this performance gap then the session object contained for a short time >1MB but I didn't test it in a distributed environment. A session-scoped Acion Form shouldn't harm the performance. I cannot immagine. Nice greetings -- Ini