Akshay Singhvi

Ranch Hand
+ Follow
since Nov 08, 2005
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Akshay Singhvi

Hello Ranchers,

I have a situation where in one page I'm editing the name and in other page based on some search criteria i'm displaying the name with hyperlinks so that one can go the edit page by clicking on hte hyperlink.
Now the DB length of the name is 100 characters, so what i did in edit screen i gave the name as something like this:
"test A"
I gave test and then gave empty spaces and then letter 'A'. So now the total length is 100.It got saved also. But in the other screen where I'm searching the name what i got is something this:
test A everything under hyperlink. What has happened to the empty spaces in between 'test' and 'A'?

Is this a bug or this is how the hyperlink works.
9 years ago
JSP
in my custom tag, i just added an attribute, for which i made an entry in the tld file and implemented the setter for it in the implementation java file.
When i use this attribute in the jsp page it says
Jsp translate:Error failed to locate setter method for attribute in tag class

what could be the reson for it.
The java file is present in the project in the form of jar files which i have imported in the project.

the jsp code is :

<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>

<display:table name="requestScope.list" cellpadding="3" cellspacing="0" id="row" excludedParams="*" requestURI="javascript:submitPage()" requestURIcontext="false" columnLimit="4">

the tld file is :
<tag>
<name>table</name>
<tag-class>org.displaytag.tags.TableTag</tag-class>
<tei-class>org.displaytag.tags.TableTagExtraInfo</tei-class>
<body-content>JSP</body-content>
<display-name>table</display-name>
<description>
Displays a list in an html table, formatting each item in the list according to the Column tags nested inside of
this tag. Use the list attribute to indicate the Collection of data, in some scope, that the tag should operate
on. Supports the export of the list data to alternative formats such as CSV, Excel, and XML. The contents of the
list can be sorted, and the list can be broken into individual pages for display. If you use this tag in Struts,
or in some other framework where the page is included via a jsp:include, you should use the requestURI attribute
to indicate where tag generated links should point.
</description>
<attribute>
<name>columnLimit</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<description>user can specify the max number of column above which the pagination will appear on both ends. </description>
</attribute>
other arrtibute tags
</tag>

The java file(TableTag.java) has this entry:

public void setColumnLimit(String columnLimit) {
this.columnLimit = columnLimit;
}

Can you help me out where am i doing wrong.....
[ June 14, 2007: Message edited by: Bear Bibeault ]
10 years ago
JSP
Folks,
I'm using iReport to generating the jasper file, which i am using it in my project to generate report in Excel sheet.
Now the point of concern is that when the report is generated in Excel, it starts from 2 row leaving the first row blank.
how can I remove the blank first row from the excel sheet, do i need to make some change in the jrxml file to cater this.
Hello ranchers,
I am using RAD 6.0 as IDE for my project. We follow a fixed coding standard to which we have to adhere while developing projects. Up till now what we have been doing is once the code is written there is a code review team which peruse the code.
To reduce this effort, what i have come to know is that we can have a check style where in we can have the coding standard as plug in to the RAD itself.But i don't know how to do that.
Can someone help me out in this.
10 years ago
Hello Ranchers,
When is the form bean instance created and is it created just once or always when the data is populated to the form bean.
10 years ago
Hi,
I don't think that is relevant to problem posted by me. Can some one put some light on this.
10 years ago
Hello Ranchers,
What are the possible ways of getting

[Servlet Error]- [BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified.

I know 2 reasons.
First, this error usually occurs when you have specified a form name that does not exist in your <html: form> tag. For example, you specified <html: form action="/myAction" name="myForm" /> and 'myForm' is not the name of a form associated with myAction in the struts-config file

Secondly, in your form-bean you have some value object as an attribute with the setter and getter. One must initialize that value object at the time of loading of the form bean.

is there any other reason for getting this error.
10 years ago
i am using JSTL 1.0 version
10 years ago
JSP
Hello Ranchers,
How can I use the jstl function fn:trim. What things do i need to include to use this. I have standard and jstl jar files in my workspace.
10 years ago
JSP
Hello Ranchers,
I'm struck in a situation. I am fetching a list of bean. One of the attribute of the bean i am displaying as hyperlink. On href of that i have written a javascript function. now i want to pass an unique identifier of that bean to the javascript function. How can i pass that.
see why i am doing this is because in our application we don't want query Strings to be shown when the user put the mouse on the hyper link.Is there a way out to the above problem or to the second problem.
10 years ago
Hello Ranchers,
Im my jsp, on click of button i have written a javascript which is like this :


In struts-config.xml the corresponding entry is:


When i click i get this exception


What can be the reason.....
11 years ago
In my jsp I'm a bean object which i need to set in the jsp without using scriptlets and then retrieve it in the action class.How can i do it..
11 years ago
Merrill,
Thanks for the advice, But my problem still persist. Can you help me out.
11 years ago
Hello Ranchers,
In my jsp, i have a text box which gets a value populated on load of the page from this code:


Now I want to edit this text box in the jsp itself and and on submit of the form it will go the action class from where it will hit the database.

My problem is , i want to retrieve this new edit value in the action class.But when i 'm writing this piece of code in action class:

It is fetching me the old value that is stored in the formbean under the department attribute which again is a bean.
11 years ago