I have a jsp which has a browse field. I open the browse popup using javascript. In that popup I have folders too, onclick I need to expand or collapse. THe expand - collapse code is written in jsp.
How to call this jsp code on click of the expand- collapse icons without going to the servlet.

Thanks

not. JSP is run on the server, Javascript on the client.

I wish people could get it into their heads that JSPs do NEVER run on the client.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.