siva sankar

Ranch Hand
+ Follow
since Jul 13, 2006
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 siva sankar

Hi,

I have two jsp pages page1.jsp and page2.jsp.I am opening page2.jsp from page1.jsp using a javascript function.The
page2.jsp is opening in a new window popup but it is displaying by hiding back on the parent page page1.jsp.
I want to display page2.jsp window popup such that it stays on top of page1.jsp window. I used self.focus() in onload function of page2.jsp,but unable to display.
Can anyone suggest me on how I can achieve this behaviour?

Below is the code of my jsps :

page1.jsp

<script>
function loadpage2() {

var openpage2window = window.open("page2.jsp");
openpage2window .focus();
</script>


<form >

<body onload=" loadpage2();">
Page1 JSP displayed

</body>
</form>



Page2.jsp


<form >
<body onload = "self.focus();">Page2 JSP displayed</body>
</form>

Joe Ess wrote:Since it is probably the browser that is interpreting the single quote as ending the alert message, you can't use Java code escape characters (i.e. \' ).
Try using an HTML entity to replace the apostrophe:

Hmm. It looks like the code tags are eating my HTML entity. Click here and scroll down to "Html Entity (named)"




Thanks Joe. But even after using ’ it is not working. is there any other special code to be used to achieve this?
8 years ago
Hi,
I am using Struts 1.2 .I have a jsp page where in I need to display an javascript alert message by retreiving the message key value from Application Resources properties file as soon as the page is displayed.
The message property has single quote (') in the value.I used '','\',"\'",’ to display single quote but I am unable to display the '.

The message key and value in the properties file is :

display.clientnotfound.msg = Client's account data not found.

I jsp,I am displaying the alert as
<script>
alert('<bean:message key= "display.clientnotfound.msg" />')
</script>

Can anyone suggest me on how I can display property value with ' using javascript alert message.


Thanks in Advance,
Siva
8 years ago
Hi,
I am hitting a webservice which is returning a String as shown below.

String output="identitydetails.attribute.name=uid
identitydetails.attribute.value=John
identitydetails.attribute.name=mail
identitydetails.attribute.value=john@abc.com
identitydetails.attribute.name=sn
identitydetails.attribute.value=D";


In the above output,each line contains a attribute name and the next corresponding line have the value for this attribute.
For example,the line1 and line2 in above output is identitydetails.attribute.name=uid and identitydetails.attribute.value=John.
Now I want to add uid(from line1) as a key and John(from line2) as value to a HashMap. The same has to be done for other lines in the output and add key/value pairs to HashMap.


Can anyone suggest me the best approach to achieve the above requirement.

Thanks in Advance,
SivaReddy
10 years ago
Hi,

I used the following in my jsp page :
<a href="http://del.icio.us/post?phase=2&url=https://www.gencomarketplace.com/sws/action/Resources?menuTab=LiquidationArticles&menuOption=RESOURCES&link=SweetReflect&title=Buyer Profile -- Sweet Reflections">del.icio.us</a>

However, when bookmarking, delicious recognizes the url as https://www.gencomarketplace.com/sws/action/Resources?menuTab=LiquidationArticles.

It is ignoring the additional parameters (except for title). Because of this, I can not get the bookmark to go to the proper article. Any suggestions? Please suggest me on putting the things right.


Thanks in Advance,
Regards,
Siva
14 years ago
JSP
i am having a jsp page which diplays details of 100 users from the database.whenever a mouseover event is fired on the username in the jsp ,it has to show the address of the user.the address of the user has to be retreived from the database.i used ajax to meet this requirement.But the ajax call is called continuously when the mouse(cursor) is placed on the username.I want the ajaxcall to be called only once when a mouseover event is fired.Please let me know the solution on meeting this requirement.

Thanks in Advance,
Regards,
Siva
Dear Ulf,

SQL> insert into test values('
2 /action/forwardfwdPage=fwdItem&program=item&clearCache=yes');
Enter value for program:
Enter value for clearcache:
old 2: /action/forwardfwdPage=fwdItem&program=item&clearCache=yes')
new 2: /action/forwardfwdPage=fwdItem=item=yes')

1 row created.

SQL> select * from test;


VAL
--------------------------------------------------
/action/forwardfwdPage=fwdItem=item=yes



As shown above,i executed the query and the i got the result as shown.But in the result the special characters ?,& are not getting inserted.
Please look into this.


Thanks in ADvance,
Best Regards,
Siva
15 years ago
Hi,


I have to insert the following text containing special characters in oracle.can anyone help me on writing this query

The text to insert is "/action/forwardfwdPage=fwdItem&program=item&clearCache=yes"



Thanks in Advance,
Best Regards,
Siva
15 years ago
Hi Paul,

Here pallete_id is not a considerable thing.when the sum of costs of palletes are <=15000(the value should be close to 15000 in most cases),then the no.of palletes when added should be equal to 12.


Regards,
Siva
15 years ago
Hi,

I have a table called Pallete as shown below



pallete_id category pallete_cost

2 Electronics 1000
4 Clothing 500
8 Hardware 2000
1 Clothing 1500
6 Hardware 4000
9 Electronics 4000
10 Electronics 1000
3 Clothing 500
7 Hardware 2000
5 Electronics 1000
13 Clothing 500
14 Hardware 2000
15 Clothing 1500
16 Electronics 1000
17 Hardware 2000
18 Electronics 1000
19 Clothing 500
20 Hardware 2000

As shown above there will be thousands of records.

What i want is 12 pallets of same category will be one 1 master pallete and cost of those 12 pallets shoulb be <=15000.

master pallete shuold contain exactly 12 palletes.this should not be less or greater.

can anyone suggest on how can i do this . its very urgent.

Thanks in Advance,
Best Regards,
Siva
15 years ago
jeane,

yes


thanks & regards,
siva
15 years ago
Hi,

I am adding data to an existing xml file dynamically.But when i am doing like this,the old data is replacing with the new data.Is there any API or method to refresh the xml file so that no data should be lost when i add the data.




Thanks in Advance
Regards,
Siva
HI,

I am new to QTP.i have installed QTP 9.0 on my system.I have to test the applications developed in java and .net.So,can anyone please tell me the links or sites to download the trail version add-ins of java and .net to use with QTP.

Thanks in Advance,
Regards,
Siva
15 years ago
Hi,

I have written a standalone client to invoke the ejb running on weblogic server.It is working fine.But what i want is,how does the client can know all the bussiness methods of EJB(without implementation).If client is able to know,how is it possible.

thanks & regards,
Siva
Hi,

i was new to xml parsing.I have little bit idea abt SAX and Dom.Can anyone explain me the differences between SAX and DOM.

Also explain me when i have to go for SAX and DOM

Thanks in Advance,
Regards,
Siva