RE: Indexed Properties with nested Tags

2006-11-21 Thread Raghuveer
Hi Adam, Use the sample code as requested by you. You can ask me any help with nested Tags and from advanced struts JSP ActionForm public class ProdSelectionForm extends ActionForm { Collection arlResults=null; //can be arrayalist /** * @return Re

Re: why/when to use redirect

2006-11-21 Thread Nuwan Chandrasoma
hi, if you use redirect=true , it would create a new request.. so what ever u had on the reqest will be lost. i think u have your action in request socope, you can change them to session scope and make sure you removed the Form and other attribute you put on the session after the action is fi

issue about

2006-11-21 Thread Denis Ling
Hi, all I just want like this , But I cannot found namespace property in tag . who can tell me how to set namespace at tag "" ? Very appreciate anybody who can give me some help. -- Thanks & Regards Denis Ling

where is ??

2006-11-21 Thread daniel blanco cuadrado
the first, is that my english is very bad. Second, how to configure in struts 1.3.5 whit http://struts.apache.org/dtds/struts-config_1_3.dtd . I know that prevously was in struts-config.xml, but now I dont know . where configure it ? Thank very much at all. ___

Re: bean: define tag

2006-11-21 Thread AQureshi
Affan Qureshi | Epsilon | [EMAIL PROTECTED] | 972-582-9895 temp temp <[EMAIL PROTECTED]> wrote on 11/20/2006 01:07:41 PM: > Can I use bean:define tag as below > > > > I get > illegal start of expression __jsp_taghandler_3.setValue( > OracleJspRuntime.toStr( serviceNameSpace

Map-Backed ActionForm without using scriptlets

2006-11-21 Thread Gundersen, Richard
Hi Is there a clean way to use map-backed ActionForms in a JSP without using scriptlets? Say I have a map of properties called 'userAttributes' in my ActionForm. I want to loop through these using something like a , and then for each one I find, I want to display an tag. The Struts tutori

why/when to use redirect

2006-11-21 Thread fea jabi
I am not really clear when to use redirect=true. I am chaining actions. As I was doing this I had to use redirect=true to get the values that were set in one action to another. But the request attributes set in that action were lost when redirect is set to true. why is that? is there any way,

RE: DynaValidatorForm help?

2006-11-21 Thread Mano Chinthaka Dasanayaka
Hi, Are you resetting the property correctly in your action class? Using, PropertyUtils.setSimpleProperty(form, "obj", List);? Regards, Mano -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 11:58 AM To: user@struts.apache.org Subject: DynaValidat

Re: where is ??

2006-11-21 Thread Ted Husted
The internal Struts datasource is no longer supported. Instead, use something like DBCP from the Jakarta Commons. * http://jakarta.apache.org/commons/dbcp/ -- HTH, Ted. * http://www.husted.com/struts/ On 11/20/06, daniel blanco cuadrado <[EMAIL PROTECTED]> wrote: the first, is that my english

RE: another html:link issue

2006-11-21 Thread Strachan, Paul
You could also try define a second form and use javascript to post parameters using onclick event...maybe something like: function submitForm2() { self.document.Action2Form.variable.value=self.document.Action1Form.varia ble.value; self.document.Action2Form.submit(); } then...

RE: session maintenance in struts webapp

2006-11-21 Thread Gundersen, Richard
Maybe you could have a bit of JavaScript in a tile or other include that's in all your pages. Whenever a page loads, the session idle time will be reset automatically, so you will have seconds before it expires. In the JavaScript, you could just do a simple loop that counts down from zero. W

session maintenance in struts webapp

2006-11-21 Thread robin bajaj
Hi Folks, In my Struts 1.2.x based webapp, I intend to maintain a session for every logged in user. -- More details -- Say after 'n' seconds of inactivity I want to pop up a message saying the session will expire in another 'm' seconds. The user can click on 'refresh' button to get some more grace

Re: [s2] building SVN trunk problem

2006-11-21 Thread Andrew Stepanenko
I checked out and built xwork trunk to get updated snapshot at $M2_REPO, and then built struts2 trunk. Though some tests in struts2 have failed I got struts 2.0.2 SNAPSHOT at my repo. Thanks all for help! Andrew. On 11/20/06, James Mitchell <[EMAIL PROTECTED]> wrote: It's part of XWork. ...an

Re: [s2] building SVN trunk problem

2006-11-21 Thread Ted Husted
Yes, when you are building against the repository, form day to day, some things may be broken. We in an active development mode, and, right now, one change is leading to another. As mentioned, any questions about building against the repository should be directed to the dev@ list. The user@ list

Re: [s2] building SVN trunk problem

2006-11-21 Thread Wendy Smoak
On 11/20/06, Andrew Stepanenko <[EMAIL PROTECTED]> wrote: Struts2 API seems to compile well, but when it gets to compiling Struts2 Core it complains about package com.opensymphony.xwork2.inject doesn't exist. The full maven2 error log is attached. Interesting thing is that I was not able to find

RE: Indexed Properties

2006-11-21 Thread Raghuveer
hi Adam, I understand description,numProducts are properties in User defined Object/java bean in results(getResults(),setResults(..)) Collection in your actionForm. For this kind of requirments there will not be any change in actionform even though ,complixety increases in nesting.. Solution is

Re: [s2] building SVN trunk problem

2006-11-21 Thread Andrew Stepanenko
Thanks, Wendy and James! I'll try that out. Will let you know what happened. Andrew P.S. This question probably should have been directed to Struts Dev list. On 11/20/06, James Mitchell <[EMAIL PROTECTED]> wrote: It's part of XWork. ...and to add to what Wendy said... You can do either: Ch

help?

2006-11-21 Thread Mallik
Hi friends this is a modifying details page. i have a select box,that will populate with databases values. i used . till now everything ok. but one of these options should select automatically when the page displayed that value is in formBean. how can i do this help pease ur's Mallik --

[s2] maven archetype + jasper plug-in

2006-11-21 Thread David Durham
A few questions all bundled into one e-mail. First, I'm attempting to use the jasper plug-in for struts 2, and have a maven archetype as my starting point. I uncommented these lines in my pom.xml: jasperreports jasperreports 1.2.1 I then followed t

Re: html:link newbie problem

2006-11-21 Thread priya
Darn how did I miss that ! Thank you Elie and Wes! On 11/20/06, Elie Ciment <[EMAIL PROTECTED]> wrote: priya, Your html:link (the "opening" tag) has incorrect syntax. You need to change it from Next Page to Next Page No extra "/" - that closes the tag in standard xhtml markup. That shoul

Struts, running email process in separate thread

2006-11-21 Thread Levan Dvalishvili
Hi ! this might be little bit not directly related to Struts but since I am doing it in struts I decide to ask here, I have basic email procedure , what I try to achieve is : 1) from action to first start separate thread that will send email 2) for current thread go the overview page saying you

Indexed Property and Hand Cranking Lazy List

2006-11-21 Thread Adam K
Hello all, I am sorry to subject this list to yet another person who doesn't understand something, but I can't for the life of me figure out hand cranking lazy lists. I am using 1.2.9 with java 1.5.0_06 And I can't get lazy lists to work. I am trying to use what I found at : http://wiki.apache.

Re: another html:link issue

2006-11-21 Thread robin bajaj
Thanks for the reply Ed, I have a quick question about paramId usage. How about having a hidden parameter, like and doing paramScope="someScope"> View Loyalty Page Shouldn't this pass the "variable" in some Scope to be later retrieved in the subsequent action etc. OR Do I HAVE TO bri

Re: dont exist ForwardAction ??

2006-11-21 Thread Laurie Harper
daniel blanco cuadrado wrote: hello again, thank for the previous answer. I would like to use a ForwardAction, but in struts core 1.3.5 don't exist in org.apache.struts.action. Don`t exist ForwardAction yet ? or now is ForwardingActionForward ??? Perhaps you're thinking of ActionForward? ht

STRUTS2 and AJAX

2006-11-21 Thread Juan Espinosa
Hi to all i have two questions... First question... is possible to remove spring dependecies in struts2 or spring stuff (jars, applicationContext.xml and ContextLoadListener) are neccesary to run struts2 Second question or advise... i want to give a try to ajax, i want some parts of me site to b

Re: [s2] and FCKeditor

2006-11-21 Thread Andrew Stepanenko
Hello Ted, thanks for your reply. I ended up with adding tag to struts-tags by updating tld and copying necessary staff from webwork components and jsp.ui packages. But Freemaker templates also need to be updated, which is the most difficult, as richtexteditor.ftl itself references tags, and I

Bean design for Struts and Axis webservice

2006-11-21 Thread dave .
Env: Struts 1.2.9, Axis 1.4 Where should the number of rooms (bed, bath, etc.) be calculated so that the roomCount can be accessed in a Struts Action and displayed on a jsp page? public class Property implements Serializable { private Set rooms = null; } public class Room implemen

RE: Logging to db

2006-11-21 Thread Lance Semmens
It would be easy enough to do by writing a custom javax.servlet.Filter. You would map your Filter to "*.do" in web.xml. Alternatively you could configure a JDBC appender in log4j for "org.apache.struts.action.RequestProcessor" at level "debug" although you might find a bit too much junk is bein

bean: define tag

2006-11-21 Thread temp temp
Can I use bean:define tag as below I get illegal start of expression __jsp_taghandler_3.setValue( OracleJspRuntime.toStr( serviceNameSpace%><%="bp.afg.award.")); what is the problem ? Thanks Miro - Sponsored Link $200,000 mort

Re: Struts2/WebWork and tagdir style tags?

2006-11-21 Thread DNewfield
David Durham wrote: > I didn't think s2 or ww had its own EL syntax. You're right, of course. This is simply one of a number of places where the subtle differences between "%{FOO}", "${FOO}", "FOO", etc. (and locations where they're appropriate) has me confused. Any advice to un-confuse me? -D

pb recover session

2006-11-21 Thread nalimoussa
hi, I will want to know how to recover a session of a bean in a jsp page? thanks, Nam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Indexed Properties

2006-11-21 Thread Adam K
If you might be able to provide a sample I would be very greatful. As it stands I have come up with the following : changing the JSP to : Result seemed more natural as it is a single element of the results. All I want to be able to do is pull 3 things out o

Re: javascript and readonly in struts

2006-11-21 Thread Laurie Harper
Søren Blidorf wrote: Hi. I am trying to convert the following in to struts taglib I'm not really sure what that means. You want to convert a client-side Javascript behaviour to a server-side behaviour. What is the use case you're trying to achieve? function choose() { if (this.form.v1

RE: Logging to db

2006-11-21 Thread Gundersen, Richard
Log4j provides this functionality Look at the docs for these two classes org.apache.log4j.jdbcplus.JDBCLogger; org.apache.log4j.jdbcplus.JDBCSqlHandler; I've implemented it here, and it works great. Richard -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED

Re: Struts2/WebWork and tagdir style tags?

2006-11-21 Thread David Durham
DNewfield wrote: David Durham wrote: I didn't think s2 or ww had its own EL syntax. You're right, of course. This is simply one of a number of places where the subtle differences between "%{FOO}", "${FOO}", "FOO", etc. (and locations where they're appropriate) has me confused. Any advice to

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's a bug in rhino, alternatively commons-validator i

Re: help?

2006-11-21 Thread Mallik
Hi friend thankyou i got it thankyou very much ur's Mallik chamalsl wrote: > > Hi, > > U can do like this, > > > > property="allTeams" value="teamRef" label="teamName"/> > > > > Division is a form bean. > allTeams is the vector which contains the objects. > Vector contains team objects

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
The tags generate functions based on the form's name - looks like it isn't finding the form's name resulting in your "undefined_required". I've not used httpunit, but I guess you need to get http unit to generate the html as a jsp would do and have it parse the form and set up the dom as the brow

Re: Logging to db

2006-11-21 Thread Nuwan Chandrasoma
i think you can configure log4j do log messages to a DB, hope it will help you. - Original Message - From: "Søren Blidorf" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 21, 2006 1:19 PM Subject: Logging to db Hi. I what to log every user action on my application and save it in

RE: html:link newbie problem

2006-11-21 Thread Wesley Wannemacher
Instead of ... Try: ... Notice the lack of slash in the example. Basically, you are closing the tag before you intend to close it. -Wes > -Original Message- > From: priya [mailto:[EMAIL PROTECTED] > Sent: Monday, November 20, 2006 10:56 AM > To: user@struts.apache.org > Subject: html:

RE: session maintenance in struts webapp

2006-11-21 Thread Lance Semmens
You could either do it client side in javascript setTimeout("confirmSessionExpire()", timeoutPeriod); Or you could have a serverside thread and use DWR's amazing reverse ajax to push alerts to the client(s) that are about to expire. Reverse ajax is part of DWR2.0 and is not yet productio

Re: html:link newbie problem

2006-11-21 Thread Elie Ciment
priya, Your html:link (the "opening" tag) has incorrect syntax. You need to change it from Next Page to Next Page No extra "/" - that closes the tag in standard xhtml markup. That should fix it (also, fix up the Previous Page code to surround the words Previous Page with Previous Page). Goo

Re: session maintenance in struts webapp

2006-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: > In the JavaScript, you could just do a simple loop that counts down from > zero. When the loop gets to within e.g. 60 seconds > from zero, pop up your message. You don't want to do this. You want to use "setTi

problems using httpunit / rhino with struts validator

2006-11-21 Thread Nathan Coast
Hi, First off, thanks for the validator - saved me countless hours of writing js. I've started trying to introduce httpunit integration tests to my applications and unfortunately with both js and validator enabled, it barfs in fine style. httpunit 1.6.2, validator 1.3.0, rhino js-1.6R3.jar

No deploy service or JSP/Servlet service available

2006-11-21 Thread Søren Blidorf
Hi. I am working on upgrading my Struts app and get the following error: "myWeb.war": No deploy service or JSP/Servlet service available for myWeb Webmodule I have also just started using JBuilder 2006 so I am not sure if it is a Jbuilder problem. Any idears? BR Soren, DK -

Getting errors in Struts 1.2 Layout DataGrid

2006-11-21 Thread nagesh.kumar
Hi All, Iam using Struts 1.2 Layout DataGrid in jsp Iam able to get populate the values in DataGrid in jsp perfectly working fine ,.> when i click the SUBMIt button iam getting below errors. 1 if i change the scope = "request" to scope = "session" this error is not reproducing //***

Logging to db

2006-11-21 Thread Søren Blidorf
Hi. I what to log every user action on my application and save it in my sql db. Is there a build in function in STRUTS for that? BR Soren, DK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Indexed Property and Hand Cranking Lazy List

2006-11-21 Thread Hubert Rabago
Struts is getting confused by: public List getSkills() { return skills; } public void setSkills(Product skill) { this.skills.add(skill); } The getter and setter should be consistent. - Hmm... I just looked at the link you sent and it looks l

Re: [s2] maven archetype + jasper plug-in

2006-11-21 Thread David Durham
David Durham wrote: Now my log4j.xml (relevant entries only): But I don't get DEBUG messages from struts in catalina.out. I only see INFO messages. I do see DEBUG messages from my action classes. I haven't checked struts 2 source code to see if the

Re: DynaValidatorForm help?

2006-11-21 Thread Nuwan Chandrasoma
Hi, DTO's.. its nothing much.. just create a POJO's with what ever attribuetes you want to have. for eg: class Block { private String blockNo; private String location; // public setter and getter method. } In you action class.. you populate each of these objects for the each row

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast <[EMAIL PROTECTED]> wrote: Hi Niall, thanks for the response. Httpunit handles the http/html side of things and delegates to mozilla's rhino jar for a 'standards compliant' java implementation of js (not sure how compliant or what version). I'm thinking either there's

Re: DynaValidatorForm help?

2006-11-21 Thread Mallik
Hi friends i don't have idea about DTO can you give me some idea please ur's Mallik nuwan chandrasoma-2 wrote: > > Hi, > > The loop is wrong, your are overwriteing the same form bean, and also what > i > would suggest is create a DTO for this and populate the DTO and add create > a > list

Re: OT: over a

2006-11-21 Thread Laurie Harper
Søren Blidorf wrote: Hi does anybody know how to hide a with a . When I try the is shown thru the Try how? I'm guessing you're running into an Internet Explorer 'feature' whereby native controls always show up over the top of other HTML. If that's the case, you need to use an iframe as a

RE: DynaValidatorForm help?

2006-11-21 Thread Mano Chinthaka Dasanayaka
Hi Malik, It seems a problem with your do Loop, Try using this instead of do().. while (rs.next()) {} any how, calling DB directly through your action class is not a good practice as I know..:p Regards, Mano -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Tuesd

Re: problems using httpunit / rhino with struts validator

2006-11-21 Thread Niall Pemberton
On 11/22/06, Nathan Coast <[EMAIL PROTECTED]> wrote: Unfortunately I can't find any rhino mailing lists or docs. Any validator or rhino experts who can point me in the right direction? http://www.mozilla.org/rhino/doc.html cheers Nathan -

Re: help?

2006-11-21 Thread chamal desilva
Hi, U can do like this, Division is a form bean. allTeams is the vector which contains the objects. Vector contains team objects which has teamRef and teamName properties. division form bean also contains a property for teamRef. "" So when this teamRef is equal to teamRef of one of the te

Re: LazySortedMap of LazyList Objects in a Form

2006-11-21 Thread Laurie Harper
What behaviour are you getting? It's difficult to debug the problem if we don't know what's broken ;-) L. Eric Benedetti wrote: I've got a Form which contains a LazySortedMap, the keys being Strings and the values being LazyList objects. Each LazyList object contains a list of Checkbox objec

Re: [S2] configuring Tiles with Struts 2

2006-11-21 Thread David H. DeWolf
Sure. . .have you looked at: http://cwiki.apache.org/WW/tiles-plugin.html I'll be updating it shortly to take into account some of the recent changes in the plugin, but this should work in 2.0.1. There are a couple of different options if your using the snapshot. Also, depending on which t

Re: TabbedPanel

2006-11-21 Thread Musachy Barroso
What is it that you want it to do? musachy Vivek Mannur wrote: I observed that all the tabs in tabbed panel are seen on initial load. It would be great if some one could help me out. heres the code

html:link newbie problem

2006-11-21 Thread priya
This is probably a very simple question but this being my first struts application its not that simple for me :) - I am using pagination on one of my jsp pages. There is a simple text box and 2 hidden fields (size, start) which do a search and calls search.do. - search.do passes attribut

RE: Forwarding to Different JSP

2006-11-21 Thread Mano Chinthaka Dasanayaka
Hi Nuwan', +1 for multiple forwards... And, as I can remember this is possible only if we use a Dispatch Base Action..is'nt that? Regards, Mano -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 3:52 PM To: Struts Users Mailing List Su

TabbedPanel

2006-11-21 Thread Vivek Mannur
I observed that all the tabs in tabbed panel are seen on initial load. It would be great if some one could help me out. heres the code cheers, Vivek. --

Re: dont exist ForwardAction ??

2006-11-21 Thread Hubert Rabago
I think he's looking for: Daniel, ForwardAction is no longer needed because you can now forward directly without using an Action class. Hubert On 11/21/06, Laurie Harper <[EMAIL PROTECTED]> wrote: daniel blanco cuadrado wrote: > hello again, thank for the previous answer. > > I would like to

Re: Struts2/WebWork and tagdir style tags?

2006-11-21 Thread David Durham
DNewfield wrote: Has anyone on this list had success creating .tag files under tomcat5.5 (with 2.4) with struts2 or webwork2? I can create and use them simply enough, as long as I don't try to pass in anything as an attribute. I cannot figure out any syntax (${bar}, %{bar}, #bar, bar, etc.) tha

Re: DynaValidatorForm help?

2006-11-21 Thread Nuwan Chandrasoma
Hi, Can i see the you jsp code, are you iterateing the list propertly Thanks, Nuwan - Original Message - From: "Mallik" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 21, 2006 6:28 AM Subject: DynaValidatorForm help? Hi friends first of all thanks for your great help situation

RE: DynaValidatorForm help?

2006-11-21 Thread Mallik
hi friend i have no idea about resetting this is my source code please help me in finding worng.. Action Class - public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServl

Re: Forwarding to Different JSP

2006-11-21 Thread Nuwan Chandrasoma
Hi, Having your forwards configured in the struts-config.xml is good for maintenace, if you need to change a forwad its just a matter of chaning the .xml, hard codeing the forwards in action class is not good when you have configuareable framework like struts. for my understanding i would have

Re: Struts, running email process in separate thread

2006-11-21 Thread Leon Rosenberg
if you are on jdk 1.5 you may want to check the Executor interface. Its basically the same pattern, but removes complexity from your code. http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Executor.html regards Leon On 11/21/06, Levan Dvalishvili <[EMAIL PROTECTED]> wrote: Hi ! thi

RE: Forwarding to Different JSP

2006-11-21 Thread Mano Chinthaka Dasanayaka
Hi, Yes I also had this type of a scenario to cover. I also used the same way as you have mentioned. I used multiple forwards in the config file so that based on the forward user is directed to the relevant page. But if your pages are very much similar you can hide several controls .. Regards, man