This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Open JSP page deployed in other web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Open JSP page deployed in other web server" Watch "Open JSP page deployed in other web server" New topic
Author

Open JSP page deployed in other web server

Vikram Kohli
Ranch Hand

Joined: Nov 27, 2005
Posts: 174
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


Vikram PracLabs
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Nov 27, 2005
Posts: 174
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Open JSP page deployed in other web server
 
Similar Threads
servlets/jsp
jsp & HTML
servlet doesn't invoke (page not found displayed)
j_security_check 404 error
Problems of Deploying JSF war file to Tomcat