Populating DyanActionForm from databse for view.

2003-12-09 Thread Antony Paul
Hi, I like to use DynaActionForm for getting the user input to Action. I want to use the same DynaActionForm to get the data from database and display it (For editing and viewing only). Application dont use any EJB or other components and my plan is to put business logic and database access in

Strange problem with session timeout

2003-12-09 Thread ganesh venkat
hi all, I am using weblogic 4.5 and servlet version 2.1. I have a logic to check if the session is timed out in a common file which is included in all jsps. If session is timed out i redirect users to the login page with a message Session timed out login again The problem is when the session

Struts and commons DBCP

2003-12-09 Thread AMIR-TAHMASSEB Marc
Hi, I'm using struts 1.02 and the commons DBCP to connect my Oracle 8i database and i have some problems because sometimes my tomcat 3 fall down without any reasons and we have to restart it. I wonder to know how work the connection with commons DBCP, more specialy what happen wen i do a

Re: Struts and commons DBCP

2003-12-09 Thread Kwok Peng Tuck
Hi Amir, If you are really using a connection pool, then calling the close method just returns it to the pool for other use. Yes, you do have to return any connection you 'borrowed' from the pool, otherwise if you don't eventually you will run out of connections that the pool can give

RE: Struts and commons DBCP

2003-12-09 Thread Navjot Singh
tomcat 3? guess that was a stone age :-) My second question is : do i have to close the connection when may request is finished ? Does this really close the connection or just free the object i used, but save the oracle connection open ? Yes, please close the connection. Actually, this method

RE: Struts and commons DBCP

