Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Open JSP page deployed in other web server

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am using ADF faces. I have to open a new jsp page in new window from one of my jspx pages on button click. This target jsp page is deployed in other web server and expects some input values in request which user has input in my jspx page.

How I can achieve this? Do I have to use the javascript on button click or I can make use of ADF Faces Dialog?

Following is my target jsp page which I have to invoke on button click in jsf page:-



Thanks much
Vikram
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easiest way is to code down a plain vanilla HTML form with an action URL pointing to the JSP in question.

That said and looking at the code snippet, why you mixing scriptlets with JSF? Just use EL the usual way. Omit scriptlets. They indicate in all circumstances a bad practice.
 
Vikram Kohli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bauke for reply. But the target jsp is not being used by our application, bot other applications also. That is the reason I am bound to use the same jsp with scriptlets.

I also have to disable the source window when user click on the command button. Is there any way to achieve this.

Thanks again,
Vikram
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic