reset password
Author Message
stridhiryu030363
Posts: 37
Posted 23:11 Jan 31, 2012 |

Nevermind. Fixed it.

edit: new problem. The Servlets don't work as intended on the cs3 server but work perfectly in localhost:8080.

Last edited by stridhiryu030363 at 23:23 Jan 31, 2012.
stridhiryu030363
Posts: 37
Posted 23:23 Jan 31, 2012 |

bump

stridhiryu030363
Posts: 37
Posted 23:39 Jan 31, 2012 |

Totally broke my code trying to modify it for the cs3 server.

stridhiryu030363
Posts: 37
Posted 01:37 Feb 01, 2012 |

Ok, fixed the cs3 files as well.

Had problems with the pathing, mainly with the way I was handling the context paths.

Utilized request.getContextPath() to get the servlets working on both the cs3 server and on my computer but I have one problem. How do I call this command during initialization when it writes the index data? The initial comment in index includes a link to the PageList so I was wondering if it was possible to use this function.

Last edited by stridhiryu030363 at 01:46 Feb 01, 2012.
cysun
Posts: 2935
Posted 07:40 Feb 01, 2012 |
stridhiryu030363 wrote:

Ok, fixed the cs3 files as well.

Had problems with the pathing, mainly with the way I was handling the context paths.

Utilized request.getContextPath() to get the servlets working on both the cs3 server and on my computer but I have one problem. How do I call this command during initialization when it writes the index data? The initial comment in index includes a link to the PageList so I was wondering if it was possible to use this function.

The path to the index wiki page is <context_path>/wiki/index. Assuming the path to your PageList is <context_path>/PageList, you can use the following in the index page:

<a href="../PageList">Page List</a>

stridhiryu030363
Posts: 37
Posted 12:41 Feb 01, 2012 |

Works on localhost but breaks on cs3.

It doesn't append /cs320stu17/