last day (15 days later) » 

5:31 PM
-1
A: How to get param set through servlet in html?

Subham Tripathi i am assuming your html file is basically a .jsp file. i think the problem lies in the way getAttribute() is being used. according to oracle docs : getAttribute(java.lang.String name) Returns the value of the named attribute as an Object, or null if no attribute of the give...

 
its not a jsp file its plain html.
 
you cant use scriptlet in html. you need to refresh your understanding of jsp/servlets and how jsps are essentially compiled into servlets @Mohit
 
can you share any example or URL where scriptlet is used in .HTML file not in .jsp
 
no u cant use scriptlets in html buddy. @Mohit
 
sharing an example is not possible or using scriptlet in HTML is not possible.
 
5:31 PM
all right so ... whats ur doubt ?
 
I know how to get such parm in JSP pages. But in this application i can't change this HTML page to JSP , so i need help in getting the same attribute in HTML.
 
it seems u r busy .. ok gud nite
oops sry !! u came back
not posssible to do that ...becoz html basically renders static content and
 
i was going through that link u send me ..
Is there any way to get that param n thn use it in my HTML ?
 
the content u want to use is dynamic to make a decision for hiding ur div.
not that i know of. go through the first comment i made in ur question .. http is stateless.
and one quesion i want to ask .. why cant u use a jsp file ? ..
hello are u there ?
 
yes i am
its a running app i need to add new functionality so i cant change the whole layout.
thats y m nt changing it to JSP
 
5:40 PM
ok. are all ur view files are html ?
or a mixture of html and jsp ?
 
its a mixture
 
ok.. then u cant do it buddy. but its part of protocol of making web apps that for views we make jsps.. this is some serious design issue i must say.
 
Yes i know .. but its a old app so we just need to give a new functionality
changing the whole code is a big trouble and time consuming. thats y i was looking for answer which can help me out with it
 
but be careful with changing the container's configurations.happy coding
gud night buddy :)
 
yes ..
gud nite
thanks
 

last day (15 days later) »