• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Problem set session attribute

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic