Hi all of you ! I'm performing a site for both html and wml clients. The logic of the system is performed by servlets (Tomcat 3.2.3). C2 is used to render this data properly for each client. This Works fine (90% finished) if the client directly requests the pages or calls the logic, the problem appears when a wap client calls a servlet which makes 'something', and then redirects the output to another pipeline:
class myServlet { doGet() { .... <my code> res.sendRedirect("http://myserver/cocoon/anotherServlet"); } } the pipeline of this last servlet generates the xml, but fails rendering the output, because it detects that the user is an html user (WRONG!),and formats the output appropiately, and then my WAP client could not show the output. I think my problem is that the second call (the redirect call) is performed by a 'fixed' user, cocoon, and then the second pipeline does not detect any wap client in this call. I know i can make another pipeline, which does not make any client type comparation, and directly renders it into a wml page, let's call it anotherServletWAP. But i prefer not to use much more pipelines and keep both html and wap not very differents. thank's all of you in advance. regards Lucas Pons Bayarri Etra I+D Valencia, Spain +34 96 330 40 82 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>