![]() |
|
|
|||||||
![]() |
Java - Return jsp paramaters to another machine |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Good afternoon!
I am working with Apache and Tomcat in two different machines, and I can access jsp pages in the Apache machine (connector mod_jk). The problem is: I want to separate the HTML code(Apache machine) and de JSP code (Tomcat machine). Its possible returns parameters from jsp to the other machine (Apache)? And how can I do this? theres a example for view the problem: Machine (Apache) Example.html <html> <body> <h1>users list</h1> <table> <tr> <!--#include virtual="/tomcat/users.jsp"--> </tr> </table> </body> </html> Machine (Tomcat) users.jsp for (int i=0; i<users.length; i++) { uilizador = (String) users[i]; out.println("<td>" + users + "</td>"); } I would like to return the users list to the apache machine, and there make the print. P.S.- I am sorry, my English is not very good. In case of any question please contact. M?rcia Elias |
|
|
|
|
#2 |
|
Posts: n/a
|
M?rcia Elias wrote:
> Good afternoon! Good morning! > I am working with Apache and Tomcat in two different machines, and I > can access jsp pages in the Apache machine (connector mod_jk). The > problem is: I want to separate the HTML code(Apache machine) and de > JSP code (Tomcat machine). Its possible returns parameters from jsp to > the other machine (Apache)? And how can I do this? No, I don't think that what you want is possible. I'm also unsure why you'd want to do it. The whole point of a JSP is to contain HTML with some dynamic content. There's absolutely nothing wrong with placing HTML in JSP files. (In fact, if you're all-out avoiding HTML in your JSPs, then it's kinda wasteful to use JSPs at all; may as well stick with servlets.) -- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation Chris Smith |
|
|
|
#3 |
|
Posts: n/a
|
Hello Chris.
What I want to do is connect many web servers (apache) to one web server (tomcat), and every web server (apache) have a different site, but just in look and feel, the functionalities are the same and they must be in the tomcat machine. Because just that machine can access to BD and make operations, and security is very important. Thanks. Márcia Elias Chris Smith <> wrote in message news:<>... > M?rcia Elias wrote: > > Good afternoon! > > Good morning! > > > I am working with Apache and Tomcat in two different machines, and I > > can access jsp pages in the Apache machine (connector mod_jk). The > > problem is: I want to separate the HTML code(Apache machine) and de > > JSP code (Tomcat machine). Its possible returns parameters from jsp to > > the other machine (Apache)? And how can I do this? > > No, I don't think that what you want is possible. I'm also unsure why > you'd want to do it. The whole point of a JSP is to contain HTML with > some dynamic content. There's absolutely nothing wrong with placing > HTML in JSP files. (In fact, if you're all-out avoiding HTML in your > JSPs, then it's kinda wasteful to use JSPs at all; may as well stick > with servlets.) M?rcia Elias |
|
|
|
#4 |
|
Posts: n/a
|
M?rcia Elias wrote:
> What I want to do is connect many web servers (apache) to one web > server (tomcat), and every web server (apache) have a different site, > but just in look and feel, the functionalities are the same and they > must be in the tomcat machine. Because just that machine can access to > BD and make operations, and security is very important. Okay. I would very strongly consider a different approach. What you've got going there is one of the least flexible and most difficult means of achieving this task. Off-hand, here's a strategy that I'd look into instead, were I in your place. Have your back-end process return data in something other than an HTML fragment. The HTML fragment is one the least understandable (and therefore hardest to customize) forms you could possibly choose for that data. If it's important to you that it be easy to convert the data to HTML, then an XML-based format might work well, and XSL could be used to format the presentation layer. (As I said earlier, I cannot think of a clean way to do what you originally asked.) -- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation Chris Smith |
|
|
|
#5 |
|
Posts: n/a
|
Hello Chris.
Tanks for your suggestion, I think I would use XML format, so I can interpret the results. Chris Smith <> wrote in message news:<>... > M?rcia Elias wrote: > > What I want to do is connect many web servers (apache) to one web > > server (tomcat), and every web server (apache) have a different site, > > but just in look and feel, the functionalities are the same and they > > must be in the tomcat machine. Because just that machine can access to > > BD and make operations, and security is very important. > > Okay. I would very strongly consider a different approach. What you've > got going there is one of the least flexible and most difficult means of > achieving this task. Off-hand, here's a strategy that I'd look into > instead, were I in your place. > > Have your back-end process return data in something other than an HTML > fragment. The HTML fragment is one the least understandable (and > therefore hardest to customize) forms you could possibly choose for that > data. If it's important to you that it be easy to convert the data to > HTML, then an XML-based format might work well, and XSL could be used to > format the presentation layer. > > (As I said earlier, I cannot think of a clean way to do what you > originally asked.) M?rcia Elias |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pcAnywhere and Brother fax machine on same phoen line | bem522 | Software | 0 | 07-20-2007 04:20 PM |
| Re: Can't login to XP Pro machine | jjw | A+ Certification | 2 | 10-19-2004 12:36 AM |
| Re: Can't login to XP Pro machine | Solomon Kozanski | A+ Certification | 5 | 09-25-2004 05:24 PM |
| Re: Can't login to XP Pro machine | Gary | A+ Certification | 3 | 09-22-2004 10:17 PM |
| XP machine cant see network | Rick Todd | A+ Certification | 2 | 07-28-2004 04:23 AM |