Balagopal Kannampallil

Ranch Hand
+ Follow
since Oct 18, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Balagopal Kannampallil

Priyanka,

Writing business logic in JSP is no longer entertained as per the latest standards. Try to move the java code into a servlet and just use the jsp be used for view purposes.
11 years ago
JSP
Durga,

Time to rethink about your approach.
11 years ago
JSP
Granted!! But you will be subjected to a monthly cap on the amount of goods you purchase in a month

I wish we all could teleport.
11 years ago
Checkout this tutorial on how to access files from the local file system.

Note: I haven't tried that myself.
11 years ago
JSP

Bear Bibeault wrote: It's 2014. Java code in a JSP has been obsolete and discredited for 13 years.



Agree with you Bear.. :)

Sometimes it becomes too overwhelming for beginners to mix up different things at once.
11 years ago
JSP
gui, welcome to the Ranch :D

As Paul suggested, once you have written the jsp which talks to the server side component. The functionality you want can be achieved by

1.Talking to your sever side simultaneously as you delete each row (call the server side url using javascript or jQuery and ajax). In this case, the page refresh won't happen and you can handle the row deletes from page and the actual data deletes from datastore asynchronously.
OR
2. You can delete the rows from the page using javascript (only row deletes from page). Fool the user to believe that he/she is actually deleting stuffs from the datastore. Instead, you will be storing the deleted ids in some page variable. Finally, request the user to click the save button which when clicked will call the server side url and pass this deleted ids as a bulk. The server side component will have the logic to delete the obtained ids it from the datastore and return back a refreshed page.
11 years ago
JSP
Please refer this old ranch post for a basic idea.
11 years ago
You can achieve this in many ways depending on the approach you choose.
My personal favorite is JQuery. Have you got a chance to explore this?
11 years ago
As per wikipedia
http://en.wikipedia.org/wiki/Road_signs_in_India
'Give way' in India too..(thinking!!! if I have seen or ever used this while driving in India )

Accept with Bear on this. A good driver in US yields daily.
11 years ago
If you want to display the XML contents as it is with all the nodes, you can use the text function in jquery. Replace the script tag with this

11 years ago
JSP

Durga Roobini wrote:In my servlet page I call one xml response from third party server



When you are loading the xml response from a third party server, what is the need to load it from the local file?
You can write the response and store it in the local file for record purpose but can't you use the response object from the server as it is to display?
11 years ago
JSP
While learning the basics of Java in 2004, the word which annoyed me the most was Yield

Seriously!!

The only yield I was aware at that time was related to cultivation

Meaning : to give forth or produce by a natural process or in return for cultivation.
USAGE : This farm yields enough fruit to meet all our needs.


I could neither relate this meaning to the threads concept nor I could accept the actual meaning .

It took me a while to glue in the other meaning to give up, as to superior power or authority into my head.

Anyone had similar experiences??
11 years ago
If I were you, I would have used JQuery in my webapp to fulfill the remote loading

Here is a sample code



In place of '/remotesite/result.xml' , you can give the url of the xml hosted in the third party server.

Note: JQuery is one of the many options available.
11 years ago
JSP
iframe loading from a local directory is restricted in most of the modern browsers. It is a security feature which you must toggle off to view the contents.

You can use relative path instead.

My suggestion would be to get rid of that iframe if you are developing a modern web app and explore latest ways of dynamic content loading.
11 years ago
JSP