radha madaparthy

Greenhorn
+ Follow
since May 08, 2010
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 radha madaparthy

Hi,

I am trying to using http header to determine the implementation to invoke during runtime in my rest service. I have a situation to support multiple versions of a same service within my code. Some classess have been updated based on the new design but the older implementation has a different logic in those classes. I now want to support the old code as well as new code as deploy the service as one artifact. I am planning to introduce a new implemenattion classs which implements same service and then copy the implemenattion for the down stream classess to support the old version. Now can i use spring to do the routing to the right implemenation based on the request header value? Or are there any good alternatives for this situation?

Thanks a lot for the help
10 years ago
Hello friends,

I know this is a java forum but I have a question on accessing html elements in python script. I am stuck currently trying different options and none seem to work. My problem is described below.

I have a form with table and i have some javascript code to add rows and delete rows on a button click. User enters data and submits the form. At Back end , python script gets invoked and it needs to use the data entered in table for additional processing. I do not know how to do that. I can use Beuatiful Soup but all the examples mentioned are having some hardcoded html and then creating a soup instance..In my case that html has to come from the request.

so beautigul soup does not work for me with my knowledge.

Can someone tell me how can I access the html table data in a python script? Any other ideas are also welcome. Sorry for posting python q here.

my javascript code:

var newRow = document.all("tblGrid").insertRow();


//add 3 cells (<td>) to the new row and set the innerHTML to contain text boxes


var oCell = newRow.insertCell();
oCell.innerHTML = "<input type='text' name='categoryname' size='30'>";


oCell = newRow.insertCell();
oCell.innerHTML = "<input type='text' name='itemid' size='30'>";

oCell = newRow.insertCell();
oCell.innerHTML = "<input type='text' name='itemname' size='30'>";

oCell = newRow.insertCell();
oCell.innerHTML = "<input type='text' name='quantity' size='30'>";


oCell = newRow.insertCell();
oCell.innerHTML = "<input type='text' name='attributes' size='60'> <input type='button' value='Delete' onclick='removeRow(this);'/>";

Thanks,
Radha
12 years ago
Can i call action class getRedirectUrl() method from another class?
13 years ago