Using Nested Extension

2003-04-03 Thread Ritesh Singhal
Title: Message



Hi 
All,

Has anybody used 
Sruts Nested Extension with Struts 1.0.2. If yes, please let me know what all I 
need to configure to start using this nested extension.

Regards
Ritesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Session bean lifecycle.......

2003-04-02 Thread Ritesh Singhal
Yes, u r right. U can do all the things u mentioned in ur mail.

Regards
Ritesh

-Original Message-
From: Al Willingham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 03, 2003 9:05 AM
To: [EMAIL PROTECTED]
Subject: Session bean lifecycle...


Hi,

Is is true that a session bean gets created when an actionMapping is
requested that has scope set to session? 

And if one with the same name already exists, it gets re-used, existing
contents and all?

If I want to reset to the default state, can I get the session bean
session.getAttributeName(mybeanname) and call reset() and expect a
default actionForm ?

Thanks for your time,
Al


-- 
Al Willingham [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session beans are shared across multiplae instances of browsers!

2003-03-31 Thread Ritesh Singhal
Shilpi,

If you are opening up the new browser window by pressing CTRL+N then the
session will be shared. To avoid this always open the browser as a new
process from your desktop menu.

Regards
Ritesh 

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 5:12 PM
To: Struts Users Mailing List
Subject: Session beans are shared across multiplae instances of
browsers!


My session beans are getting shared across multiple instances of the
browser. The updation that I do in one instance is reflected in the
other instance. Is this a struts bug or I am doing something wrong!
 
Shilpi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session beans are shared across multiplae instances of browsers!

2003-03-31 Thread Ritesh Singhal
Do you guys have any openings in Xerox ?? Whats the location of the DC ?
And how much they pay?

-Original Message-
From: Oguz Kologlu [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: Session beans are shared across multiplae instances of
browsers!


Shilpi,

You should also make sure you are not actually in the same session. If
you use IE and press ctrl-n for a new window you will be in the same
session to the server.

Oz

ps. too funny - you work for xerox!!! ;) well, maybe not
that funny.

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED]
Sent: Monday, 31 March 2003 9:42 PM
To: Struts Users Mailing List
Subject: Session beans are shared across multiplae instances of
browsers!


My session beans are getting shared across multiple instances of the
browser. The updation that I do in one instance is reflected in the
other instance. Is this a struts bug or I am doing something wrong!

Shilpi


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting and Getting indexed property

2003-03-26 Thread Ritesh Singhal
Hi All,

I am having problem setting and getting indexed property of a form bean.
I have a form bean:

public class ExampleForm extends ActionForm {
private String id[];
private String name[];
private String address[];

public String getIdIndexed( int index )
{
return ( id[index] );
}


public void setIdIndexed(int index, String value)
{
id[index] = value;
}
. And so on
}

With appropriate getter and setter methods.

Now in my jsp page I am trying to access these fields and display them
in a table format. Something like this:

