Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem set session attribute

 
Anna Ferrari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have this situation:



My problem is : how can I change "new Integer(1)" in javascript function with <bean:write name="cliente" property="id"/> ?
[ September 07, 2006: Message edited by: Merrill Higginson ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
replace

with

[ September 07, 2006: Message edited by: Merrill Higginson ]
 
Anna Ferrari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thanks Merrill, but the value in side session attribute "cl" isn't correct.
If user selects the customer by clicking the link

<a href="javascript:indirizziCliente
(<bean:write name="cliente" property="id"/>">

the parameter "id" in side the function:

function indirizziCliente(id){

window.open('<html:rewrite page='/indgest.do?do=ricerca'/>',
'','width=500,height=400,top=100,left=700');
}

is the customer code's to use like primary key in side the following action "indgest.do?do=ricerca". That action display a list of shipment address of the customer "id".

I need to pass the customer's id select from the user and display the list with a pop up window.
How can I do?

Thanks in advance.
 
Anna Ferrari
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I resolve my problem doing like this:

<SCRIPT LANGUAGE="JavaScript">
function indirizziCliente(id){
var str="<html:rewrite page='/indgest.do?do=ricerca&id=" + id + "'/>";
window.open(str,'','width=500,height=400,top=100,left=700');
}
</script>

Bye.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic