Mini Pilla

Ranch Hand
+ Follow
since Jul 15, 2001
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 Mini Pilla

Never mind.....I got it

var r = w.replace('�', String.fromCharCode(153));
[ June 15, 2006: Message edited by: Rajani Katta ]
OK...is it me or something else....

If someone copies �(Trademark) from word doc to a textfield and when I try to save that value in the DB, it converts into a '?'.

Then I tried to a round about, used the following replace function in javascript before submitting the form.

var r = replace(t, '�', '& # 1 5 3;');--numeric value

But this doesnot work, it refuses to identify � in the string entered by user.

Any light on this wil be GREATLY appreciated......

I wasted like 24 hrs on this....

Thanks
Rajani

[ June 14, 2006: Message edited by: Rajani Katta ]
[ June 14, 2006: Message edited by: Rajani Katta ]
Its on the same page, what I mean by that is there is only one order page. it should similate like a client side verification, like we generally do. But in my situation , the data verfication is done form server side(the Qty is more or less).
If the pop up window says , your ordered Qty is more than what we have in stock, then user will change that Qty.
SO what I mean is the page is the same.
Hope I was clear or I made worse
Thanks for the quick reply though...
Rajani
19 years ago
Hi,
My program flow is a typical ...JSP-->Servlet-->EJB-->DB
I have to do a validation that if a user enters a Qty on my JSP page,I have to check if that Qty is in stock(DB) or not. If the Qty is not in the stock I have to put a javascript ala.. pop-window saying "oops! the ordered qty is more"..

How do I proceed without comprimising MVC?? I know it is common validation,its just that my brain stopped working on Friday eve...

I will appreciate any points...
Thanks
Rajani
19 years ago
Hi,
I am using jakarata common upload functions. I am able to upload file when I am doing from browser. In my application, .net client is trying to upload to Jboss. .net client is webclient.

Error : org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly.

I even tried to echo the request....and this is what i got..
Here is the request line and request headers sent by your browser:
POST / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Referer: http://localhost:8080/examples/jsp/BrowsePage.jsp
Accept-Language: en-us
Content-Type: multipart/form-data; boundary=---------------------------7d41112770e48
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Host: localhost:8088
Content-Length: 643
Connection: Keep-Alive
Cache-Control: no-cache

-----------------------------7d41112770e48
Content-Disposition: form-data; name="xpdl"; filename="C:\boot.ini"
Content-Type: application/octet-stream



In my opinion,its is somethign to do with boundary......I did everyhitng....i increased the threashold size in my servlet but of no use

Thanks for the help....
19 years ago
Hi,
I ma getting this error when uploading a file
apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly(at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java).

ANy idea?? Any help is gretaly appreciate. My google search is exhausted!!!
Thanks
Rajani
19 years ago
Hi all,
I am trying to upload a file from .net client to my Jboss server. I know how to do it in normal browser by making the ENCTYPE type as multipart/form-data.
But I am trying to upload a file from .net client.
Any ideas???
Thanks
Rajani
19 years ago
Hi,
I am using this package to upload a file(xml) from JSP.I am having 2 problems:
a)It gives me error saying that XML file should be valid..begin tag and end tag should match,though my file seems to b fine.
b)if at all it passes this line,
MultipartRequest mr = new MultipartRequest( request,uploadDirectory,10*1024*1024);
my page hangs up...
ANy clue will be appreciated...
Thanx
Rajani
20 years ago
Hi all,
Can someone tell me how different is the Eclipse IDE debugger than Plugin Debugger.
Is it true that its different???
Any help is greatly appreciated.
Thanx
Rajani Katta
Hi all,
I am sorry if I posted my message in wrong forum.
Can anyone please let me know if they have implemented HIPAA in Java and XML.
Any help or direction in this regard is greatly appreciated!!!
Thank You
Rajani
Hi all,
I am newbiew to J2ee.I am using Jbuilder 8 and BEA weblogic and SQL server.
I am trying to configure jbuilder.I am taking the help of this website--http://info.borland.com/techpubs/jbuilder/jbuilder8/enterprise/target.html
The point is I couldnot follow "Setting up JDBC Driver".Where can I get JAR file containing the drivers.
Sorry for my naive questions....
Any help is gretaly appreciated....
Thanx
Rajani
Hi,
Can someone plz tell me how to parse a pdf file in java.
I have to read a particular line in the pdf file.Any libraries???
THanx
Rajani
21 years ago
Hi all,
I have Oct 29,2002 as date in one of the cells in Jtable.
I wrote a code to copy that date.(Jpopup right click menu)
When i try to paste the date it changes its format to 2002-10-28.
ANy ideas..to preserve the date format.
I showing my code here!!
for (int i=0;i<numrows;i++)
{
for (int j=0;j<numcols;j++)
{

sbf.append(table.getValueAt(rowsselected[i],colsselected[j]));
///in getvalue() method i don't know what is the format because it coming from another program

table.setValueAt("",rowsselected[i],colsselected[j]);

if (j<numcols-1) sbf.append("\t");
}
sbf.append("\n");
}
[ October 29, 2002: Message edited by: Rajani Katta ]
[ October 29, 2002: Message edited by: Rajani Katta ]
21 years ago
HI All,
I have Jtable,I have popup for cut,copy,paste on right click.
I ma doing that.
But my problem starts here!!!
When I copy a cell and want to paste to another cell,
how can I disable Cut and Copy because when I say

if(table.getSelectedColumnCount()==0 || table.getSelectedRowCount()==0){
popcut.setEnabled(false);
popcopy.setEnabled(false);
}
Always the selected cell is taken as 1.
Any ideas!!!
Thanx
Rajani
[ October 28, 2002: Message edited by: Rajani Katta ]
21 years ago
Hi all,
Can someone tell me why the keys are reversed when printed.
In Detail..
When i insert some keys and values in a hashmap...and just printed both the keys and values.....keys are reversed...
Thank You.
Rajani
21 years ago