Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2008, 03:41 AM
Member
 
Join Date: Jun 2008
Posts: 8
bizmut is on a distinguished road
Binary text
Hi,

I am new in JSP...
Well, I need to make binary field in my JSP, but I don't know how... What I need is ordinary text field, but with restriction towards all other characters except "0" and "1". So, when someone tries to input, for example character "2" or "s" or etc. (character that is not "0" nor "1"), I would like my field not to react at all.

Is this possible?

Thanks. Bye, Igor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-24-2008, 03:50 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 581
Nicholas Jordan is on a distinguished road
turtle rules
You have several issues, we will start by making a simple ascii generator:
Code:
while(char < limit) file.print(char);// char starts at space
That is overly abbreviated, but the first thing we need to do is move away from the char transmission as binary, there are many tools already in place that transmit a great deal of information using regular Strings, doing it as regular internet traffic. We get a PrintWriter or something like it for free in JSP when the page is invoked, we just have to remember to set the header to text/html.

Guess what, it does that by shipping a regular String.

I normally don't smile but I did the smiley to encourage you to do a few steps before getting bogged.
__________________
Please provide your feedback on our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
get binary value rushenas New To Java 2 06-14-2008 02:51 PM
Unsupported Content-Type: text/html Supported ones are: [text/xml] luislopezco Advanced Java 0 05-26-2008 05:26 PM
binary conversion thamizhisai New To Java 3 04-29-2008 12:55 PM
Binary Addition Deo Favente Advanced Java 11 04-24-2008 06:34 AM
binary search tranceluv New To Java 10 01-14-2008 08:13 PM


All times are GMT +3. The time now is 02:54 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org