RE: Session Times Out

2003-11-03 Thread Amit Kumar Sharma
if session becomes null than try this if ( session.getValue(SESSIONNAME)==null ){% script language=JavaScript window.open(Index.jsp,fullscreen=yes); parent.close(); //winself = window.self;

RE: Session Times Out

2003-11-03 Thread Amit Kumar Sharma
if session becomes null than try this if ( session.getValue(SESSIONNAME)==null ){% script language=JavaScript window.open(Index.jsp,fullscreen=yes); parent.close(); //winself = window.self;

RE: Session Times Out

2003-11-03 Thread Sreedhar Velagapudi
test

Re: Session Times Out

2003-11-03 Thread MBrewer
Make a custom tag like so : Create a tld file with this in it : ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd; taglib tlibversion1.0/tlibversion

RE: Session Times Out

2003-11-03 Thread Jose Ramon Diaz
Hi, But be carefull because the actions will be executed before redirecting to JSP, so I think it?s better to check the session in all the actions, isn?t it? Make a custom tag like so : Create a tld file with this in it : ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC

Re: Session Times Out

2003-11-03 Thread Vinayak Birari
hi, you can inform the user by using the request object bind ur message by : request.setAttribute(messageName, session timed out!!); retrieve the message by : request.getAttribute(messageName); hope this helps u. regards, Vinayak. - Original Message - From: Caroline Jen [EMAIL

RE: Session Times Out

2003-11-03 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
I think best way to check session is to extend requestProcessor Class and override processPath method, -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:06 PM To: 'Struts Users Mailing List' Subject: RE: Session Times Out Hi, But be

RE: Session Times Out

2003-11-03 Thread MBrewer
Yeah, you would do it in both places. In the jsp when you access it directly, and in the action. Mike |-+ | | Jose Ramon Diaz| | | [EMAIL PROTECTED]| | | di.es | | |

RE: Session Times Out

2003-11-03 Thread Andrew Hill
Or even better, use a filter (which requires Servlet API 2.3 or greater) -Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) [mailto:[EMAIL PROTECTED] Sent: Monday, 3 November 2003 18:20 To: Struts Users Mailing List Subject: RE: Session Times Out I think best way

RE: Session Times Out

2003-11-03 Thread Paul McCulloch
I use a servlet filter - this way I can restrict access to actions JSPs without putting any code in either of them. Paul -Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) [mailto:[EMAIL PROTECTED] Sent: 03 November 2003 10:20 To: Struts Users Mailing List Subject:

Chaining Actions.

2003-11-03 Thread Ashutosh Satyam
Hi, I just wanted to know how do I chain the actions, if the action classes sit in separate struts-config file. The two struts configuration files are as mentioned below. Struts-configApp1.xml action path=/Operation type=com.test.Operation scope=request parameter=method

Re: sending object with query.

2003-11-03 Thread Affan Qureshi
You will have to create a string from the collection of objects you have and send it as a hidden variable or query parameter(if length allows) Affan imran ali wrote: Hi All, I am sending a parameter with query request in this way: script function foo() { url =

Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Arne Brutschy
Hello, Thursday, October 30, 2003, 3:53:39 PM, you wrote: RB Is ${pageContext.request.servletPath} returning anything? Yes, it is returning the right path. RB Try something like RB html:hidden property=requestedPagec:out RB value=${pageContext.request.servletPath}//html:hidden I already tried

Paging

2003-11-03 Thread Mauricio T. Ferraz
Hi People!!! Anybody knows, how can I do paging with Struts??? (Previous 1 - 2 - 3 ... Next) And changing the color of the rows on the table each iteration? Is there any Tag Lib who do this??? Tanks!!! []´s Mauricio

Re: Paging

2003-11-03 Thread Frederic Dernbach
Mauricio, You can look at 'struts-layout' : http://struts.application-servers.com/ It is a quite powerful taglib that includes, among other stuff, paging management. Fred Le lun 03/11/2003 12:43, Mauricio T. Ferraz a crit : Hi People!!! Anybody knows, how can I do paging with Struts???

Struts Validator with Indexed Properties

2003-11-03 Thread Frederic Dernbach
I would like to know how to use the Struts Validator with indexed properties. I cannot display error messages under the field (but the validator obviously works and performs validation). Below is the relevant parts of my JSP and of my valdiation.xml file : Upon submission of the JSP's form, I

struts - Parsing error processing resource path

2003-11-03 Thread Vijaykumar
Hi all, I am a newbie in struts. I am using Tomcat 4.0.1, I get the following error message while starting the Tomcat D:\jakarta-tomcat-4.0.1\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;d:\jdk1.3.1\lib\tools.jar Using JAVA_HOME:

session time-out in pop-up windows

2003-11-03 Thread chinmay . r . parikh
I am using Filters to determine whether session has timed out or no and redirect user to login page. The implementation class extends Action class so you could display appropriate messages on login page when user gets redirected to it due to time out. However this does not work well when

Re: Paging

2003-11-03 Thread Christian Bollmeyer
http://displaytag.sourceforge.net/ (my favorite, new 1.0 beta out) http://jsptags.com/tags/navigation/pager/index.jsp HTH, -- Chris - Original Message - From: Frederic Dernbach [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:59 PM

Re: Struts Validator with Indexed Properties

2003-11-03 Thread Vijaykumar
Hi Frederic, I thing in validation.xml u must provide your setting as field property=orderNumber indexedListProperty=parameter depends=required,integer,positive arg0 key=rubis.strategy.label/ /field You have specified it as indexedListProperty=parameters Plz Verify your

Re: Struts Validator with Indexed Properties

2003-11-03 Thread Frederic Dernbach
Vijay, Thanks for your answer. I tried what you suggested, with no success. I get an exception saying that the getter method is not found : java.lang.NoSuchMethodException: Property 'parameter' has no getter method at

Re[3]: EL Expression in html:hidden tag

2003-11-03 Thread Arne Brutschy
Hello, I got it, a simple input type=hidden name=requestedPage value=${pageContext.request.servletPath} did the trick. I guess I shouldn't try to use struts tags too hard... Thanks, Arne Monday, November 3, 2003, 12:29:11 PM, you wrote: AB I already tried this, it does not work. Basically,

RE: Session Times Out

2003-11-03 Thread Vara Prasad Reddy
Hello everybody: How best is i18N taglib useful, along with struts 1.1 - Vara Prasad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Display User based/Role based Links/Buttons

2003-11-03 Thread Chawla, Yogesh
Hi, I needed to know what are the options for displaying User based screens. I have to show only selected buttons/hyperlinks based on UserId/Role Authentication. I believe using tiles is one of the options, any others as well.. All help appreciated ! Yogesh DISCLAIMER: The information in

i18N tag lib and struts

2003-11-03 Thread Vara Prasad Reddy
Hello everybody: How best is i18N taglib useful, along with struts 1.1 - Vara Prasad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Error when using Java Version 1.3.1_09

2003-11-03 Thread Sashi Ravipati
Hi The following code which is used to iterate works fine when using Java Version 1.3.1_07, but when we started to use 1.3.1_09 , we get an error. We are using Struts 1.1 final release libraries. I am pasting the code we used and also the error message. Are there any deprecated methods used by

2 problems with bean:include and bean:write whilst including results of action in page and behind firewall with NAT.

2003-11-03 Thread Fred Bloggs
Dear All, I'm relatively new to Struts and have come across two problems that have completely confused me. I am using Struts 1.1, Tomcat 4.1.27. Problem 1: I have an action that produces the most recent “news” and displays it on separate page. However I want to include those news as well on

RE: i18N tag lib and struts

2003-11-03 Thread Vara Prasad Reddy
meaning, do I need to use i18N tag lib at all, when using struts. -Original Message- From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 6:39 PM To: Struts Users Mailing List Subject: i18N tag lib and struts Hello everybody: How best is i18N taglib useful,

Re: Paging

2003-11-03 Thread Rick Reumann
Christian Bollmeyer wrote: http://displaytag.sourceforge.net/ (my favorite, new 1.0 beta out) The last time I used this tag was a long time ago (over 5 months). What I didn't like about it, at the time, was that it stored your entire collection in session scope. This is ok for small to moderate

Re: session time-out in pop-up windows

2003-11-03 Thread Hubert Rabago
Another way might be: 1. user clicks link for pop-up window, window pops-up and initiates the web request 2. Filter intercepts the request and senses that the session has timed out 3. Before redirecting, filter recognizes that the request was sent by a popup, and instead redirects to a different

RE: session time-out in pop-up windows

2003-11-03 Thread chinmay . r . parikh
Hubert Thanks for this. But how would filter recognise that the request was sent by a popup? As I understand, the process is like: - pop-up window opens - Page would read global forward url from the struts config file (the page to display) - It will check filter: if filter pass is true display

Third party form submission

2003-11-03 Thread chinmay . r . parikh
Hi I want to submit a form to third party web site using POST method. However, struts action class always evaluates URL specified in the config file as relative URL. i.e http://thirdparty.com http://thirdparty.com/ is read as /http://thirdpary.com and therefore I could not use forward in

Re: Paging

2003-11-03 Thread Ashish Kulkarni
Hi Visit this URL, it works great with struts or any jsp framework http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html Ashish --- Mauricio T. Ferraz [EMAIL PROTECTED] wrote: Hi People!!! Anybody knows, how can I do paging with Struts??? (Previous 1 - 2 - 3 ... Next) And changing the

RE: session time-out in pop-up windows

2003-11-03 Thread Rabago, Hubert
You'd have to find a way to identify the popup. It could be because of the requested resource (myPopup or any page with popup) or a special request parameter which will only be sent by a request for a popup window (href='/mycontext/myinfodisplay.do?myActualParam=1isPopup). Either way, the filter

Help with framesets

2003-11-03 Thread Vijay Kandy
Hello, Could some one point me to a frameset based web application or war file? I am having trouble understanding the flow in a frameset situation. I am trying to redesign an existing non struts based webapp. The current layout is that there is frameset within frameset containing menu and content

Re: session time-out in pop-up windows

2003-11-03 Thread Rick Reumann
Rabago, Hubert wrote: You'd have to find a way to identify the popup. It could be because of the requested resource (myPopup or any page with popup) or a special request parameter which will only be sent by a request for a popup window (href='/mycontext/myinfodisplay.do?myActualParam=1isPopup).

Which version of JDK is compatable with Struts Tags

2003-11-03 Thread Sashi Ravipati
We are having a problem when using Iterate tag with JDK 1.3.1_09. Did any body face this problem ?. Pls help Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Paging

2003-11-03 Thread Christian Bollmeyer
- Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 3:29 PM Subject: Re: Paging Christian Bollmeyer wrote: http://displaytag.sourceforge.net/ (my favorite, new 1.0 beta out) The last time I used

Re: Paging

2003-11-03 Thread Rick Reumann
Ashish Kulkarni wrote: Visit this URL, it works great with struts or any jsp framework http://kulkarni_ash.tripod.com/howto/jsptaglib-howto.html Yea page not found errors work great with any framework, I agree:0 -- Rick - To

RE: session time-out in pop-up windows

2003-11-03 Thread Hubert Rabago
Chinmay, If you don't want to mess with your URLs or add parameters (and I don't blame you), you can pass the list of popup urls to your filter: filter-nameAuthFilter/filter-name filter-classcom.chinmay.AuthFilter/filter-class init-param param-namepopupUrl1/param-name

RE: Paging

2003-11-03 Thread David Friedman
Rick, I started using the 1.0 beta 2 this weekend and it's full of impressive changes including fixed exports so it works with page breaks (previously, it only exported what was on the screen). About your copying of objects, the docs say that copying will happen if you let the tags sort the

Re: Paging

2003-11-03 Thread Christian Bollmeyer
- Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:46 PM Subject: Re: Paging Ashish Kulkarni wrote: Visit this URL, it works great with struts or any jsp framework

Re: setting DataSource

2003-11-03 Thread ZYD
Did you solved this problem? what's wrong with it? I didn't get load exceptions - Original Message - From: Funicelli Aldo [EMAIL PROTECTED] To: 'struts user' [EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:41 PM Subject: setting DataSource Using struts 1.1 I'm able to set a

Re: Help with framesets

2003-11-03 Thread javen fang
your frames have names: header / left / right so when you action mapping, you may use target tag. Example, if left , an action is a query data,and view it in right,just: target = right. form and href both have target attribute. Good luck. javen --- Vijay Kandy [EMAIL PROTECTED] wrote:

Re: Wanted API to handle user roles

2003-11-03 Thread Vic Cekvenich
You can use J2EE container security to autheticate the user and for some high level security. For low level and complex security, once the user is identified, you can extend it. I use JDBC relms with a self join and row level security. So a user in a certian level of a tree can see for example

Re: Paging

2003-11-03 Thread Vic Cekvenich
Christian Bollmeyer wrote: But what do you recommend? I saw there's a paginatedList feature in iBATIS, but I don't have any experience with it yet. -- You have to use 3 things together: 1. Display tag pagination (good for thousands of rows, maybe all you need, I store in request scope, let

Indexed tags struts 1.0

2003-11-03 Thread eric
I would like to pass the String[] array results of a select tag to an array set and in the form bean my object always seems to me an string and not a String[]? Could someone let me know if I am doing something wrong? jsp snippet: logic:iterate id=net name=localProductInfo property=network

Struts1.1 Oracle 9iAS

2003-11-03 Thread Tim Clotworthy
Hi, I am saddled with having to re-implement a struts-based architecture designed to run on a Tomcat web container, to an Oracle 9iAS Release2 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0 framework, but does not seem to support the various Struts1.1 capabilities that

Re: Wanted API to handle user roles

2003-11-03 Thread Rajat Pandit
hello zsolt, i am currently working on a project with similar required. if wonder if u have read about ActionMapping. make your own custom mapping (by extending ActionMapping) and then define properties in it like getRole, setRole. and in the structs-config.xml file itself, mention the role

Re: Help with framesets

2003-11-03 Thread Rajat Pandit
http://localhost:8080/struts-documentation/userGuide/struts-html.html#link in the html:link ... use the target attribute. quote target - The window target in which the resource requested by this hyperlink will be displayed, for example in a framed presentation. (RT EXPR) /quote in your case

Re: session time-out in pop-up windows

2003-11-03 Thread Rajat Pandit
hi, pls turn of the accept reciept. its damn annoying. rajatp [EMAIL PROTECTED] wrote: Hubert Thanks for this. But how would filter recognise that the request was sent by a popup? As I understand, the process is like: - pop-up window opens - Page would read global forward url from the struts

RE: Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Karr, David
-Original Message- From: Arne Brutschy [mailto:[EMAIL PROTECTED] Thursday, October 30, 2003, 3:53:39 PM, you wrote: RB Is ${pageContext.request.servletPath} returning anything? Yes, it is returning the right path. RB Try something like RB html:hidden

RE: Help with framesets

2003-11-03 Thread Vijay Kandy
Javen, Thank you for your response. So you are saying action tag in struts-config.xml has a target attribute or does it go in the JSP? I looked in the struts-config.dtd but couldnt find target. If its not too much to ask, could you explain with a sample action? --Vijay -Original

Re: sending object with query.

2003-11-03 Thread Rajat Pandit
wondering if object serialiazlisation will work for u? the serialized object can then be passed as a hidden object. ur class will have to implement an interface. Affan Qureshi wrote: You will have to create a string from the collection of objects you have and send it as a hidden variable or

Re: Paging

2003-11-03 Thread Rajat Pandit
hello rick, i am also using the beta version, undoubtly it works great(wonderful work matt!!!) but even now the problem with the export is that in case its someone under one of the tiles. there is no way to set the content-type once the page has been loaded and hence the xml/cvs/excel export

RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Karr, David
-Original Message- From: Tim Clotworthy [mailto:[EMAIL PROTECTED] I am saddled with having to re-implement a struts-based architecture designed to run on a Tomcat web container, to an Oracle 9iAS Release2 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0

RE: Help with framesets

2003-11-03 Thread Vijay Kandy
Thank you! I understand now. -Vijay -Original Message- From: Rajat Pandit [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:08 AM To: Struts Users Mailing List Subject: Re: Help with framesets http://localhost:8080/struts-documentation/userGuide/struts-html.html#link in the

Re: Store object in application scope

2003-11-03 Thread Ruth, Brice
It ended up being one of those late Friday afternoon typos ... I was storing navXml in application scope and trying to use xmlNav in my JSP. Ooops!! Nail, Evan Burke wrote: Hey Brice, I would agree I don't think it's finding your bean, as a result its trying to instantiate a Document object,

RE: Help with framesets

2003-11-03 Thread javen fang
left have a query: html:link action=customer.do?area=china target=rigth/ then view the result in the rigth content frame. javen --- Vijay Kandy [EMAIL PROTECTED] wrote: Javen, Thank you for your response. So you are saying action tag in struts-config.xml has a target attribute or does

RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Jose Ramon Diaz
Hi, We do NOT have any problem using Struts 1.1 with Oracle 9iAS 9.0.3. What kind of problems do you have? We have problems with 9iAS, but not related with Struts, else with the cluster,... -Mensaje original- De: Karr, David [mailto:[EMAIL PROTECTED] Enviado el: lunes, 03 de

Re: Help with framesets

2003-11-03 Thread Jim Theodoridis
Hello! Is it possible to work with framesets with tiles? I want to have one action and the data from that action displays in different ways from 2 or more frame sets I ve tried to work with frameLayout of tiles paradigms but only 1 frame works well. - Original Message - From: javen

RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Robert Augustyn
Jose, What problems have you run to with a cluster? robert Jose Ramon Diaz [EMAIL PROTECTED] wrote: Hi, We do NOT have any problem using Struts 1.1 with Oracle 9iAS 9.0.3. What kind of problems do you have? We have problems with 9iAS, but not related with Struts, else with the cluster,...

RE: Wanted API to handle user roles

2003-11-03 Thread David Friedman
Try this: http://pow2acl.sourceforge.net/screenshots.html I just wish there were a day to update (add/remove) roles during production. That way, I could switch an admistrator to a client's ID and fix something for the client, then switch back. But, everything I've seen about roles shows that

RE: session time-out in pop-up windows

2003-11-03 Thread David Friedman
Why not call request.isRequestedSessionIdValid() to find out if the session timed out? Or, try something inside struts such as request.getSession().isNew() to see if the session didn't exist before the call, then see if the session Id came from a cookie or embedded in the URL: 1)

Exception Handling in Action objects

2003-11-03 Thread Hubert Rabago
What's your approach to handling exceptions in your Action objects? Do you have a catch (Exception e) in your actions with special clauses for specific cases? I'm thinking of going this way: public ActionForward execute(...) throws Exception { // get values from parameters //

RE: Exception Handling in Action objects

2003-11-03 Thread David Friedman
Hubert, In struts v1.1 and newer, you can setup local exception handlers for an action such as: action ... ... exception / exception / exception / ... /action You sound like you're worried about a phenomenal number of exceptions. It sounds a little like overkill for exceptions.

RE: Exception Handling in Action objects

2003-11-03 Thread Hubert Rabago
I'm just trying to get other ideas for exception handling, specifically within Struts Action objects. I'm working on two different projects at the moment, both of which handle exceptions differently, and I'm wondering if one is better than the other and if I should propose changes for

RE: Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Kris Schneider
I'm jumping in late on this thread, but why bother using Struts-EL at all under JSP 2.0? The original (RT) tags should be magically EL-aware as long as the app uses a Servlet 2.4 format web.xml, right? ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee;

looping

2003-11-03 Thread Rajat Pandit
hello all, my current form has to allow the user to add models to a particular product. the form first allows the user to enter the number of products he wants to enter the first time. based on this number i have to show that many number of rows of textarea for him to make an entry. i am see

indexed tags

2003-11-03 Thread eric
Is is possible to pass a multiple select box, and Array of strings to an array list or Hash Map? I am only able to get Strings to pass, it doesn't seem to pass the whole Array only one value? Eric Waite Taylor Online Java Developer 631.549.3000 X317 http://www.readingplus.com

RE: Re[2]: EL Expression in html:hidden tag

2003-11-03 Thread Karr, David
Oh, duh. Good point. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] I'm jumping in late on this thread, but why bother using Struts-EL at all under JSP 2.0? The original (RT) tags should be magically EL-aware as long as the app uses a Servlet 2.4 format

Re: 2 problems with bean:include and bean:write whilst including results of action in page and behind firewall with NAT.

2003-11-03 Thread Kris Schneider
#2 first. Try using bean:include forward=.../ instead. You'll have to add a global forward to your struts config file, like: global-forwards forward name=mostRecentNews path=/getmostrecentnews.do/ ... /global-forwards And then use it in a page like: bean:include forward=mostRecentNews/ You

Re: Struts1.1 Oracle 9iAS

2003-11-03 Thread Patrick Schilling
Tim Clotworthy wrote: Hi, I am saddled with having to re-implement a struts-based architecture designed to run on a Tomcat web container, to an Oracle 9iAS Release2 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0 framework, but does not seem to support the various

Javadoc Warning

2003-11-03 Thread Ramadoss Chinnakuzhandai
Hi, I getting the following warning while generating Javadoc from ant build file.. [javadoc] initialize application beans [javadoc] 1. [javadoc] This sentence is different from what would be generated using -breakiterator: [javadoc] initialize application beans [javadoc] 1.

RE: Exception Handling in Action objects

2003-11-03 Thread chinmay . r . parikh
In our application, we do something like this: - Exception thrown back by EJB are RemoteExcpetion and ApplicationExceptions - Using instanceOf determine type of Application exception thrown and set unique identifiers (int 1 = OutOfFuelException 2=UnderAgeDriverException etc) - For RemoteException

Re: Javadoc Warning

2003-11-03 Thread Larry Meadors
Yes. [EMAIL PROTECTED] 11/03/03 11:56 AM Hi, I getting the following warning while generating Javadoc from ant build file.. is there anyway I can get rid of these warning.?? - To unsubscribe, e-mail:

how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread Kam Lung Leung
Hi, I need to retrieve property values from previous pages that were inputted by the user. For example; I have the following pages, actions and forms. firstPage.jsp firstAction.java firstForm.java secondPage.jsp secondAction.java secondForm.java finalPage.jsp finalAction.java finalForm.java In

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread David Friedman
Kam, One approach is to use hidden variables to ensure all fields are in every page. Another approach is to have each action use the same form in session scope so all fields are retained between POSTs (just remember to getSession().removeAttribute(NAME) when you're done with it to free up

RE: Javadoc Warning

2003-11-03 Thread Ramadoss Chinnakuzhandai
could you pls explain... -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: Re: Javadoc Warning Yes. [EMAIL PROTECTED] 11/03/03 11:56 AM Hi, I getting the following warning while

DynaAction form and ArrayList

2003-11-03 Thread Barry Volpe
Only Last row is available in my ArrayList? Have the following: ArrayList teachers = new ArrayList(); DynaActionForm teacherForm = (DynaActionForm)form; while ( rs.next() ) { System.out.println(firstname.rs: + rs.getString(firstname)); System.out.println(lastname.rs: +

RE: DynaAction form and ArrayList

2003-11-03 Thread David Friedman
Shouldn't you be adding rs.next() and not repeatedly adding the same teachForm? See: teachers.add(teacherForm); Shouldn't it be: (?) teachers.add(rs); Regards, David -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 2:36 PM To: Struts

Re: DynaAction form and ArrayList

2003-11-03 Thread Mark Lowe
while(rs.next()) { Map teacher = new HashMap(); teacher.put(firstName,rs.getString(firstName)); teacherList.add(teacher); } teacherForm.set(teachers, teacherList); request.setAttribute (teachers, teacherList.toArray()); Cheers Mark On Monday, November 3, 2003, at 07:35

Re: DynaAction form and ArrayList

2003-11-03 Thread Kris Schneider
Per the JavaDoc for RowSetDynaClass: import org.apache.commons.beanutils.RowSetDynaClass; ... Connection conn = ...; // Acquire connection from pool Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(SELECT ...); RowSetDynaClass rsdc = new RowSetDynaClass(rs); rs.close();

ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
I'm following the instructions provided here: http://jakarta.apache.org/struts/userGuide/building_view.html (section 3.4.3) for incorporating tiles definitions in struts-config.xml, and when the ActionServlet receives a request for an action who's parameter is a tile definition name (such as

ApplicationResources.properties

2003-11-03 Thread Norr, Peter
Newbie question.. Given the following ApplicationResources.properties file.. my.message=hello world. How do I print out my.message in a jsp page? Peter -- This message is intended only for the personal and

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles it'll recognize when you app starts up. Make sure yours is listed. I'm

Re: ApplicationResources.properties

2003-11-03 Thread Hubert Rabago
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:message key=my.message/ --- Norr, Peter [EMAIL PROTECTED] wrote: Newbie question.. Given the following ApplicationResources.properties file.. my.message=hello world. How do I print out my.message in a jsp page? Peter

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Ruth, Brice
How do I go about turning on debug for Tiles? Hubert Rabago wrote: I got this yesterday. It means Tiles didn't intercept your forward request because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the tiles

RE: ApplicationResources.properties

2003-11-03 Thread Wendy Smoak
Peter wrote: Given the following ApplicationResources.properties file.. my.message=hello world. How do I print out my.message in a jsp page? Or with JSTL: In web.xml: context-param param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name

Re: DynaAction form and ArrayList

2003-11-03 Thread Mark Lowe
It works alright but last time i played with these beanutil's toys it was understandably slow. A little less slower is getting the resultsetmetadata and using them as your property names. IMO its better to make some beans and populate them with the result set values, until you've time to put a

Re: ForwardAction not picking up Tiles defs?

2003-11-03 Thread Hubert Rabago
If you're using Log4j, turn on debug for org.apache.struts.tiles. If not, well, try using commons-logging's simplelog. I've used these lines before: System.setProperty(org.apache.commons.logging.simplelog.defaultlog,trace);

RE: Javadoc Warning

2003-11-03 Thread Ramadoss Chinnakuzhandai
if you know how to solve this problem pls let me know tnx in advance ~Ram -Original Message- From: Ramadoss Chinnakuzhandai Sent: Monday, November 03, 2003 2:34 PM To: Struts Users Mailing List Subject: RE: Javadoc Warning could you pls explain... -Original Message-

Re: Display User based/Role based Links/Buttons

2003-11-03 Thread Christian Bollmeyer
Am Montag, 3. November 2003 14:11 schrieb Chawla, Yogesh: Hi, Hi, I needed to know what are the options for displaying User based screens. I have to show only selected buttons/hyperlinks based on UserId/Role Authentication. I believe using tiles is one of the options, any others as

Re: Struts1.1 Oracle 9iAS

2003-11-03 Thread Christian Bollmeyer
Am Montag, 3. November 2003 17:26 schrieb Tim Clotworthy: Hi, Hi, I am saddled with having to re-implement a struts-based architecture designed to run on a Tomcat web container, to an Oracle 9iAS Release2 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0 framework,

Re: DynaAction form and ArrayList

2003-11-03 Thread Kris Schneider
That's just what RowSetDynaClass and the implementation of the Result interface in JSTL do (use ResultSetMetaData to grab column names). Quoting Mark Lowe [EMAIL PROTECTED]: It works alright but last time i played with these beanutil's toys it was understandably slow. A little less slower is

Working with UTF-8 and problems with German Umlauts

2003-11-03 Thread Zsolt Koppany
Hi, I have problems with German Umlauts when I enter the code below to my jsp pages. The problem is when I for example I forget to fill a required field and the previous values are restored after validation. How can I fix that? I use tomcat-4.1.24 with struts-1.1. %@ page

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread Kam Lung Leung
Thank David, The second option may not work for me because the secondPage.jsp will be further extends to hotel.secondPage.jsp, car.secondPage.jsp and so on. The purpose of the finalPage.jsp is to echo all values that were inputted from either the hotel group(firstpage.jsp and the

Re: Chaining Actions.

2003-11-03 Thread Manish Singla
Try forward as follows forward name=jobManager path=/Mgr.do?method=viewStatuscontextRelative=true / Ashutosh Satyam wrote: Hi, I just wanted to know how do I chain the actions, if the action classes sit in separate struts-config file. The two struts configuration files are as mentioned

RE: ForwardAction not picking up Tiles defs?

2003-11-03 Thread David Friedman
You can turn off debugging by setting the type to none. I recommend you set it instead to info so you can follow any standard tiles messages while you work on it. Regards, David -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 3:20 PM To:

RE: how to retrieve property values from previous forms/jsp pages

2003-11-03 Thread David Friedman
Kam, You can force a bean into the session scope by setting 'scope=session' in the action mapping action.../ (or action.../action). To retrieve it, you can do something like this: HotelBean hotel = (HotelBean) request.getSession().getAttribute(hotel); CarBean auto = (CarBean)

  1   2   >