This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Showing Request Attribute in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Showing Request Attribute in javascript" Watch "Showing Request Attribute in javascript" New topic
Author

Showing Request Attribute in javascript

James Winfrey
Ranch Hand

Joined: Jan 04, 2009
Posts: 60
Hi Guys

I have a request attribute that I want to show in an alert box in javascript. How can I achieve that?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

What have you tried so far? JavaScript is just template text like any other so just create the JavaScript markup using the usual JSP mechanisms.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Showing Request Attribute in javascript
 
Similar Threads
How to access java from a javascript function?
Problem passing a value from one jsp to another using href
Populate Table Rows With Data from AJAX
request attributes in new request from javascript?
invoke a servlet without form submit button