Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Harshal Gurav

Ranch Hand
+ Follow
since May 29, 2008
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 Harshal Gurav

Hi All,

I have installed two different WAR.. testA.war and testB.war on webspehere -7. I am reading property file from classpath in testB.war. but my application look property file at testA.war
both WAR has been deployed on single jvm.
Can anyone suggest how individual application read file from its own classpath like from ............/ testB.war /WEB-INF/classes.
6 years ago
Thanks James and Time,

Tim, Could you please more elaborate your help
The servlet API contains methods that can help you do that in the ServletContext interface.
8 years ago

Hello All,

In My web application,I am creating pdf files using itext. I need to save it on my server folder on below folder

my allication path is http://SampleApp/PDFstore/test.pdf

When i try to given above path in code for genarating pdf, it is not working

Could you please suggest ?
8 years ago
Hi All,

I am running web application on server machine.
In web application, i am creating pdf file using itext and saving it on folder c:/PdfFilepath/

I am trying to open this PDF from my web application like : http://localhost:8080/Reportgenarate/showCert.jsp

i am accessing in following fashion:
String path="file:///C:/PdfFilepath/nargi.pdf";



also try with following fashion



When i try to open it from ablove like in firefox, it shows an error like :
firefox doesn't know how to open this address because the protocol


I also installed LocalLink 0.5 add on for firefox. it doesnot work

I am awaire that commons-fileupload-1.2.2 jar is best option to upload file on the server and access it

My application require it should access from c:/PdfFilepath/nargi.pdf

any suggestion is highly appreciate


8 years ago
JSP
Hi All,

I have one SuggestBox populating data from database. also user can manually add text into the same.
I want to restrict no of character in SuggestBox is 30.


I used the method
suggestbox.getTextBox() method but no avaliable method are available like setmaxlength() or like

Any suggestion is highly aapreciated
.
Regards
Haresh
9 years ago
GWT
Hi

we are migrating our application from WAS to JBoss5.1

our previos ejb Modules are build with ejb2.0 version . our main task is to migrate those ejb2.0 modules to ejb3.0 specific.

while changing the code some are the classes useing the ibm specific api.(This project is running on WAS 7.0 and we are replacing it using JBOSS 5.1 so we started to migrate all the jars supported to jboss).

ejb2.0 projects using this classes com.ibm.ivj.ejb.runtime.AbstractSessionAccessBean.

how can I replace this class with jboss specic or open source jar.


any suggestions is highly appriciated


regards
haresh
Hi All,
Can any one help here.
Atlest some hint!!!

Thanks
Haresh
9 years ago
GWT
Hi All,
This is issue related to GWT cookie. I am building one web application using spring, core java,servlet,GWT,Jboss server. The issue is that when i try to open a link which is now on my current IE browser into another IE browser, it will get open successfully. My basic need is that when user open the current link (link showing in current IE browser) into another IE web browser, application should redirect him to login page with giving some error.
OR how i can handle this issue with some addition of code into existing one
Any suggestion is highly appreciated

Thanks

Haresh
9 years ago
GWT
Hi All,
This is issue related to GWT cookie. I am building one web application using spring, core java,servlet,GWT,Jboss server. The issue is that when i try to open a link which is now on my current IE browser into another IE browser, it will get open successfully. My basic need is that when user open the current link (link showing in current IE browser) into another IE web browser, application should redirect him to login page with giving some error.
OR how i can handle this issue with some addition of code into existing one
Any suggestion is highly appreciated

Thanks

Haresh
9 years ago
Thanks for reply.
If HashSet does not give error while adding duplicate,then what is exactly use of Hashset?
Is add() method is used for any comparison purpose?
10 years ago
Sorry for previous post.
All this is related to HashSet.
Yes, In HashMap, we have value is associated with Key.
How it is work with HashSet.
10 years ago
Hi,
we know that,HashSet does not allows duplicate values .But when we try to insert duplicate values into hashSet,it does not give any compile or run time error ?
What is exactly means by

HashSet does not permits duplicate value


suppose we have this code



When we complile and run this programme, it will give output as [1,2]

Thanks
10 years ago
Hi

I have web aaplication buid with servle, jsp page on machine with ip address 198.168.4.123 (Say PC1 : acting as server) and running successfully.
Now i want to access this web application from another m/c whose ip address is 198.168.4.130 (Say PC2 : acting as client).. Both are these PC are connected in LAN.
I can access shared file from both pcs also. also get ping reply from both machine. But when i try to access web application from PC2, i am getting error as The page can not be displayed.
I am giving URL as http://198.168.4.123:8080/Webappname/index.jsp .
I have also turn off the firewall .

Any suggestion is highly appreciated.

Regards
Haresh
Hi All

In my programme, i am showing edit,Modify, delete button to run transaction servlet programme. but after calling this servlet, i am getting message that 'The page can not be displayed'.

As i am able to login into the application successfully, and can go the main page,there is no chances of apache tomcat server shutdown case.

can any body help here.

Regards
Haresh
10 years ago
Hi

I have impoted project file in eclipse in new machine using option import from existing workbence . When i stat to debug this project ,
i am getting error as class not found exception : com.mysql.jdbc.driver . my project folder already consist of mysql .jar file in /web appls/web-inf folder.
Application is running successfully in other machine from where i took the application file. As this error appeared I also added jar file into project path as Project ---->properties-- build java path---libraries----add external jar file.
kindly hep me.

Haresh