This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Nag Venkat

Ranch Hand
+ Follow
since Jul 25, 2013
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 Nag Venkat

I need to find whether servlet is invoked by httpAdapter or httpBrowserAdapter.
Can i find it using HttpServletRequest?

can any one let me know about this issue.
6 years ago
Matcher ma = Pattern.compile("\\[somestartstring(.*?)\\](.*?)\\[someendstring\\]",Pattern.DOTALL).matcher(matchString);

this works fine..its a matter of space.
6 years ago
I have added a regularExpession like this:

Matcher ma = Pattern.compile("\\[somestartstring (.*?)\\](.*?)\\[someendstring\\]",Pattern.DOTALL).matcher(matchString);
while(ma.find()) {
//width
System.out.println(ma.group(1));
//data
System.out.println(ma.group(2));


}

Iam not getting 2nd table results ie.
"gfbgf
75,56,89,22"

As that is not matching the pattern.As sencond table dosent have "width".we need to add some kind of or condition for that in regex.
6 years ago
hii thankyou iam able to get all the values in between the square brackets.
Now iam facing another issue.i will be getting the string lke this:

[somestartstring width='200px']\nresult\njgjgjiju\n78,75,96,3,2\nhitendra sunkara naga\nno[12456,789],model,make,speed [someendstring] Stroing\nin between is[somestartstring]gfbgf\n75,56,89,22 [someendstring]";

Matcher ma = Pattern.compile("\\[somestartstring\\](.*?)\\[someendstring\\]",Pattern.DOTALL).matcher(matchString);
Iam not getting acurate result when i use the above one.I need

" width='200px'" along with the other matching results.


result
jgjgjiju
78,75,96,3,2
hitendra sunkara naga
no[12456,789],model,make,speed
gfbgf
75,56,89,22

can you help me in solving this.we need to add an Or condition in regex for [somestartstring] to set all the text inbetween.

Thanks in advance
6 years ago
Hi,

I have a String like this:
[somestartstring]result
jiju
[someendstring] Stroing
in between is[somestartstring]gfbgf
4562,896,235
7855,89,362
[someendstring]

i need the result like this:
result
jiju

and
4562,896,235
7855,89,362

basically i need the text inbetween [somestartstring] and [someendstring]

For this i have writeen a regular expression like this;
Matcher ma = Pattern.compile("\\[somestartstring\\](.*)\\[someendstring\\]").matcher(matchString);
while(ma.find()) {
System.out.println(ma.group());
}

Can any one help me in solving this issue
6 years ago
Actually i need to send that value in postData, you can ignore that alert statement..Do we have any thing to convert that to string and pass it to postData
In javascript ,generally if we use longNumbers ,above 15 digits,then it will roundoff automatically.I need to convert that large integaer to String,is it possible.I tried toString Method.But it is not working.



Iam getting alertStatement value as 3074457345616770600,can you help me in solving this.


Hi iam planning to add store specific conditions in TelesalesRegistry-ext.xml.For that i need to know the extendsion point

From Server execution starts from TelesalesBaseServiceBean(this is a sessionBean).In this method we will have sendBODItem method.in that method,we are making call to OAGISCmd's..from there to some other classes and finally it will pick classes like "ExtShowStore,ExtShowCustomer etc"



I have tried to know how this sessionBean is getting called.but i coud'nt.

can anyone please let me know about it


code should be like this:

<Noun name="Store">

<Verb name="Get" storeId="10309">
<ClassName>com.hfc.commerce.telesales.messaging.bodreply.HExtShowStore</ClassName>
</Verb>
<Verb name="Get" storeId="10304">
<ClassName>com.hfc.commerce.telesales.messaging.bodreply.HFRExtShowStore</ClassName>
</Verb>
<Verb name="Get">
<ClassName>com.hfc.commerce.telesales.messaging.bodreply.ExtShowStore</ClassName>
</Verb>

</Noun>

Regards,

Hitendra
7 years ago
Actually i have a map returned from my dataBean lke this:

{address1Error=true, address1Length=30,address2Length=29,address2Error=true,cityError=false,restricetd=true}

I need to het this the values from my map:

Sample code is like this:

<script>
var mapValue={address1Error=true, address1Length=30,address2Length=29,address2Error=true,cityError=false,restricetd=true};
//TODO now i need to met values in that map.like address1Error value etc
i tried like this
mapValue.address1Error.But it is not working
</script>
hi K. Tsang

I need an sql.As length is not fixed. catalogid can be at any pos of the url some times it may be frst parameter and some time it may be the lastparamenetr
Hi Chris,

Actually that is OOB feature.We canot do it now.and moreover it canot be in the same location.some times it can be like this:
ajaxOrderItem>storeId=12709&partNum=345435&catalogId=2345

Iam actaully migrating E-spots.There will be number of url's like this in that table.Now i need to replace all the old catalogId's with new ones.
I have a table named collateral.In that table i have a column named URL

In that column we will be having urls like this:
ajaxItemDisplay?catlog_id=1234&storeId=12207
ajaxItemDisplay?catlog_id=122324&storeId=12207
ajaxItemDisplay?catlog_id=12332324&storeId=12207

How can i get the cataloigId value from the above url.Can we use SUBSTRING
Yeah,i have tried using ajaxCall.But i prefer Zip.

Thanks
7 years ago
JSP
Hi ,

I need to download multiple files from my jsp,My jsp will receive a string array,and in that each array will have a filePath.I ggot the solution to download multiple files by Using ZipOutPutStream,But i don't want to Zip Them,I need to download them in a folder.In that folder i should have all the files.

7 years ago
JSP
hi ,
i ahve a table named collateral.in that table i have a field named URL.
those url values will be like this :ShippingPolicy?storeId=20051&langId=-1&catalogId=10051@productId=675675&categoryId=86789

now i need to replace catalogId,productId etc with neew values instead of existing values.

for that i need to run following queries:
update collateral set url = replace(url, '10379', '32121')
update collateral set url = replace(url, '10512', '33058')
update collateral set url = replace(url, '12001', '32243')
update collateral set url = replace(url, '12002', '32262')
update collateral set url = replace(url, '10307', '32056')
update collateral set url = replace(url, '13501', '32265')
update collateral set url = replace(url, '17002', '32257')
update collateral set url = replace(url, '11003', '32274')
update collateral set url = replace(url, '16501', '32274')

above update statements will work fine.But when we try to run them at once.it will throw error as database won't suppot..
So,is there any option for this,or do we need to run one by one.