Tanu Gulati

Ranch Hand
+ Follow
since Oct 06, 2008
Tanu likes ...
Hibernate Java Spring
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tanu Gulati

I have a java script method say X which calls Java method say Y , method Y in java does some processing and returns a message. I want to show this message as an alert shown through javascript.


I tried searching in Goooooooogle but no answer, can anyone help me out to solve this.


6 years ago
hi,
I have a table where each cell contains two tables (sound interesting :) )




Now the problem is table1 should always be on top side of cell and <tr> should always be bottom side of cell how to achieve this ?

table1 can have 3,4,5 or any number of rows and there should always be some gap visible on cell after table 1 complete.
hi
I copied below line of code in to my struts-config.xml and after that when restart server and launch my application. It took around 2-4 minute for login page to come(after server startup complete)


I dont see any change in application functionality but loading my login page become extremely slow. If I remove above set of code, I get my login page very quickly.

Can you please suggest how to fix above problem ?
6 years ago

This is an earlier post I found on The Ranch.
Iterate Map through Struts



I actually got this before posting on codeRanch but in my case the problem is little different I have a HashMap(say hashmap1) which contains another HashMap (say hashmap 2) , i want to get the values of hashmap2 as a group and print against a value.


6 years ago
JSP
I got a problem where I have to iterate and show HashMap(<HashMap>,string) on a jsp page. I am using another HashMap as a key(as per my business scenario)

can anyone help me understand how I can achieve it through JSP or struts.

6 years ago
JSP
hi,

I have a technical problem related to java html and jsp where I have to show a table. Table is such that it has headers on top of table and when page loads I should load the data in table depending on corresponding column header.


To be more specific- I would like to call a function on every "square-box" of column/rows and call a function with column header name as parameter in java which returns me the data and I need to show it in table.

Is it possible to do in jsp ?

thanks,
6 years ago
JSP
Hi,

I have a requirement came up for me where I have to show a table with first colum as a main one and multiple rows grouped to it.

For example first column is a list of plants and every plant has a set of products associated to it which will be shown corresponding to the plant but number of rows corresponding to plant is varying and needs to be changed at runtime.

Do you know any way how can I achieve in jsp, struts?

thanks,


hi,

I tried opening a new window using html:link attribute but could not do so. I got to know that it is possible only through javascript window.open method.(is it true that struts 1.1 do not provide this functionality)

Any way when i tried using window.popup my jsp page did not load since the page which I am giving to javascript method is relative path (like /jsp/projectLeader.jsp) do I need to pass a full path (I dont think so there must be some way)


6 years ago
I got this question in one of the Interview.
What are the Disadvantages of using IOC.

I answered that beans created using spring IOC are singletons and it is a disadvantage when we require non singleton beans in our application. Is it correct ?
6 years ago
hm..I tried but above solutions also does not work. actually in my case columns are dynamic in nature so even though on screen "Business Su" is visible, I can drag column further to see full name but instead of it want to see "Business" and "Supported" come in two lines(when space is less) and shown in one line when column is dragged (using mouse) to increase its width.
6 years ago
JSF
Tim, I tried first and second option but did not work

I could not understand your third option what is the meaning of it ??

Place the text in a subsidiary element within the commandLink element body

6 years ago
JSF
hi,
I have a scrollableDataTable with header values like "Business Supported", "functional role & title".

now i have to show header values in two separate line like "Business" and "supported" should come in two different lines in header. any suggestions?
<rich:column sortable="false" width="50px">
<f:facet name="header">
<h:panelGroup>
<a4j:commandLink value="Business Supported"

data="businessSupported"></a4j:commandLink>
<h:graphicImage url="/css/images/scroll-down1.gif"></h:graphicImage>
</h:panelGroup>

</f:facet>
</rich:column>


6 years ago
JSF
I got this problem resolved i used below code to get height of image.



Learned some thing new today hurray
6 years ago
I have a java program that loads a list of images from database in the array of bytes format. I wanted to get the height of each image and use it for further processing.
Below code when i run i can print height on console BUT I can not acess this height outiside this inner class. Any suggestions how can i get the height outside this inner class in my java program.



6 years ago
I am having a search page with datatable in my jsf page which here is the problem description
1.) on clicking on search button I should see all records but some times all records are not shown and last 10-15 records are not present (this happens only some times but not always)
2.) Some times last records shown on my datatable is visible only half and not full. For ex. if last records has four fields in it (name, position,group,business) then last record shows only first two values and next two values are not visible.

Is it some thing to do with stack overflow for datatable or some thing like that. please suggest how to avoid this problem.
here is my datatable code
6 years ago
JSF