Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Testing and the fly likes testing dostart and doend tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "testing dostart and doend tag" Watch "testing dostart and doend tag" New topic
Author

testing dostart and doend tag

sangineni phaninder
Greenhorn

Joined: Oct 28, 2006
Posts: 6
"
can some one send a sample code on testing dostart and doend methods"
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

What do you have so far? What are you stuck on?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
And how should we know what "dostart" and "doend" are?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Not sure if you're looking for a JUnit test, or just some code that you can run and test on its own. Here's a little custom tag I use on my site:

There's a multimedia tutorial on my website that demonstrates how to create a custom tag, and incorporate it into a JSP. There is also a downloadable EAR/WAR file that you can deploy on your own:

Creating Custom Tag Libraries for use in JSP Pages

Cheers!

-Cameron McKenzie


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: testing dostart and doend tag
 
Similar Threads
Doubt on Tag Files
HFSJ : page:553 Q:9
getParent() and SimpleTagHandler
Wrong output : custom tag libraries
Creating a Tag problem ?