Sean MacLean

author
+ Follow
since Nov 07, 2000
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 Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sean MacLean

Roseanne,
That's exactly what I was looking for. Nice article too ... most of what I could find was the same old "PO" (purchase order) example everywhere. This site was helpful too though.
http://www.w3schools.com/schema/default.asp
Thanks again. (Hope all is well here at the ranch too)
Sean
Howdy all,
Working with jaxb and I'm wondering if anyone knows how to represent this xml definition in an xsd. I want the resulting xml to be
<myElement id="123">here is some text</myElement>
I'm not sure if this is possible givin my limited experience with xsds, etc. It seems the only thing I can define is this
<myElement id="123">
<mySubElement>here is some text</mySubElement>
</myElement>
by doing this

Any help would be appreciated. Thanks.
Sean
Hey, I have to agree as well. You'd have to look at using a BitSet or int, for example (haste makes waste, as they say). However, as to anachronous nature of this approach ... well, I really have to disagree. If you want to database schema containing a massively sparse matrix containing boolean values ... then go right ahead. Or, optimise the database somehow, but still take the hit on instantiating a Java class containing a huge boolean array that you've contructed .... on and on. Well. I'm done here.
Sean
17 years ago
"edhear",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
Check out the strut documentation for a better understanding of these tags.
http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#text
Sean
17 years ago
JSP
Use a servlet to call the jsp using an HttpURLConnection, capture the response and then write this to disc.
i.e.

This is just off the top of my head and isn't intended to compile.
Sean
17 years ago
JSP
I always thought this was a really slick way of storing a huge number of on/off flags (i.e. newsgroup user preferences such as read/unread). Anyway, you should be able to create a bit mask (represented as a String) and simply do an XOR against your long String. Don't have time to get into the details but that the gist of it.
i.e.
String group12345Read = "GsjhdufJSKJ";
String userPrefs = "YUAD*sddf76fHS*fhd"
if( (group12345Read | userPrefs) == 1 ) {
// they have read this one;
}
Check this out.
http://www.vipan.com/htdocs/bitwisehelp.html

Sean
17 years ago
"luvjava",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
EJB
Yeah ... no reall question in there.
"kavs",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
"kamran",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
JSP
"Goofus McDoofus",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
JSP
"javaoriented",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
JSP
"Mukund",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
17 years ago
Since you are using session scope make sure that you're bean implements Serializable (or switch to request scope). This might be the problem since anything in a scope beyond request must be serialbizable to retain state.
Sean
17 years ago
JSP