Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Rupa Katkar

Ranch Hand
+ Follow
since Aug 12, 2009
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 Rupa Katkar

Hi,
I have created a simple webservice project in netbeans having a tomcat 6 as server.

In this i have created one simple method..
but when i click on Test Web Service.. it opens new browser with the details... but doesn't show the method.

Pl. reply...

My application is like this..

package pack1;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
*
* @author rskatkar
*/
@WebService()
public class NewWebService {

/**
* Web service operation
*/
@WebMethod(operationName = "show")
public String show(@WebParam(name = "name")
String name) {
//TODO write your implementation code here:
return "hello"+name;
}

}

I want to call the show() method in java application(GUI). how is call web method in application?.
11 years ago
Hi,

i am new to Netbeans, i created the web project,
now i want to write javascript for one html page,
how should i write,
Pl. tell me.

Regards,
Rupa.

Patricia Samuel wrote:You have to return "hm_b60" this object from your check method or have to pass it in check() method.

After this use the following code - assuming you will return the map from check method

and in your jsp take this attribute from request and then iterate the map as


As a suggestion, we should use EL for Jsps. I am not sure why are you using this old way of writing a JSP.

Hope this helps. Let me know if you still stuck.


Regards
Patricia


Hi,
Actually i want to use EL only, but if you observed my prev. code, i am not getting that how should i pass the map to jsp page,
As i am calling the function in CompareFiles.java file, i am not getting how should i pass this map to jsp.
Pl. give me reply earliest possible.
Thanks,
Rupa.
12 years ago
JSP

Teena George wrote:

Hi Rupa,

Sorry for the delayed response. I was caught up with some work. I hope you have already cracked it But, even if you haven't, here is how i tried it.



Please let me know if this is not working for you.
Best Regards,
Teena



Hi Teena,
Actually i am not using bean & i am not knowing beans.
in my servlet program i am having this code.


in CompareFiles class



in the above code i am using two maps.
Now i am not getting how to pass this maps to jsp page.

I tried a lot , but i am not getting it.
Pl. help me teena.
Thanks in advance.
Rupa.
12 years ago
JSP

Teena George wrote:Hi Rupa,

I hope you are using EL in your JSP pages. You can access a map like this:

or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena



Hi ,

i am facing problem in passing the Map to jsp page,
how should i forward the map to jsp page.
& then how should i access it using EL.
12 years ago
JSP

Rupa Katkar wrote:

Rupa Katkar wrote:

Teena George wrote:Hi Rupa,

I hope you are using EL in your JSP pages. You can access a map like this:

or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena



Hi Teena,
Thanks for your response.
Actually I am not using EL, can you please help me some more regarding using EL.

Thanks,
Rupa.




Hi Teena ,

Actually this is my code snippet, where i am using
map..


mean here i am storing object of Batch_B60 class i.e. "b" to the map.
& now how should i access the contents of this map in jsp.

Thanks,
Rupa.




Hi all,
pl. give me reply.
12 years ago
JSP

Rupa Katkar wrote:

Teena George wrote:Hi Rupa,

I hope you are using EL in your JSP pages. You can access a map like this:

or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena



Hi Teena,
Thanks for your response.
Actually I am not using EL, can you please help me some more regarding using EL.

Thanks,
Rupa.




Hi Teena ,

Actually this is my code snippet, where i am using
map..


mean here i am storing object of Batch_B60 class i.e. "b" to the map.
& now how should i access the contents of this map in jsp.

Thanks,
Rupa.
12 years ago
JSP

Teena George wrote:Hi Rupa,

I hope you are using EL in your JSP pages. You can access a map like this:

or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena



Hi Teena,
Thanks for your response.
Actually I am not using EL, can you please help me some more regarding using EL.

Thanks,
Rupa.
12 years ago
JSP
Hi,

I have stored the contents of database table in map. & now i want to access this contents of map in
jsp page.

How should i access.
Please help me.

Thanks,
Rupa.
12 years ago
JSP
Hi,
I am using oracle 10 g,
When i am executing the Login.jsp page, it is giving me error like this......

error while connecting to Oraclejava.sql.SQLException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
The Connection descriptor used by the client was:
//localhost:1521/Scott

My tnsnames.ora file contains..

Scott =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.112.4.99)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = test)
)
)

this entry.

And my connection snippet is like this


Please solve my problem
Regards,
Rupa.
Hi,

I am having Map in java class. Now i want to retrieve the contents of
this map on jsp page for displaying purpose.

Thanks in advance..
12 years ago
JSP

Jeanne Boyarsky wrote:

Rupa Katkar wrote:I have created two hashmaps, it contains database table .


What type of object is in the HashMap? A database table isn't a Java type, so it must be something else.



Hi,

Hashmap contains contents of database table.

Actually i solved that problem of comparison, another new problem i am having
it is
..
After making the comparison of two hashmap, i got some results.
For eg. difference between two amount. Now i want to transfer this result to
jsp page for displaying purpose, how should i do this.
Pl. tell me.
Hi,

I have created two hashmaps, it contains database table .
Now i want to compare values of both .
how should i compare it.

Sagar Rohankar wrote:First, I correct your original code:

Rupa Katkar wrote:& here in Jonathon's code i am able to access only BATCH_NO from table.
remaining fields i am unable to access..
How should i access to fields.



To access both the key and value:


But first i should able to retrieve the whole data from my database. my table contains thousands of records.
Please you suggest me should i go for Map or should i use something else.


Its depends upon, what you want to do with the data. Map's are used to associate the bunch of data with the unique identifier.



Sagar, your code is working in my project, thanks for that..
One thing i want to ask is



in this code, we are not using this "b" object anywhere, how should we use it..

Sagar Rohankar wrote:

Rupa Katkar wrote:Now here after i want to retrieve the data which i saved in this map.


Where do you want to display this data, Don't make us guessing !

Still, I guess its JSP :




Hi Sagar,

I want to retrieve the table contents first, then i am going to process on that data.
& after processing the results i have display on jsp page.
But first i should able to retrieve the whole data from my database. my table contains thousands of records.
Please you suggest me should i go for Map or should i use something else.

Finally after processing data i am going to display it on jsp page only.

thanks for your support.