• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic