File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wanted to create own tag in struts using NetBeans and use it in .jspx file

 
raje shah
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to create fmt tag and use it in add.jspx file given below.I have used struts .please reply.


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean "use" an fmt tag, right? So what's the problem? You posted code but didn't tell us what the problem is.

Also, why are you using jspx format? That format is not intended for hand-coding but for use as an intermediate format or for machine-generated code. You should be writing jsp pages not jspx documents.
 
raje shah
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error appears fmt:message is not bound.I have to perform the following code in .jspx in my project.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see where you are declaring the taglib.
 
raje shah
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created fmt.tld in WEB-INF and also declared taglib in add.jspx but gives error "the markup follwing the root element must be well formed.". can you tell me how to insert taglib here.





 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a direct consequence of choosing to use the .jspx format. It's too finicky.

Once again I ask, why are you using .jspx instead of .jsp?
 
raje shah
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem got solved.I used namespaces xmlns:fmt & xmlns:bean instead of <taglib>

add.jspx
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic