This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Karthik Srikanti

Greenhorn
+ Follow
since Sep 20, 2006
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 Karthik Srikanti

Ajax in Action is pretty lengthy.., if you want something concise and at the same time comprehensive, I would suggest, Pragmatic Ajax. Its a nice book..

You can get it at this link..

http://www.pragmaticprogrammer.com/titles/ajax/
Try putting them in divs or spans, then use a javascript function to hide and show as required. You can use something like:

document.getElementById('div1').style.display='block';
document.getElementById('div2').style.display='none';
You can try this...


function isAlphabetic(sText)
{
var ValidChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890* ";
var IsAlphabetic=true;
var Char;


for (i = 0; i < isalphabetic ="="">
{
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1)
{
IsAlphabetic = false;
}
}
return IsAlphabetic;
}
A sample would be

var tables = document.getElementsByTagName("table");
for(var i=0;i<tables.length;i++)
{
tables[i].width="100%";
}
[ March 03, 2007: Message edited by: Karthik Srikanti ]
You can use a tables within the table or have more than one table with same css.. I donot completely understand what exactly you want here though
You can use a div with a higher z-index with your own custom buttons than trying to modify the values in the custom box.

Just my two cents
Jay,

You can use the link given by Kumar if your data has no pagination. But if you need pagination, or if you dont want to use javascript, you can use display tags. You can seamlessly fit into your application and pass it an object in any scope in the page. You can configure sorting. You can get them at this link

http://displaytag.sourceforge.net/11/

Cheers
15 years ago
JSP
Like Bear said, there is no pattern to give you 3rd, 6th like that. But if its absolutely necessary for your project you can use some javascript scripting with logic to change the value after its displayed on the page. You can have it at the end of the page so it fires before the page is loaded.
15 years ago
JSP
Give all teh checkboxes the same name something like

<input type="checkbox" id="uid" name="checkValue" value="<primary id in your table>">

Then in the servlet

use

String [] checkValue = request.getParameterValues("checkValue");

String sql = "Delete from users where <primaryid> in ("

for(int i=0;i<checkValue.length;i++)
{
sql+=checkValue[id] + ",";
//Add logic to remove , for last entry
}

Then establish a connection to a database and do something like this

rset.executeUpdate(sql);

Hope that helps..
15 years ago
JSP
What do you mean by the fact that you want to get data from form 1 into form 2? Can you elaborate?

If its something like copying the data you can use javascript for that but if you want three forms then you need to use three different actions. But if you want to use different responses then you can use multiple submit buttons with different values and use them up to apply corresponding business logic on server side. Or else you can use LookUpDispatchAction class.

Cheers.
15 years ago
Depends on how you want to use those forms. For example you can write three different forms with their own actions or you can make them hit the same action and give different values for submit buttons and depending on those values use application logic. It depends on how exactly you want to use them...
15 years ago