This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes struts beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts beans" Watch "struts beans" New topic

struts beans

Harshani Wickramarathna

Joined: Nov 15, 2007
Posts: 28
I've got this code from tutorial. But I couldn't try it because it says the method randomString undefined. Can you please help me on this.

package coreservlets;
import java.util.*;
public class SuggestionUtils {
private static String[] suggestedAddresses =
{ "",
private static String chars =
public static SuggestionBean getSuggestionBean() {
String address = randomString(suggestedAddresses);
String password = randomString(chars, 8);
return(new SuggestionBean(address, password));
xu yuanzhi

Joined: Nov 20, 2007
Posts: 6
The method 'randomString' is in the same class. Tutorial may haven't attached its codes
jQuery in Action, 2nd edition
subject: struts beans
Similar Threads
Java Code Generator
help with this program! I am stuck
Generate random strings
autogenaration password help
Object access within another Object