Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
I got it Abhiram, Used this styleId="<%="sp" + index%>" index is the indexid from logic:iterator tag Thanks again Also I was getting styleId not using expressions error since yesterday. Figured out this was because I was using struts-html-el.tld instaed of struts-html.tl

Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
can just access the comboboxes using their ids..this should work whether ur comboboxes are static or dynamic. Maya menon wrote: Hi all, I have a page which displays dynamic comboboxes. The records from DB will be displayed in table and two fields are getting displayed in comboboxes. Now, there is on

Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
Can i have some ideas here ? Thanks Maya menon <[EMAIL PROTECTED]> wrote: Hi all, I have a page which displays dynamic comboboxes. The records from DB will be displayed in table and two fields are getting displayed in comboboxes. Now, there is one condtion in which if user c

Dynamic combo boxes

2007-09-20 Thread Maya menon
Hi all, I have a page which displays dynamic comboboxes. The records from DB will be displayed in table and two fields are getting displayed in comboboxes. Now, there is one condtion in which if user changes something in first combobox then value of second combobox should automatica

Retrieving names of dynamic comboboxes

2007-09-10 Thread Maya menon
How do we retrieve the names of dynamic comboboxes generated using iterate tag ? I need to capture the onchange event, but how will I capture the name of the combo box ? Thanks - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user

Re: Struts question