2003-12-09 Thread AMIR-TAHMASSEB Marc
tomcat 3 is not my choice, unfortunatly :-( For the connections, i already close all of them but we have some problems (tomcat server falls down and requests take time to be executed !) so i just want to be sure about this. One more question : I use the commons-dbcp, commons-pool and

Re: Please Help! Unable to Pass A Hidden Field To scaffold.ProcessAction

2003-12-09 Thread Adam Hardy
Hi Caroline, have you checked the source of the HTML page in the browser to see what the value of username is, client-side? I expect the value is being sent to the browser as null. If that is the case, it is because request.getRemoteUser() is returning null and that would be because you don't

Action Mapping - without formbean

2003-12-09 Thread Ravi Kulkarni
Hi All, I have a form with yes/no buttons. I want to use html:form tag but do not want to map to any Formbean. How can I do that? Thanks in advance. Kulkarni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Adam Hardy
Rats, the thread broke, hence my other reply. Like everyone says, you need to check the return value of getRemoteUser() - try looking at the value of the hidden field in the HTML via IE's 'Show page source'. On 12/08/2003 11:55 PM Caroline Jen wrote: I pass two hidden fields: username and

I18N, Tiles definition

2003-12-09 Thread Oliver Wulff
I've defined a tile called title in a tile definition which is a language dependend string. Therefore, I though I could set the key (webapp.title) of the resource bundle as a value: definition name=.mainLayout path=/layout/classicLayout.jsp put name=title value=webapp.title / put

Re: Action Mapping - without formbean

2003-12-09 Thread HG
Hi Ravi The action attribute of your form tag points to the path for your action. By using this action path, Struts finds the action and then the form bean (subclass of ActionForm) (if any) associated with this action (through name attribute in struts-config.xml). So you can invoke your action

RE: Action Mapping - without formbean

2003-12-09 Thread Ravi Kulkarni
Thanks Henrik, that answers my question. -Original Message- From: HG [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 3:30 PM To: Struts Users Mailing List Subject: Re: Action Mapping - without formbean Hi Ravi The action attribute of your form tag points to the path for your

Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
I am facing this problem that I couldn't figure out the cause. We have an web based application (built using struts 1.0). After login to the application for the first time, if you relogin again OR the session times out and you try to re login again I have the following

RES: Struts User Roles

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
Thanks... This helps a lot.. Tiago Henrique C. R. Alves Analista de Sistemas Politec - CSS Tel: 3038-6952 -Mensagem original- De: Sebastian Linz [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 9 de dezembro de 2003 05:25 Para: Struts Users Mailing List Assunto: Re: Struts User Roles

Error message!

2003-12-09 Thread Zakaria khabot
Hi, I received this error message and don't understand the soiurce of error : javax.servlet.jsp.JspException: No getter method for property action of bean org.apache.struts.taglib.html.BEAN java.lang.Object org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext,

RE: Error message!

2003-12-09 Thread Jitesh Sinha
Do you have getAction() method in your actionForm? -Original Message- From: Zakaria khabot [mailto:[EMAIL PROTECTED] Sent: Sunday, December 08, 2002 9:25 PM To: struts-user-help; struts-user Subject: Error message! Hi, I received this error message and don't understand the soiurce of

Re: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Paul Thomas
On 09/12/2003 01:29 Caroline Jen wrote: I use container-managed authentication. In which case, why don't you get the user name using request.getUserPrincipal().getName() ? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
You need to put struts-legacy.jar in the lib of tomcat Try with it - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 4:34 PM Subject: Have to re open browser each time I am facing this problem that I couldn't figure out

Re: Error message!

2003-12-09 Thread Gurpreet Dhanoa
hi It seems your tld file for HTML is not right. Try to open the tld file and check it - Original Message - From: Zakaria khabot [EMAIL PROTECTED] To: struts-user-help [EMAIL PROTECTED]; struts-user [EMAIL PROTECTED] Sent: Sunday, December 08, 2002 9:24 PM Subject: Error message! Hi, I

Multiple Config files

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
Hi, I am working in a project with many developers, sometimes the developers need to change the struts-config.xml file at the same time (one developer needs to add a action-form and other developer needs to add a form-bean or even make some changes...) How can I add multiple config file support

Refresh -submit relation

2003-12-09 Thread Viral_Thakkar
I have a page for upload functionality which uploads the files to a folder. Here I am referring the struts example for uploading of files and I am inserting the record in table at the same time. This upload is working fine but problem is when I refresh the browser page, the page is getting

RE: Multiple Config files

2003-12-09 Thread vasudevrao gupta
Yes ..u can have multiple config files in your application for each module .. you need to define them in web.xml file where you give the initialization paramter for config of your action servlet seperated by comma. init-param param-nameconfig/param-name

RES: Refresh -submit relation

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
You can turn off the cache of your pages, so the page will expires before submiting... % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, -1); % Tiago Henrique C. R. Alves -Mensagem original- De:

Re: Multiple Config files

2003-12-09 Thread Jeff Kyser
Sounds like you should investigate modules. Also, check here for all things cvs-related, including a mailing list: http://www.cvshome.org/ -jeff On Tuesday, December 9, 2003, at 06:48 AM, Tiago Henrique Costa Rodrigues Alves wrote: Hi, I am working in a project with many developers,

Re: Refresh -submit relation

2003-12-09 Thread Jeff Kyser
Investigate the use of tokens, also search the archives, as this is a commonly discussed problem. -jeff On Tuesday, December 9, 2003, at 05:47 AM, Viral_Thakkar wrote: I have a page for upload functionality which uploads the files to a folder. Here I am referring the struts example for

RE: Multiple Config files

2003-12-09 Thread Navjot Singh
How can I add multiple config file support for struts?? init-param param-nameconfig/param-name param-value/WEB-INF/struts-default.xml/param-value /init-param init-param param-nameconfig/ab/param-name param-value/WEB-INF/struts-ab.xml/param-value /init-param

RE: I18N, Tiles definition

2003-12-09 Thread List Mailbox
Try this. tiles:importAttribute name=title/ titlebean:message name=title scope=page//title Not sure of the JSTL way maybe: tiles:importAttribute name=title/ title fmt:message key=${title}/title Cal www.calandva.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
I have tried and put struts-legacy.jar at WEB-INF\lib\ Also I have thrown a copy of it in many other places wher tomcat can see it. But the problem still exist. Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com -Original Message-

Re: how to Remove the cached JSP's?

2003-12-09 Thread Martin Gainty
I think next time I debug a situation such as this I would want to see the Ant build output with the relevant configuration files.. Regards, Martin - Original Message - From: Julia Weaver [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 08, 2003

Error message display in the case of redirect = true

2003-12-09 Thread alok . garg
Hello all, I want to display the errors stack provided y Struts in the jsp page using the html:errors/ tag. I am able to display it but the moment I add the redirect=true in the action mapping tag I am not able to see the error messages. Please help with it. Alok Garg Polaris Software Lab Ltd. (

Re: Refresh -submit relation

2003-12-09 Thread Gurpreet Dhanoa
Hi You need to use the concept of saveTokens Which prevent yoyr form from getting submitted twice Cheers gary - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:17 PM Subject: Refresh -submit

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
Are you handling the sessions from Actions or from Views - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Gurpreet Dhanoa' [EMAIL PROTECTED]; 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:33 PM Subject: RE: Have to re open browser each

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
Sessions are handled from Actions. Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 3:26 PM To: [EMAIL PROTECTED]; 'Struts Users

RE: Error message display in the case of redirect = true

2003-12-09 Thread Navjot Singh
not sure but the logic says that error messages are being stored in the REQUEST SCOPE and when you set redirect=true, naturally that's a new request so you won't get the errors set in earlier request. anybody else? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: Error message!

2003-12-09 Thread Oron Gill Haus
It looks as though one of your tags in the 'app' include doesn't have a getter/setter for an attribute you have specified in your TLD. --- Zakaria khabot [EMAIL PROTECTED] wrote: Hi, I received this error message and don't understand the soiurce of error : javax.servlet.jsp.JspException: No

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
Amjad I have not faced such a problem as even we are handling the sessions in the same way as you are. Which version of Tomcat you are using. Try to use it with 4.12 This may also be the reason - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Struts Users Mailing List'

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
I see. I want to add one more thing, After executing the login action, if the user is authenticated the user is forwarded to an ASP page ( the main page is written uding ASP). Could this be the reason??? If yes, why is this happening? ( we have done integration between ASP and jsp coz we

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
hmm AMjad are the JSp and ASP part of the same application or they are using different we servers - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Gurpreet Dhanoa' [EMAIL PROTECTED]; 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 6:42 PM

RE: Refresh -submit relation

2003-12-09 Thread Viral_Thakkar
Could you please provide some more details about this? -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:54 PM To: Struts Users Mailing List Subject: Re: Refresh -submit relation Hi You need to use the concept of saveTokens Which

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
Both are using the SAME IIS server. ( ofcource jsp requests will be forwarded to be handled by tomcat) Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent:

Re: Refresh -submit relation

2003-12-09 Thread Gurpreet Dhanoa
SUre In struts we have concept of savetokens() SaveToken is a method which you have to set to false/ture before the form get loaded and get submitted Follwoing is the snapshot for the same. public ActionForward execute(ActionMapping mapping, ActionForm form,

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
Got it. This may be the reason. AS ypur actions are running on Tomcat Server and when you declare the session variable it will be declared inthe memory of Tomcat . When you forward the request to ASP (IIS server) there you cannot access the server variables of TOmcat. This is due to the

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
Who said that I am trying to access session variables? Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com -Original Message- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 4:28 PM To: Struts Users

RES: Have to re open browser each time

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
You should set a session for your user in both web servers (TOMCAT and IIS)... Anyway, Why are you doing the login module using Java, and the rest of your application using Java? Why dont you just do everything using ASP? or Java? -Mensagem original- De: Gurpreet Dhanoa [mailto:[EMAIL

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
i am not able to get the problem. Please explain me in breif when you are getting this type of error . Are you getting it when you are coming back from ASP to the Action Please exlapin it - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Gurpreet Dhanoa' [EMAIL

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
Ok , lets consider the following use senario: 1. user opens the system login screen ( JSP ). 2. user submits login pair to an authentication Action. ( struts). 3. the authentication action authenticate the user from the back end, and set a cookie that contains the login info that we need to

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
Accoring to me nothing going wrong in this process.. Amjad please give me few moments I want to test and run the same senario out here on my end and will get back to you ASAP - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Gurpreet Dhanoa' [EMAIL PROTECTED]; 'Struts Users

RE: Have to re open browser each time

2003-12-09 Thread Amjad Shahrour
Thanks. But the problem has been solved. And (as useual) there was a stupid reason for this. ( simply the login action is associated with an actionForm in the struts config at the session scope, given that we are not using actionForm for this action) thnx Amjad Shahrour Application Developer

How to set action path from Action.

2003-12-09 Thread Antony Paul
Hi, After user login based on the dept of user user has to forwarded to pages in different directories. How to do it ?. There are 5 departments. This directory and page to be used in other parts to identify the home page and directory of user so at other times user can be redirected. Putting a

Re: Have to re open browser each time

2003-12-09 Thread Gurpreet Dhanoa
ohhh ANyway that is great,but Amjad i dont know the purpose behing this but what if someone has disabled the Cookies. How will you track it - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003

Re: How to set action path from Action.

2003-12-09 Thread Ashish Kulkarni
Hi have you tried using DispatchAction, may be it can help you, i use to forward action to different jsp depending on what button on clicked by the user. Ashish --- Antony Paul [EMAIL PROTECTED] wrote: Hi, After user login based on the dept of user user has to forwarded to pages in

Struts Slide?

2003-12-09 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts and XSLT

2003-12-09 Thread Peng, Meimin
Manish, haha. I see. It looks simple enough now. :) Thanks. --Zoe -Original Message- From: Manish Singla [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 6:04 PM To: Struts Users Mailing List Subject: Re: Struts and XSLT how can I load different resource bundles(if I have

Property Declaration Annoyances

2003-12-09 Thread Joe Hertz
As of JSP 1.1 (and apparently 1.2 as I'm experiencing this with Tomcat 4.x) the following does not work: bean:write name=myBean property=myMap.%=myKey%.myProperty/ One has to declare the entire String and implement it like this: bean:write name=myBean property=%=myString%/ Anyone know if this

Re: Multiple ApplicationResources.properties files

2003-12-09 Thread Clark Kent
Many Thanks Manish Manish Singla [EMAIL PROTECTED] wrote:There can be only one default message-resources. Second message-resources should have key attribute. You have to use this key attribute in jsp custom tags or... to locate second message-resources.. HTH Manish Singla Clark Kent wrote:

RE: Property Declaration Annoyances

2003-12-09 Thread Ben Anderson
c_rt:set var=key value=%= myKey %/ c:set var=mapper value=${myMap[myKey]}/ c:out value=${mapper.myProperty}/ From: Joe Hertz [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Property Declaration Annoyances Date: Tue, 9 Dec 2003 10:43:22

Re: How to set action path from Action.

2003-12-09 Thread Ted Husted
The different entry points should each be represented by their own ActionForwards. The Action class decides to forward the user to science or biology. The ActionForward supplies the page and directory. Generally, it is helpful to think of the ActionForwards as boxes on a flowchart. The Action

[OT] - Login Application

2003-12-09 Thread Jonathan Hawkins
Howdy All, I am writing a custom login application. Our organization has several web applications (Struts of course!) one of which is a shopping cart. The current login application adds two cookies to the users browser - one that stores a number representing a price index and the other an id.

RES: Multiple ApplicationResources.properties files

2003-12-09 Thread Tiago Henrique Costa Rodrigues Alves
Can you copy and paste the solution for your question? -Mensagem original- De: Clark Kent [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 9 de dezembro de 2003 12:40 Para: Struts Users Mailing List; [EMAIL PROTECTED] Assunto: Re: Multiple ApplicationResources.properties files Many

Tomcat 5

2003-12-09 Thread [EMAIL PROTECTED]
Hi friends, Anybody using Tomcat 5? Everything allright with it? Specially when using it with struts. Paulo

RE: Tomcat 5

2003-12-09 Thread Hookom, Jacob
No problems here. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 11:26 AM To: Struts Users Mailing List Subject: Tomcat 5 Hi friends, Anybody using Tomcat 5? Everything allright with it? Specially when using it with struts.

Re: Multiple Config files

2003-12-09 Thread Marino A. Jonsson
be aware, if you go down this road, that if you specify a tiles-plugin in both configs - only the plugin in the first config will be initialized. cheers, Marinó vasudevrao gupta [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes ..u can have multiple config files in your application

RE: Tomcat 5

2003-12-09 Thread List Mailbox
5.0.16 now and all the betas before with no issue. Cal www.calandva.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 12:26 PM To: Struts Users Mailing List Subject: Tomcat 5 Hi friends, Anybody using

Re: Multiple Config files

2003-12-09 Thread Adolfo Miguelez
Interesting apart from the Tiles-Plugin issue, is there any issue more to take in mind? AFAIK, this is as configuring subapplications, i.e. files for a subapplication are found under a subdirectory, is this true?.. Or they just hang from the same documents root for any

Re: [OT] - Login Application

2003-12-09 Thread Martin Gainty
Jonathan- The peristence or even existence of any data entity can be ascertained from the DB schema what constraints have you placed on the creation of the Price Index? what relationship does the Price Index have to the username/password ? If the Price Index is constrained (or dependent on ) the

Re: Have your Book: UserInRole question

2003-12-09 Thread Ted Husted
You said it. The database returns the user's various roles ... to the container, which also supplies the request from whence isUserInRole comes. HTH, Ted. Dave Yutzy wrote: Ive been wracking the web to try and find out how to use the request.isUserInRole() functionality. I understand how to

Re: Tiles, fixed height, scrollbar

2003-12-09 Thread Christian Bollmeyer
Am Montag, 8. Dezember 2003 22:23 schrieb Oliver Wulff: You can specify a minimum height for tables as well, but AFAIK that's basically all you can do - specifying minimum dimensions. As soon as the contents doesn't fit, things get stretched automatically. I don't know of any means to forbid

Error: Object expected

2003-12-09 Thread Ciaran Hanley
Hi, I'm trying to get use struts validator with my application. I am currently working with a very simple example, only checking that the required field has been filled but keep getting an Error: Object expected error I think the error is on the html:form action line Here is my JSP file: %@

RE: Error: Object expected

2003-12-09 Thread Saul Q Yuan
Assuming it's not a typo, inside your onsubmit it should be return validateClientForm(this). Saul -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: Error: Object expected Hi, I'm trying to get

RE: Error: Object expected

2003-12-09 Thread Ciaran Hanley
Silly me! You're right, thanks -Original Message- From: Saul Q Yuan [mailto:[EMAIL PROTECTED] Sent: 09 December 2003 20:22 To: 'Struts Users Mailing List' Subject: RE: Error: Object expected Assuming it's not a typo, inside your onsubmit it should be return validateClientForm(this).

Nested Properties and No Bean Specified Exception

2003-12-09 Thread Marcus Peixoto
Hi, I'm trying to use Nested Properties in a Form but when I try to submit, I get a No Bean specified Exception. I supose everything is well configured: struts-config.xml --- .. form-bean name=CadastroForm type=br.com.pcltda.controller.forms.CadastroForm / .. action

[OT] Struts meets Swing

2003-12-09 Thread Shane Mingins
Just found these Someone may find them of interest (or not) :-) http://javaboutique.internet.com/tutorials/Swing/ http://javaboutique.internet.com/tutorials/Swing/ http://javaboutique.internet.com/tutorials/Swing2/ http://javaboutique.internet.com/tutorials/Swing2/ Shane Shane Mingins

Re: Tiles, fixed height, scrollbar

2003-12-09 Thread Skip Morehead
If you put a div in your tile you can force the div to scroll with div ... style=overflow:auto; ... / Christian Bollmeyer wrote: Am Montag, 8. Dezember 2003 22:23 schrieb Oliver Wulff: You can specify a minimum height for tables as well, but AFAIK that's basically all you can do - specifying

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
Hi, I think that we are in different time zones. As you have mentioned, I, too, suspected that the statement in my JSP: request.getRemoteUser(); returns nothing. Therefore, I did a test in my JSP. In addition to request.getRemoteUser(); I created another String manually: req:isUserInRole

RE: Tiles setup question

2003-12-09 Thread Richard Hill
Tim, I tried what suggested, but still get the The requested resource (/myapp/myapp.index) is not available. error. Somethings missing...the Factory gets initialized from file '/WEB-INF/tiles-defs.xml' but it looks like the strut-config can't find or map to the tiles definitions. Any other

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Richard Yee
Caroline, In your FindEditorData.java class, is the value for your username variable null or null? If it is null, then you are reading the wrong request parameter since request.getParameter() will return null if the parameter doesn't exist. If the String value is null, then you have a problem

[OT] Log4J and Pre-Processor

2003-12-09 Thread Tolle Krez
Sorry for an off-topic post. I hope I will get an answer since this is a very active mailing list. I am using Log4J for logging in my current project with too many logging statements. I wrap every logging statements with the isDebugEnabled(), isWarnEnabled(), etc. During production , the

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
I do not fully understand what you say about null or null. Anyway, I did try to write out values in the FindEditorData.java. What is written out in the browser is: name=null; kn=journal_category; kv=null And the way I try to write out those crucial fields is shown below: // package and import

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Richard Yee
Caroline, As a sanity check, in your bean, initialize the username variable to something ie. XX. and re-run your app. This will show if your setUsername is ever called. -Richard --- Caroline Jen [EMAIL PROTECTED] wrote: I do not fully understand what you say about null or null. Anyway, I

Re: [OT] Log4J and Pre-Processor

2003-12-09 Thread Ted Husted
You might first run some load tests to see if the boolean statements do have a non-negligable performance impact. It's easy to loose something like this in the rounding, and there may be better places to spend your optimization dollars. As scientists, we should should more than feel, we should

Re: [OT] Log4J and Pre-Processor

2003-12-09 Thread Derek Clarkson
Of course having any extra statements in a program is going to cost in terms of CPU time. The questions is how much. I have seen simple removeal of code, as well as addition of code make massive differences to the time it costs to run something. I have also seem it make no visible difference as

Re: [OT] Log4J and Pre-Processor

2003-12-09 Thread Kirk Wylie
Tolle Krez wrote: I am using Log4J for logging in my current project with too many logging statements. I wrap every logging statements with the isDebugEnabled(), isWarnEnabled(), etc. During production , the logging level will be set to very minimum, and only critical errors will be logged.

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
I followed your advice. In the Bean.java, I did the following: private String username = natalie; public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } and I compiled all the relevant

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
I did another test. I took out those data access activities in the FindEditorData.java and ran the application. The conclusion is that those few lines of data access activities have nothing to do with the value of the 'username' becoming null in the FindEditorData.java. -Caroline --- Richard

RE: Tiles setup question

2003-12-09 Thread Tim Lucia
What does /myapp.index map to? Typically, a global forward maps to /someaction.do. The action does its controller thing and forwards to a tile (or other) for the view (or next action). The example lines (Your-*) below were snipped from my working struts webapp, so I'm pretty certain they work.

RE: [OT] Log4J and Pre-Processor

2003-12-09 Thread Tim Lucia
Would you rather have that 5ns, or the ace-in-the-hole where you can debug your app in an installed production environment by turning on (assuming you don't use the final static boolean method) the appropriate logger? This has been extremely helpful in debugging. It also catches lots of things

Re: How to detect that session has expired ?

2003-12-09 Thread Curtis Taylor
HttpSessionListener is your friend...;-) http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html Kirk Wylie wrote: Ashish Kulkarni wrote: HI if u are using servelt 2.3 , then u can use servelt filter, in this filter u can have logic to check session before

RE: getting the form name

2003-12-09 Thread Daniel Lipofsky
There are 2 ways, and I did both, just to be anal and because I didn't know which was best. FormTag form = (FormTag) pageContext. getAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); if (form == null) form = (FormTag) findAncestorWithClass(this, FormTag.class); if (form

RE: [OT] Log4J and Pre-Processor

2003-12-09 Thread Edgar P Dollin
The difference between scientists and engineers The funny part is they are both right. The hard part is deciding which you are and living with the decision. Edgar -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] You might first run some load tests to see if the

Passing Parameters from Action to JSP's

2003-12-09 Thread Samanth Athrey
Hello All, I have a issue here. Any help would be of great help. I have an action class - Action_A which forwards the request to A.jsp. A.jsp has 2 query parameters that are displayed correctly. The two parameters are stored in hidden variables within the form tag. Now, when this page is

RE: Error message display in the case of redirect = true

2003-12-09 Thread alok . garg
You are right even I knew that it was the same problem. But then in that case if I make redirect = false and if the user refreshes the page then the request is again submitted. So, can you throw some light on how to stop the user from re submitting the same URL. Alok Garg Polaris Software Lab

PlugIn Scheduler

2003-12-09 Thread Gurpreet Dhanoa
hi I have created the following plug-in and using it into my application. The problem which I am facing is when I am running tomcat. The plug -in is not starting. The basic idea behind this plugin is to start a thread and peform some logic after some interval of time. ANy suggestions will

Re: Error message display in the case of redirect = true

2003-12-09 Thread Gurpreet Dhanoa
hi ALok You can stop the resubmitting of form with the help of Tokens in struts - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 11:00 AM Subject: RE: Error message display in the case of redirect = true

Re: Passing Parameters from Action to JSP's

2003-12-09 Thread hgosper
You should use an ActionForm to store parameters. Your hidden fields can get the value from the request like this: %-- hidden field (mode is one of create, edit, or view) --% html-el:hidden property=myParameter value=${requestScope.myForm.myParameter}/ Of course there are other

Re: Passing Parameters from Action to JSP's

2003-12-09 Thread Gurpreet Dhanoa
hi Sam IS your form associated with both of the Actions. - Original Message - From: Samanth Athrey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 10:41 AM Subject: Passing Parameters from Action to JSP's Hello All, I have a issue here. Any help would be

upgrade from 1.0 to 1.1 seems to break GenericDataSource

2003-12-09 Thread Mort Coleman
call to super.init() seems to have NullPointerException and cannot get a connection. Did anyone have this issue and know a work around? package com.cmp.servlet; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import javax.servlet.ServletException;

Re: Have your Book: UserInRole question

2003-12-09 Thread Max Cooper
You have only two choices for making request.isUserInRole() work: 1. Use container-managed security. 2. Use or create a Filter-based security system where you wrap the the request objects in order to implement the isUserInRole() method. You can't do this without writing a filter. The

Re: PlugIn Scheduler

2003-12-09 Thread Gurpreet Dhanoa
hi ALl It worked perfectly fine. Soon i will be posting the code for all of the buddies so that they can use it into there application. - Original Message - From: Gurpreet Dhanoa [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 11:24

Log4J

2003-12-09 Thread Sathish Babu K R
hi all i m getting this error... java.lang.NoClassDefFoundError: org/apache/log4j/Category at com.pronto.web.AccessSummaryReportForm.validate(Unknown Source) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:2106) at

RE: Log4J

2003-12-09 Thread Kalra, Ashwani
Do you have log4j.jar in web-inf\lib dir ? -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 12:16 PM To: Struts Users Mailing List Subject: Log4J hi all i m getting this error... java.lang.NoClassDefFoundError:

  1   2   >