Sahala Swenson

Greenhorn
+ Follow
since Jul 01, 2003
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 Sahala Swenson

Thanks. I'll check both these out.
17 years ago
Is there a commercial or free tool out there that can be used to validate HTML pages? This is my scenario:
- My project's web testing harness uses HttpUnit to walk through user tasks. This verifies that key tasks can be performed.
- Our test cases typically make sure that certain strings, form values, etc exist on generated pages.
- Our test cases DO NOT make any attempt to make sure that the page is passable HTML.
I'd like to be able to pass in an inputstream (or something along those lines) to a validator. I'd also like to be able to customize the validator by providing either a DTD or "turning off" certain checks. Unfortunately, in order to make things work the nature of the beast is such that the generated HTML may violate W3C's validator in bad ways, but surpass our established HTML standards. Therefore I don't want a strict validator...just something that will tell developers if some of the blatant HTML errors.
I've considered rolling my own, but I'm hoping that someone's solved this problem.
Thanks, and my apologies if this is a previously discussed topic.
17 years ago
Can you post some code? That might help.
If you don't want to put in onchange event handler code on every field there's a slightly easier way to do it, although it will get you in trouble if you're not careful

Originally posted by Bear Bibeault:
Sorry to be the bearer of bad news.
Btw, I figured you'd end up on the Ranch sooner or later. What took you?


"bearer"...*groan*
Yes it took me a while to actually. Suffice it to say that I've had quite a number of questions answered without actually posting a question.
17 years ago
JSP

Originally posted by Bear Bibeault:
Custom tags are translated to their equivalent Java code at page translation time, but emit their output at page request time.


Ahhh, I was afraid you would say this.


Perhaps you could explore writing your tags handlers such that the their processing is abstracted in a way that allows them to 'call' each others' functionality.


I was about to go down such a path but I was hoping there would be a trick or two up someone's sleeve that would spare me the extra work. Time to fire up the IDE and get back to it...
Thanks.
17 years ago
JSP
My apologies in advance if this question has been addressed in a previous topic.
Can a custom tag write custom tags as output, and have that output evaluated? Here are the reasons why I want to do this:
1) I have a collection of tags that format some non-trivial DHTML. They are given data in some form or another (Strings and Collections, mostly), and are purely responsible for presentation.
2) I have form and field tags that abstract away the HTML form, fields, naming, and initial value population.
My UI requirements necessitate interactions that require DHTML, but I absolutely don't want the form and field tags to emit DTHML. I would rather they instead emit tags that in turn handle all the DTHML rendering.
Let me know if this isn't clear.
17 years ago
JSP