2007-09-09 Thread Maya menon
tndata.tnStatus for bean under name TestFormBean Please helpme, what am i doing wrong ? TestFormbean looks like this private Testdata[] testData; public TestData[] getTestData() { return testData; } public void setTndata(Testdata[] testData) { this.testData= testData; } Maya menon <[EM

Struts question

2007-09-09 Thread Maya menon
> value='mypath'/>">I have a question about how to retrive the value from a > data object in the form bean > value='mypath'/>"> > value='mypath'/>">I have a form bean, TestForm where I declare my dataobject as > value='mypath'/>">private testdata[] data; > value='mypath'/>"> > value

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
parameter and allowing users to select the parameter they want. The new ndow[new jsp also] I have added the same action configuration.. Thanks Maya menon <[EMAIL PROTECTED]> wrote: Chris, Thanks for the reply, I dont have redirect=true Here is the action:

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Chris, Thanks for the reply, I dont have redirect=true Here is the action: Thanks again, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maya, Maya menon wrote: > In submitAction, I call setter method of for

Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Hi all, I need some help here. I am using Struts 1.2 1. I have inputForm1.jsp where I input 2 values and then fetch the 3rd value using a Submit action. This has been mapped to Submit.do and inputFormBean is referrenced in the struts-config file. Inside action class Submit.do, th

Struts-Jsp display

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

Session Management

2007-03-15 Thread Maya menon
All, I have couple of questions while designing a web app using struts. My application uses Httpsession variables. 1. How do we handle a user from opening duplicate sessions ? Like if a user is already logged in, if he/she tries to login again, system should mention that user is already

Re: Real time data display in a struts based application.

2007-03-02 Thread Maya menon
eded.. any examples. Musachy Barroso <[EMAIL PROTECTED]> wrote: Oops...I can't help it, I always assume we are talking about S2. If you are using S1, pick an ajax framework, most of them have a Div tag like the one on S2. See Frank's email for details on one of them. musachy On

Re: Multiple forwards ?

2007-03-01 Thread Maya menon
ne with the include.. Thanks, Maya Mike Baroukh <[EMAIL PROTECTED]> wrote: you can't forward to 2 jsps. Eventually you can include the result of a jsp in another with or you can use tiles or sitmesh to do it. Maya menon a écrit : > Has anyone tried forwarding to mu

Multiple forwards ?

2007-03-01 Thread Maya menon
Has anyone tried forwarding to multiple mappings ? or multiple jsps ? we have a requirement to use two jsp pages together. Upon success, how will we forward to two jsps ? Is this possible ? I have never done it and am unsure whether it can be done too. If anyone knows an idea, please

Re: Real time data display in a struts based application.

2007-03-01 Thread Maya menon
eeded. For a JSP/HTML page refresh you're sending more data over the line. The key here is a well designed AJAX application. Maya menon wrote: > Thank you both for your responses. > > So AJAX is the technique I should refer. Anyone know of any examples / > somethings. >

Re: Real time data display in a struts based application.

2007-02-28 Thread Maya menon
ion" every 3000 milliseconds. There are many frameworks available, so you can pick one that fits your needs. For simple scenarios, the div tag will do. musachy On 2/28/07, Maya menon wrote: > > Thank you both for your responses. > > So AJAX is the technique I should refer. Anyon

Re: Real time data display in a struts based application.

2007-02-28 Thread Maya menon
i > MSN: [EMAIL PROTECTED] > Author of "Practical Ajax Projects With Java Technology" > (2006, Apress, ISBN 1-59059-695-1) > Java Web Parts - http://javawebparts.sourceforge.net > Supplying the wheel, so you don't have to reinvent it! > > On Wed, February 28, 2007

Real time data display in a struts based application.

2007-02-28 Thread Maya menon
All, Have a design issue here. We have a web based application and have 2000 concurrent users. The requirement is: when new data comes on Oracle database for users this data has to be sent to the online users on a real time basis. Someway, the real time data needs to be pushed to the users

Re: [S2] JNLP with struts ?

2007-02-27 Thread Maya menon
ughts, appreacited Thanks cilquirm <[EMAIL PROTECTED]> wrote: in your resulting page you can set @page contentType = 'application/x-java-jnlp-file' and return the body of your jnlp file ( possibly even read via c:import or some such mechanism ) Maya menon wrote: > > Have

JNLP with struts ?

2007-02-23 Thread Maya menon
Have anyone used java web start[JNLP files] with struts ? I have a project which uses struts. Now i have a Login.jsp, which calls Loginaction.java. If user is a valid user, then I have to initiate a call to a "jnlp file" . Have anyone done this ? basically, I want to install som

RE: General question

2007-02-01 Thread Maya menon
r, allowing only one instance of the user to operate the app. -----Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 12:52 PM To: user@struts.apache.org Subject: General question I have a struts based J2ee app which displays data from DB in the res

Re: General question

2007-02-01 Thread Maya menon
displayed. what way can the appearence of DB values be prevented in multiple windows ? Thanks Dave Newton <[EMAIL PROTECTED]> wrote: --- Maya menon wrote: > My question is: if users try to open another > window and do simultaneous tasks, how can I avoid > same user

General question

2007-02-01 Thread Maya menon
I have a struts based J2ee app which displays data from DB in the results.jsp page. For DB data access, I use a DAO which returns a serialized object. This serialized object, I set it to request object using setAttribute and retrieve it using tag i n jsp page. My question is: if users tr

best possible design

2007-01-30 Thread Maya menon
All, I need to enable role based access to my Struts-J2EE application. ie, if a normal user logs in, user should see one page whereas if a superuser logs in he should see another page. Whats the best suited design here ? Any links ? I use Struts 1.x,Eclipse and Tomcat T

Come back to same JSP

2006-08-29 Thread Maya menon
All, I have a jsp page, to add new records to the database. Now, when the records are added succesfully I have to come back to the same page with the fields populated with the added values. how do i achieve this ? Please let me know. Thanks

Re: Tags in struts

2006-07-12 Thread Maya menon
ok... good thought, looking at Javascripr right now to edit the options in list box.. -Maya Adam Gordon <[EMAIL PROTECTED]> wrote: Maya- Just had a thought...you can set the "style" attribute on the element to say 'style="display: none;"' to hide a row in the list. Additionally,

RE: Tags in struts

2006-07-12 Thread Maya menon
e empty string (or perhaps even null), no item will be selected when rendered. Hope this helps. -Adam -----Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 July 2006 07:21 To: Struts Users Mailing List Subject: Re: Tags in struts Adam, Thanks for the sugge

Re: Tags in struts

2006-07-12 Thread Maya menon
them that they must select a time zone. Glad it worked. -Adam Maya menon wrote: > Thanks Adam > > Implemented it and it worked. > One quick question, when we use these tags, one of the options get > selected by default. How can we modify the

Re: Tags in struts

2006-07-11 Thread Maya menon
the value of the "property" attribute. the "labelProperty" attribute dictates what is actually displayed to the user in the browser. Let me know if you have any more questions. -Adam Maya menon wrote: > Thanks Adam. > > Yes, I have a bean lets say, Testbean with tw

Re: Tags in struts

2006-07-10 Thread Maya menon
Thanks Adam. Yes, I have a bean lets say, Testbean with two Collections. I have to display the value of these Collections[has objects] in a select box in my JSP. Can you send me the sample code please ? Maya Adam Gordon <[EMAIL PROTECTED]> wrote: > In my JSP I have a te

Tags in struts

2006-07-10 Thread Maya menon
All, In my JSP I have a textbox and two list boxes[which can display multiple values]. From my database, I have an object [a data object], ListData with following information returning string result; Vector itemList; //list of object 1 ArrayList itemList1; //list of object 2

Best approach

2006-06-12 Thread Maya menon
All, I have 4 buttons in a jsp. The four should do four different things, with 2 being Submit and Cancel. Is it a good way to write 3 different action classes or just one action class ? Which is a good approach ? Thanks __ Do You

Reload the same page

2006-06-08 Thread Maya menon
All, I have a page, results.jsp with a link < ahref="deleteAction.do?/> In deleteAction, the record will be deleted by calling the helper classes and on succesful delete the request should be forwarded again to the results.jsp. How can I achieve this ? In strts-config,

RE: Retrieve values

2006-06-07 Thread Maya menon
ion class, I want to get it String x = request.getParameter("data"); and again create a vector, to set it to the request If I do that, in the jsp, it says: no getter method found. please suggest me where I am wrong Maya menon <[EMAIL PROTECTED]> wrote: Yes, regarding this:

RE: Retrieve values

2006-06-07 Thread Maya menon
the input hidden type's name is data -----Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 18:34 To: Struts Users Mailing List Subject: Retrieve values I tried storing vector values in a hidden field. [input] "/> where data is a vector which I have se

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. "/> where data is a vector which I have set into the request type. Now how will I retrieve it ? Maya menon <[EMAIL PROTECTED]> wrote: Manoj, In the vector I am storing a data object with 6 fields. I am usi

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. "/> where data is a vector which I have set into the request type. Now how will I retrieve it ? Maya menon <[EMAIL PROTECTED]> wrote: Manoj, In the vector I am storing a data object with 6 fields. I am usi

RE: Handling attribute values

2006-06-07 Thread Maya menon
Or In Edit action again set the update attribute in request scope Cheers -Original Message----- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 14:52 To: user@struts.apache.org Subject: Handling attribute values Hi all, 1. I have an action class, DisplayAction which displays t

RE: Handling attribute values

2006-06-07 Thread Maya menon
, It seems you storing a list of records in request Set the attribute in session scope, and when you delete the record update the attribute in session when you are in editAction Or In Edit action again set the update attribute in request scope Cheers -Original Message- From: Maya menon

Handling attribute values

2006-06-07 Thread Maya menon
Hi all, 1. I have an action class, DisplayAction which displays the records from database. Here I am setting a vector into the request scope and on success forwarding it to displayresults.jsp. 2. Display results.jsp displays all records with an option of delete to the users. 3

Re: Global forwards and actions

2006-06-01 Thread Maya menon
this in your JSP instead: form.action="/Delete*.do*"; //in the jsp On 6/1/06, Maya menon wrote: > > well, > > Here is exactly what I have: > > 1. jsp files are in /jsp folder. > struts-config file entries and action classes. > > struts-config ent

Re: Global forwards and actions

2006-06-01 Thread Maya menon
the action mapping in struts-config, plus > the ".do", so if the form has: > > > > then the action mapping must be: > > > > > On 6/1/06, Maya menon wrote: > > > > Ok, for delete.jsp I put action="delete.do" > > form.action=&

Re: Global forwards and actions

2006-06-01 Thread Maya menon
ECTED]> wrote: The form action is the same as the action mapping in struts-config, plus the ".do", so if the form has: then the action mapping must be: On 6/1/06, Maya menon wrote: > > Ok, for delete.jsp I put action="delete.do" > form.action="Delete.do&

