Rajani Deshpande

Ranch Hand
+ Follow
since May 08, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajani Deshpande

Yes, Thats what I did, but our CVS project structure is not similar to RAD.
for eg --We have all the jsps and css in a folder called view/jsp and view/css view/js etc

also we have some config files and tlds in src/conf dir.

When I build it , the view files should be copied to the WebContent folder in RAD and the config files to the webcontent/web-inf folder.

the java src and properties are getting cmpiled and copied in webcontent/web-inf/classes correctly.

I tried checking the allow output folders and tried add the view and conf folders to src and setting the output folders for them. but that didnt work out ..
Hi,
just installed RAD. I have a project set up in Eclipse.( which has different directory structure and is also linked to a cvs repository.

How do I keep the existing directory structure and create an ear in RAD?
Right now I have moved the src files so that RAD can create an ear file and deploy.

But When its time to check in , I have to again move the files to the directories in CVS and then check in .

Any Idea?

Thanks
No , I dont want to reversion.

I have a old label JAN_RELEASE.. Now its June and many files have changed.

I wanted to duplicate a the old label as JUNE_RELEASE and add only a few files to it.

At the end I want to keep the JAN_RELEASE, JUNE_RELASE tags.(JUNE_RELEASE being exact copy of JAN_RELEASE except for a few files.) If I Create a tag now,Its using all the checked in files which I dont want to.
Say I have a tag in CVS as JAN_2008_RELEASE.

The development is going on and we have files checked in.

We want to have another tag for the same JAN_2008_RELEASE so that we can do a minor release. and yet have the original JAN_2008_RELEASE code available.

rtag allows me to move a file to the JAN_2008_RELEASE but thats not what I want to do.
If I try to create a tag now, its using the current versions of the files and not the JAN Release files.

I want to duplicate the tag as say JUN_2008_RELEASE. which has the same files as the JAN release and move only the fixed files (not all modified files) to the JUN_2008_RELEASE.

Can we do it?
Hi,
Sorting works fine when I dont use the link..
but when I add the link, it fails.. I am not sure why.. any pointers??

<display:column title="Partner" sortable="true" headerClass="ColumnHdg" >
<%
java.util.HashMap params = new java.util.HashMap();
params.put("methodToCall", "getPartnerHomeInfo");
params.put("Tab","partnerHome");
params.put("Home","partnerList");
params.put("id",PartnerID);
pageContext.setAttribute("paramsName", params);
%>
<html:link page="/partnerHome.do" name="paramsName" scope="page" >
<c ut value="${partner.PARTNER_NAME_VALUE}"/></html:link>
</display:column>

Thanks
17 years ago
JSP
Hi,
thanks .. Casting it helped.. It works !
I cannot use JSTL because, we have a custom tag which doesnt recognize nested JSTL tags...
I would love to use JSTL in this custom tag.. any pointers on how to make the custom tag recognize the JSTL ${variable} will be helpful..

Thanks for the help
Rajani
17 years ago
JSP
Hi,
I have a table define like this
<display:table name="sessionScope.userInfo.partnerList" id="partner" class="ResultsTable">
In the column

<display:column title="Partner" sortable="true" headerClass="ColumnHdg" >
<myTag:message key="<%=DataKey+(String)partner.getFocusLevel()%>"/>
</display:column>

It gives me the error saying cannot find getFocusLevel MEthod...

but if I use the JSTL ${partner.focusLevel}, the value is displayed..

using JSTL is not a solution for me as myTag does not evaluate ${partner.focusLevel}
any ideas?

Thanks
17 years ago
JSP
Thanks a bunch for the prompt replies!
It worked! I had to change web.xml too.
18 years ago
JSP
i am using jstl 1.1 and i changed the uri to
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

but still no luck...???
18 years ago
JSP
using tomcat 5
18 years ago
JSP
actually, it does reqcognize the c:foreach, but not c ut..
I tried this and this prints ${i} 10 times !

<c:forEach var="i" begin="1" end="10" step="1">
<c:out value="${i}" />
<br />
</c:forEach>

what am i missing?

[ January 12, 2006: Message edited by: Rajani Deshpande ]
[ January 12, 2006: Message edited by: Rajani Deshpande ]
18 years ago
JSP
Hi,
I have a simple JSP page

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<%String s= "Testing JSP";
out.println(s);
out.println("Hey this worked");
%>

<jsp:useBean id="now" class="java.util.Date" />
<p><h5>Last Updated on: <c:out value="${now}"/></h5></p>

Setting the value: "Hello World!"
<c:set var="hello" value="Hello World!"/>
<p/>

<c:out value="${hello}"/>

I have the tld files in web-inf/tld and accordingly defined in web.xml
it doesnt give any error but , it prints ${now} and ${hello} literally..

what am i missing?
Thanks
18 years ago
JSP
I want initialize some form variables before I show the jsp page.
So In my action class, I create a new PersonForm and set the initial values for required fields.
then I want to set the form in the mapping, so that wehn the jsp will show with inital values.
but when I do a
mapping.setAttribute("personForm");
it doesnt set the value and gives me an exception. In the debug mode I can see that attribute is null.

how do I set the form in the required scope?
I have tried
if ("request".equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), personForm);
else
session.setAttribute(mapping.getAttribute(), personForm);

This doesnt give me any errors.

but still the value is not set.
18 years ago
Yes, this is exactly what is happening. but I thought the form values are tied to the form bean, so even though the second form bean has some fields same as the first bean, it is a new different bean and so I would expect all the value parameters to be reset.
So how do I get around this problem? I dont want to name all my variables differently in both forms.
20 years ago