Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

rastas biggs

Ranch Hand
+ Follow
since Sep 24, 2004
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 rastas biggs

Can some one point me in the right direction, I want to read attributes from an XML file, does some one have some example code I can use?

I just want to read the attributes and assign to string or an array.

I'm more interested in getting a value type like "BlokesName_nickName" when I pass a value into a method like name, example below.



<BlokesName name="Bazza">
<BlokesName_nickName>Block Head</BlokesName_nickName>
<BlokesName_favoriteBeer>Stella</BlokesName_favoriteBeer>
<BlokesName name="Bazza">
correct, they must retype the value not pste it then I can validate the data etc..

I don't like having to do this but it is a requirement and will avoid bigger issues down the track for this site.

So I need a simple way for just preventing pasting in the 2nd text box
No, I need to do this to get the user to type in a value, a serial number in fact to ensure they don't enter the values incorrectly to avoid error.

If they can copy and paste it in the text field they the and they make a keying error they that is not forcing the user to double check whet they hav entered.

I have to force them to type the values, just like ebay makes you do with email addresss and passwords when you reset them.

[ May 06, 2005: Message edited by: rastas biggs ]
[ May 06, 2005: Message edited by: rastas biggs ]
Thanks Niki but no success tesing the code, it still let me copy

I think I'm going to use some javascript to disbale ctl button

Cheers

Ras

[ May 06, 2005: Message edited by: rastas biggs ]
[ May 06, 2005: Message edited by: rastas biggs ]
I want to make a user re-enter a value into an HTML input text field to ensure they pass the correct data.

like a password or email confirmation, but I don't want them to Ctrl-C, copy and paste it.

can some one give me a code example of how to do this? Javscript or HTML property on the input object

RAS

[ May 05, 2005: Message edited by: rastas biggs ]
[ May 05, 2005: Message edited by: rastas biggs ]
I get an out of bounds exception, i think cause there is whitespace at the end of the string

15 years ago
I know how to replace but how do I remove whitespace completely

15 years ago
I check for errors and redirect if error is true, now would the code below
being if both conditions are met cause this exception?


java.lang.IllegalStateException: Cannot forward a response that is already committed
DEBUG [12:35:31] (Form.java oGet:250) - doGet(HttpServletRequest, HttpServletResponse) - doGet: do post passed
DEBUG [12:35:32] (Activate.java oGet:67) - doGet(HttpServletRequest, HttpServletResponse) - doGet





15 years ago
JSP
Is this JSP 1.2 compilant.

I assume rather than EL I can use the request object to get the params?

I'm just going to use the request object.

Ras
[ April 18, 2005: Message edited by: rastas biggs ]
15 years ago
JSP
I have a value in a .jsp page

String page = "form"

I have an include.jsp in my form page.

I want to access the varaible "page" in the include.jsp

Ras
15 years ago
JSP
Hi there,

I have a value set in page i.e. page name.

In my header.jsp which I include in my page I want to display
data based on the page type.

How do I access the variable set in the page in the included .jsp file?

Cheers

rastas
15 years ago
JSP
Stan,

will null values not be Tokenized?

Guys,

this is great feedback thanks for your help

Ras
15 years ago
Hi ther I have text file with values seperated by "|"

I want to get the 10th Value



How might I achive this my code below

15 years ago
Is it possible? to upload a jsp file into a web app .war file from a web interface, so i can create jsp templates and delopy from my app.

Ras
15 years ago
JSP
Hi there,

Rather than appeanding variables to a url is it better on my controller servlet to store the variables in the session?

Can some one give me an idea of the advantage/disadvantages to this approach?

RAS
15 years ago