wood burning stoves 2.0*
The moose likes Servlets and the fly likes Where I have to mention my template in XML? 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 » Servlets
Bookmark "Where I have to mention my template in XML?" Watch "Where I have to mention my template in XML?" New topic
Author

Where I have to mention my template in XML?

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
<servlet>
Hi friends,
My servlet uses two template where I hav to put the name of second one in my xml?
(first template is update_Bug.html as you can see and the second one is update_last.html)
Many thanks for your help,
Elahe


Thanks,
Elahe
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
This certainly doesn't belong in Web Services. I'm guessing that you might find more help in the Servlets forum.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Dear friends,
As you know they sent my question here I added part of my servlet as well let me know what else you want to see to send please let me now.
Let me tell you the problem in details I can get first template(update_Bug.html) and if I enter wrong date it will bring the second tempalate(error_ update_page.html) with the error message and some more user interface stuff second one is exactly the same as first one just I played with the color and some stuff and then when I fix the date and hit the Update botton, it should update the bug and bring thank you page but it retuns empty page and nothing updated!!!
Could you please help...
Many thanks,
Elahe
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 565
Hi Elahe,
are you sure that your second template has been put / initialised?
I've only seen templates being inserted with template tags in jsp, so I'm not quite clear what the xml is doing. I presume that is your web.xml?

Adam


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Yes Adam you got my question complitly and that is my web.xml and I don't know how can I initial my second template on it?
Could you help me on this?
Many thanks,
Elahe
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
solved it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Where I have to mention my template in XML?
 
Similar Threads
using WAF template in JSF
Another probably simplistic answer to a web.xml question
Multiple Struts-config.xml in Jboss 4.2.1
Multiple config parameters within init-param
multiple struts-confing file