logic:iterate id=foo name=exampleForm property=id indexId=ctr
tr align=center valign=middle
tdhtml:text name=exampleForm property='%= idIndexed[
+ ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
nameIndexed[ + ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
addressIndexed[ + ctr + ]%'//td
/tr
/logic:iterate

I want to have the same form bean for create and edit page of the
entity. So in create page I will have a table with blank fields and in
edit page I will have prepopulated fields. Also in edit page I shud be
able add more rows for the table. Now I don't know what property name to
give in create page of the entity. Above code works fine when form bean
is already populated, but problem comes when you want to create the
entity. Do I need to initialize the array? And of what size? As I want
it to be dynamic. Also in create page I want some default number of rows
with blank pages. What shud be the property name for those text fields?

Please help me. I am stuck coz of this problem.

Thanks and Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting and Getting indexed property

2003-03-26 Thread Ritesh Singhal
I couldn't find anything in the mailing list. Actually I am new to this
group. Do you know any resources on the internet where using indexed
property and lazy intialization is explained.

Regards
Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


U need to use lazy initialiszation.
Search the mail archive...I had replied some similar mail...

regards,
Shirish

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:04 PM
To: Struts Users Mailing List
Subject: Setting and Getting indexed property


Hi All,

I am having problem setting and getting indexed property of a form bean.
I have a form bean:

public class ExampleForm extends ActionForm {
private String id[];
private String name[];
private String address[];

public String getIdIndexed( int index )
{
return ( id[index] );
}


public void setIdIndexed(int index, String value)
{
id[index] = value;
}
. And so on
}

With appropriate getter and setter methods.

Now in my jsp page I am trying to access these fields and display them
in a table format. Something like this:

logic:iterate id=foo name=exampleForm property=id indexId=ctr
tr align=center valign=middle
tdhtml:text name=exampleForm property='%= idIndexed[
+ ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
nameIndexed[ + ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
addressIndexed[ + ctr + ]%'//td
/tr
/logic:iterate

I want to have the same form bean for create and edit page of the
entity. So in create page I will have a table with blank fields and in
edit page I will have prepopulated fields. Also in edit page I shud be
able add more rows for the table. Now I don't know what property name to
give in create page of the entity. Above code works fine when form bean
is already populated, but problem comes when you want to create the
entity. Do I need to initialize the array? And of what size? As I want
it to be dynamic. Also in create page I want some default number of rows
with blank pages. What shud be the property name for those text fields?

Please help me. I am stuck coz of this problem.

Thanks and Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting and Getting indexed property

2003-03-26 Thread Ritesh Singhal
I think that helps. But you were talking something about Lazy
initialization. What is that?
Thanks and Regards
Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


look at the following message in the archive...


http://marc.theaimsgroup.com/?l=struts-userm=104815589928698w=2

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:55 PM
To: Struts Users Mailing List
Subject: RE: Setting and Getting indexed property


I couldn't find anything in the mailing list. Actually I am new to this
group. Do you know any resources on the internet where using indexed
property and lazy intialization is explained.

Regards
Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


U need to use lazy initialiszation.
Search the mail archive...I had replied some similar mail...

regards,
Shirish

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:04 PM
To: Struts Users Mailing List
Subject: Setting and Getting indexed property


Hi All,

I am having problem setting and getting indexed property of a form bean.
I have a form bean:

public class ExampleForm extends ActionForm {
private String id[];
private String name[];
private String address[];

public String getIdIndexed( int index )
{
return ( id[index] );
}


public void setIdIndexed(int index, String value)
{
id[index] = value;
}
. And so on
}

With appropriate getter and setter methods.

Now in my jsp page I am trying to access these fields and display them
in a table format. Something like this:

logic:iterate id=foo name=exampleForm property=id indexId=ctr
tr align=center valign=middle
tdhtml:text name=exampleForm property='%= idIndexed[
+ ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
nameIndexed[ + ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
addressIndexed[ + ctr + ]%'//td
/tr
/logic:iterate

I want to have the same form bean for create and edit page of the
entity. So in create page I will have a table with blank fields and in
edit page I will have prepopulated fields. Also in edit page I shud be
able add more rows for the table. Now I don't know what property name to
give in create page of the entity. Above code works fine when form bean
is already populated, but problem comes when you want to create the
entity. Do I need to initialize the array? And of what size? As I want
it to be dynamic. Also in create page I want some default number of rows
with blank pages. What shud be the property name for those text fields?

Please help me. I am stuck coz of this problem.

Thanks and Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting and Getting indexed property

2003-03-26 Thread Ritesh Singhal
In some of the mails I saw people using ListUtils.lazyList() from
commons library. I think that does the same what u r doing. Or I am not
getting it right and it means something else?

Regards
Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:37 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


Check the indexed getters n Form...If the beanList in form is empty,The
beans are added as required when getter is called.. I was referring to
this...

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:01 PM
To: Struts Users Mailing List
Subject: RE: Setting and Getting indexed property


I think that helps. But you were talking something about Lazy
initialization. What is that? Thanks and Regards Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


look at the following message in the archive...


http://marc.theaimsgroup.com/?l=struts-userm=104815589928698w=2

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:55 PM
To: Struts Users Mailing List
Subject: RE: Setting and Getting indexed property


I couldn't find anything in the mailing list. Actually I am new to this
group. Do you know any resources on the internet where using indexed
property and lazy intialization is explained.

Regards
Ritesh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Setting and Getting indexed property


U need to use lazy initialiszation.
Search the mail archive...I had replied some similar mail...

regards,
Shirish

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:04 PM
To: Struts Users Mailing List
Subject: Setting and Getting indexed property


Hi All,

I am having problem setting and getting indexed property of a form bean.
I have a form bean:

public class ExampleForm extends ActionForm {
private String id[];
private String name[];
private String address[];

public String getIdIndexed( int index )
{
return ( id[index] );
}


public void setIdIndexed(int index, String value)
{
id[index] = value;
}
. And so on
}

With appropriate getter and setter methods.

Now in my jsp page I am trying to access these fields and display them
in a table format. Something like this:

logic:iterate id=foo name=exampleForm property=id indexId=ctr
tr align=center valign=middle
tdhtml:text name=exampleForm property='%= idIndexed[
+ ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
nameIndexed[ + ctr + ]%'//td
tdhtml:text name=exampleForm property='%=
addressIndexed[ + ctr + ]%'//td
/tr
/logic:iterate

I want to have the same form bean for create and edit page of the
entity. So in create page I will have a table with blank fields and in
edit page I will have prepopulated fields. Also in edit page I shud be
able add more rows for the table. Now I don't know what property name to
give in create page of the entity. Above code works fine when form bean
is already populated, but problem comes when you want to create the
entity. Do I need to initialize the array? And of what size? As I want
it to be dynamic. Also in create page I want some default number of rows
with blank pages. What shud be the property name for those text fields?

Please help me. I am stuck coz of this problem.

Thanks and Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action Form Design Problem

2003-03-19 Thread Ritesh Singhal
Yes, session propagates to child window. The problem is, if we have
single form bean for all the data, then the data is not logically
structured, we are mixing all kind of logically separate entities in
single form bean. Can we have separate form beans for each of the popup
and get all the data in one Action class ?? Can we have some kind of
reference to other form beans(for popups) from the parent page form
bean??

Thanks and Regards
Ritesh

-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 11:31 AM
To: Struts Users Mailing List
Subject: Re: Action Form Design Problem


Does session propagate to the pop-up window and vice-versa?

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 1:47 PM
Subject: Re: Action Form Design Problem


 Treat it as a multi-page form.  Store the form bean in the session and
have
 both pages store their data in the same form bean.  Your final submit
action
 will then have access to all the data.

 David



 From: Amit Keshav Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Action Form Design Problem
 Date: Wed, 19 Mar 2003 10:45:04 +0530
 
 Hi All,
 We are developing an application using Struts.
 The design of our screens is such that in Create screen a pop up 
 window is used for capturing some of the data. User enters the data 
 in the pop up window, saves it, returns to the parent window, fills 
 some data in the parent window and finally submits the request for 
 saving the data. At the time of saving we need the data entered in 
 parent as well as pop up window.
 
 So how should the design of Action Forms and Action classes be in 
 this case?
 
 Thanks and Regards,
 Amit
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 _
 The new MSN 8: advanced junk mail protection and 2 months FREE* 
 http://join.msn.com/?page=features/junkmail


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pupulating Table in edit mode

2003-03-19 Thread Ritesh Singhal
Title: Message



Hi 
All,

I have a screen in 
which I displays some data in a table format. Now the columns of this table will 
be submitted as array in to the form bean. So we have a column name "status" we 
will have methods in form bean like: 
setStatus(String[] 
status)
String[] 
getStatus()

Now suppose I want 
to read the data stored in this arrays in a edit screen, so I will have some 
text fields like:
html:text 
property="status"/

This will not print 
the proper values as property "status" is an array. Is there a way to read the 
values fromthe arrays in a text field?

Thanks and 
Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
I want to
 have a link like
 this:
 
 html:link href= paramId=id
 paramName=customerDetails
 paramProperty=customerId

onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
 h=1000,height=500,left=10,top=100')/html:link
 
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
 //v2.0
   window.open(theURL,winName,features);
 }
 
 Now the problem is how should I pass the parameter
 id in the popup
 window. Also on clicking on the link, parent window
 should not get
 refreshed.
 
 Regards
 Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
I want to have a link like this:

 html:link href= paramId=id paramName=customerDetails
paramProperty=customerId
onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100') /html:link
 
Where my javascript function is:

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
 
Now the problem is how should I pass the parameter id in the popup
window. Also on clicking on the link, parent window should not get
refreshed. Please help me if you know the solution.
 
Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: java.util.date in edit form

2003-01-30 Thread Ritesh Singhal
Since it's a request parameter it will go as a String in the form bean.
So you must have date field as a String in the form bean. Later on you
can convert that to a Date object by using java.text.SimpleDateFormat
class.

Regards
Ritesh

-Original Message-
From: Softwareentwicklung Hauschel
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:27 PM
To: Struts Users Mailing List
Subject: java.util.date in edit form


Hey all,
i've got an edit form, where i have to input a date.
In my Form.java class the matching properties type is java.util.Date.

But there ist an error submitting the form - ServletException:
BeanUtils.populate

If i delete the date Field, the form/action works ;-(

How can i input a date with struts ?

Fredy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
This will just take it as a string and wont evaluate it. In the final
html link you will see something like

AgreementList.do?id=bean:write name=someID/

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:34 PM
To: Struts Users Mailing List
Subject: RE: Passing parameter in a pop up window


Add the id to url.

something like MM_openBrWindow('AgreementList.do?id=' bean:write
name=someID/, ...);


 -Original Message-
 From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:03 AM
 To: Struts Users Mailing List
 Subject: Passing parameter in a pop up window
 
 
 I want to have a link like this:
 
  html:link href= paramId=id paramName=customerDetails 
 paramProperty=customerId 
 onClick=MM_openBrWindow('AgreementList.do','popup','scrollbar
 s=yes,widt
 h=1000,height=500,left=10,top=100') /html:link
  
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
   window.open(theURL,winName,features);
 }
  
 Now the problem is how should I pass the parameter id in the popup 
 window. Also on clicking on the link, parent window should not get 
 refreshed. Please help me if you know the solution.
  
 Regards
 Ritesh
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Passing parameter in a pop up window

2003-01-29 Thread Ritesh Singhal
Hi All,

I have a requirement of passing a parameter in a popup window. I have
link on some jsp page, on clicking of that link it should open a new
window. Now in this window I want pass a parameter also as part of query
string. I don't think you can do it using html:link. Please help me if
anyone of you know the solution.

Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Passing parameter in a pop up window

2003-01-29 Thread Ritesh Singhal
Its good that it could be done. But how?? I want to have a link like
this:

html:link href= paramId=id paramName=customerDetails
paramProperty=customerId
onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100')/html:link

Where my javascript function is:

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

Now the problem is how should I pass the parameter id in the popup
window. Also on clicking on the link, parent window should not get
refreshed.

Regards
Ritesh

-Original Message-
From: Puneet Agarwal [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 8:34 PM
To: Struts Users Mailing List
Subject: Re: Passing parameter in a pop up window


Yes you can send it using html:link query string.

Regards
Puneet
- Original Message - 
From: Ritesh Singhal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 2:09 PM
Subject: Passing parameter in a pop up window


Hi All,

I have a requirement of passing a parameter in a popup window. I have
link on some jsp page, on clicking of that link it should open a new
window. Now in this window I want pass a parameter also as part of query
string. I don't think you can do it using html:link. Please help me if
anyone of you know the solution.

Regards
Ritesh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Passing parameter in a pop up window

2003-01-29 Thread Ritesh Singhal
Sounds OK .. But I am determining the parameter value from a java bean.
What shall I give to do that??

Regards
Ritesh

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 10:25 AM
To: Struts Users Mailing List
Subject: RE: Passing parameter in a pop up window


HI,
u can put 'AgreementList.do?id=abc' to send param
also if u dont want this page to be refreshed..
instead of onclick put the javascript on href
like

href=javascript:MM_openBrWindow('AgreementList.do','popup','scrollbars=
yes,widt
 h=1000,height=500,left=10,top=100') 
hope this helps
Ashish
--- Ritesh Singhal [EMAIL PROTECTED] wrote:
 Its good that it could be done. But how?? I want to
 have a link like
 this:
 
 html:link href= paramId=id
 paramName=customerDetails
 paramProperty=customerId

onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
 h=1000,height=500,left=10,top=100')/html:link
 
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
 //v2.0
   window.open(theURL,winName,features);
 }
 
 Now the problem is how should I pass the parameter
 id in the popup
 window. Also on clicking on the link, parent window
 should not get
 refreshed.
 
 Regards
 Ritesh
 
 -Original Message-
 From: Puneet Agarwal
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 29, 2003 8:34 PM
 To: Struts Users Mailing List
 Subject: Re: Passing parameter in a pop up window
 
 
 Yes you can send it using html:link query string.
 
 Regards
 Puneet
 - Original Message -
 From: Ritesh Singhal [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Sent: Wednesday, January 29, 2003 2:09 PM
 Subject: Passing parameter in a pop up window
 
 
 Hi All,
 
 I have a requirement of passing a parameter in a
 popup window. I have
 link on some jsp page, on clicking of that link it
 should open a new
 window. Now in this window I want pass a parameter
 also as part of query
 string. I don't think you can do it using html:link.
 Please help me if
 anyone of you know the solution.
 
 Regards
 Ritesh
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]