RE: Global forwards and actions

2006-06-01 Thread Maya menon
ion The request sent by the client was syntactically incorrect (Invalid path /jsp/Delete was requested). What am I missing here ? Maya menon <[EMAIL PROTECTED]> wrote: Manoj, Thanks. So, just 2 action entries r fine, thats what you think. [EMAIL PROTE

RE: Global forwards and actions

2006-06-01 Thread Maya menon
struts module Hope that helps Manoj -Original Message- From: Maya menon [mailto:cc] Sent: 01 June 2006 16:46 To: user@struts.apache.org Subject: Global forwards and actions All, I want to understand this better: Say, I have one form , addDetails.jsp and another deleteDetails.jsp

Global forwards and actions

2006-06-01 Thread Maya menon
All, I want to understand this better: Say, I have one form , addDetails.jsp and another deleteDetails.jsp addDetails.jsp when submitted should call AddAction and deleteDetails should call Deleteaction. In adddetails I have and in delete I have Now, what all entries do

Re: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
el On 5/25/06, Maya menon wrote: > > No. It wont work. when I do that, it asks for a folder to import to. When > I type a new name in says, specified project doesnt exist and stops there... > > "Chaudhary, Harsh" wrote: Sounds like something > wrong with the import you di

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
fresh import without creating a project first. Then when you import, it would prompt you to specify a project at which point, you can create a new project. Hopefully this will merge the two and generate a singular file structure. Harsh. -Original Message- From: Maya menon [mailto:[E

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
at like: \struts-1.2.8-bin\struts-1.2.8-bin\webapps Its called struts-examples.war. Get that running and then you can reuse that code to get started. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:31 AM To: Struts Users Mailing List Subjec

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
s in struts-cofig.xml, an Action class, a Struts form and an HTML or JSP page. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:17 AM To: Struts Users Mailing List Subject: RE: Struts with Eclipse 3.1 Ok Thanks. Can I just import the z

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
good too. Harsh. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:06 AM To: user@struts.apache.org Subject: Struts with Eclipse 3.1 All, Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone plea

Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
All, Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone please help. Thanks. - Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice

Re: Hi-New to this group

2005-07-21 Thread Maya menon
same for hibernate and spring. Rokibul Islam Khan <[EMAIL PROTECTED]> wrote:whats about hibernate and spring ? On 7/22/05, Maya menon wrote: > For us, struts is the company wide standard, so we take it. > > The rest [ibatis] is not a company standard, so I guess we cannot use i

Re: Hi-New to this group

2005-07-21 Thread Maya menon
For us, struts is the company wide standard, so we take it. The rest [ibatis] is not a company standard, so I guess we cannot use it. Michael Rasmussen <[EMAIL PROTECTED]> wrote: Well, As they were posed the requirements had Struts. Assuming that that wasn't a hard requirement then it would be

Re: Hi-New to this group

2005-07-20 Thread Maya menon
If any one has any sample implementations using ibatis / hibernate, please send them to me. It would be really helpful Rick Reumann <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] wrote the following on 7/20/2005 3:44 PM: > Another camp would tell you to just use something like a business > delegat

Re: Hi-New to this group

2005-07-20 Thread Maya menon
Hi, I am pretty new to Hibernate, [no idea at all] can anyone send me a sample implementation ? Thanks Dave Newton <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: >I don't understand Dave's concern. Perhaps he would elaborate on why he says >to avoid Session beans. > > Anything EJB-re

Re: Hi-New to this group

2005-07-20 Thread Maya menon
siness delegate + >iBatis or Hibernate. I cannot comment as I have not used that approach. >Personally, I like to write all my own SQL (along with everything else you can >write). > >Erik > > >-Original Message- >From: Maya menon >Sent: Jul 20, 2005 3:35 PM >To

Re: Hi-New to this group

2005-07-20 Thread Maya menon
. Maya Dave Newton <[EMAIL PROTECTED]> wrote: Maya menon wrote: >Now, back end I am thinking about session ejbs which reads database tables. > Unless there's a requirement or Very Compelling Reason to use EJB I'd sure try to avoid them. >Now, what should I use

Hi-New to this group

2005-07-20 Thread Maya menon
Hi all, I am designing a web app/ Its supposed to have 500 concurrent users. 1. Module- Login The users login using their uid/password and see the stuff in their database I am planning to use Struts,jsp,action classes in the front end Now, back end I am thinking about session ejbs which reads da