Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!

sarath krishna mandava

Greenhorn
+ Follow
since Jun 06, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sarath krishna mandava

We have some .mht files which load fine from local files but when loaded from the jetty webserver display as junk text.

What can I do to make them work correctly from our webserver? I know that for Apache server I need to add the below lines of code to .htaccess file. But how do I make similar changes for Jetty?



<IfModule mod_mime.c>
# MIME HyperText Markup Language (MHTML) markup
AddType text/html .mhtml .mht .maff .maf
AddType message/rfc822 .mhtml .mht
AddType multipart/related .mhtml .mht .maff .maf
</IfModule>
1 month ago
Hi

I wrote the below code to iterate through an array. I wanted to get the index value of the loop inside the jsp code which is inside the loop. Can you please let me know how to do this. Thanks in advance.

1 year ago
JSP