• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating DOM for JSTL tag

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

It is known that we can create html button using DOM . for example


this will display button.

My question is how will it look like when creating DOM for JSTL tags or Struts tag?

for example:.


I hope my doubt is clear to you. and thanks in advance.

philip
 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jstl, struts tags will not propagate to the browser. These tags will be transformed to html at server side and the browser will receive html only.

Actually your question is not very clear to me and hope this helps..
 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply. Actually what I meant was. As given in the first coding.. we can create a button in a particular node


Is it possible to create a tag using dom just like the above for say <s:label> or <s:textfield key="user" />

maybe like


Hope this is clear now.
thanks in advance
Philip
 
Gamini Sirisena
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess there's nothing stopping you from doing something like this..



you could try this out.. But the "s:" part could be problem..

Suppose you are able to add <s:textfield key="user" /> to the html dom, what do you hope to achieve by doing this?
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What Gamini is trying to explain, I think, is that by the time any Javascript code runs, the JSP and JSTL processing has already finished generating the HTML and sending it to the browser. That Javascript can only operate on the generated HTML and nothing else.

Anyway this is clearly a question about Javascript. Let's move it to the correct forum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic