aspose file tools*
The moose likes Struts and the fly likes wanted to create own tag in  struts using NetBeans and use it in .jspx file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "wanted to create own tag in  struts using NetBeans and use it in .jspx file" Watch "wanted to create own tag in  struts using NetBeans and use it in .jspx file" New topic
Author

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

raje shah
Greenhorn

Joined: Mar 06, 2012
Posts: 8
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

Joined: Jan 10, 2002
Posts: 61606
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
raje shah
Greenhorn

Joined: Mar 06, 2012
Posts: 8
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

Joined: Jan 10, 2002
Posts: 61606
    
  67

I don't see where you are declaring the taglib.
raje shah
Greenhorn

Joined: Mar 06, 2012
Posts: 8
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

Joined: Jan 10, 2002
Posts: 61606
    
  67

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

Joined: Mar 06, 2012
Posts: 8
My problem got solved.I used namespaces xmlns:fmt & xmlns:bean instead of <taglib>

add.jspx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wanted to create own tag in struts using NetBeans and use it in .jspx file