prat narang

Greenhorn
+ Follow
since Oct 27, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by prat narang

Hi group,
We have migrated from struts 1.0 to struts 1.1. For a new requirement we are trying to implement a module(let's say M1). We have template files already written in default module which we want to reuse in M1.
The template file in new module looks like
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<template:insert template="/common/template.jsp" >
<template ut name="header" content="/common/header.jsp" />
<template ut name="menu" content="/common/menu.jsp" />
<template ut name="body" content="M1/components/test.jsp" />
</template:insert>
When i try to access this jsp it gives me page not found error.
I want to reuse the template files (tempate.jsp, header.jsp, menu.jsp).
Any suggestion to resolve this problem.

Thanks
Prateek
17 years ago
Hi All,
I am trying to send japanese character in mail. But the recieved mail contains the junk character rather than japanese. The code is
18 years ago
thanx ankur,
but what if i have to change the context name itself, then i've to change all the files where i've written the path value.
i need some solution in that scenerio.
thanx
--prat--
20 years ago
JSP
Hi friends,
Need some help from u guys....I am developing an application using JSP and Tomcat 5.0.In the html tag inside jsp pages i am refering to images which r located in a particular folder inside the web application folder.My doubt is when i refer to the image do i hard-code the destination directory or should i use the some other logical method (such that i don't need to hard-code the path) in the jsp page. Kindly advise.....
......thxs in advance.
Prat.
20 years ago
JSP
thank you Winston Smith, I've done the things in the same way as u said. and it's working fine.
thank you
--prateek--
20 years ago
JSP
hi group,
i have one jsp page with some input fields and a submit button.
i've different links to reach this page. and my requirement is that if i am reaching at this page first time then the field should be blank otherwise it should show the values which i've entered previously.
could anybody tell me the way to proceed....
thank you
--prateek--
20 years ago
JSP
Hi all,
just got an assignment from my boss where i have to study about SSL or some other security measure.
Problem is like that, we have a proprietary application server. We can access this through a client which is again proprietary. To access services we have to logon first, and our application server does all the authentication stuff.
Through the client we can access few services from outside server zope/tomcat server(it seems multitier architecture ;-)). We need to implement some security feature at this place(that is client communicating with Tomcat).
This is the first time i landed up the security area and don't know where to start from!!! though doing GOGGLING.....but any help from group is really needed.
thanx and regds
--prateek--
20 years ago
hi,
just change u'r recursiveGetNodes function like i've done in bold and u'll get the desired output.
i've got the solution for my problem. that was xerces bug..with the xerces 2 result is according to out need.
and i think now my name is not violating the group's code.
--prateek--
hi group,
i've one dome application which takes two xml files as input, say X1 and X2. This application picks a particular node from X2 and replace it in X1 and then write a new X3.xml file.

xml files are
X1
<?xml version="1.0" encoding="UTF-8"?>
<book>
<constructed-response id="cr.5.501">
<constructed-response-group>
<constructed-response-item id="cri.5.40">
<question></question>
<solution></solution>
</constructed-response-item>
</constructed-response-group>
</constructed-response>
</book>
X2
<?xml version="1.0" encoding="utf-8"?>
<book id="book_inter">
<constructed-response id="cr.5.26">
<constructed-response-group>
<constructed-response-item id="cri.5.40" where.from="sub2.5.1.1.2">
<solution item-sequence-number="4" identifier-no="cri.5.40">
<solution-step>
<equation id="eq.5.86">prateek</equation>
</solution-step>
<correct-answer identifier-no="cri.5.40">
<equation id="eq.5.87">narang</equation>
</correct-answer>
</solution>
</constructed-response-item>
</constructed-response-group>
</constructed-response>
</book>
and the final file which i am getting
<?xml version="1.0" encoding="UTF-8"?>
<book>
<constructed-response id="cr.5.501">
<constructed-response-group>
<constructed-response-item id="cri.5.40">
<question/>

<solution identifier-no="cri.5.40" item-sequence-number="">
<solution-step>
<equation id="">prateek</equation>
</solution-step>
<correct-answer identifier-no="">
<equation id="">narang</equation>
</correct-answer>
</solution></constructed-response-item>
</constructed-response-group>
</constructed-response>
</book>
u can easily see that the value of few attributes are missing in the result file. i want the attribute values to in the result file. could anyone help me to find out that where i am missing the point.
thank you
--prateek--