Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open JSP page deployed in other web server

 
Vikram Kohli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • 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
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic