<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with jsp</title>
      <link>http://ask.metafilter.com/tags/jsp</link>
      <description>Questions tagged with 'jsp' at Ask MetaFilter.</description>
	  <pubDate>Mon, 20 Oct 2008 00:05:49 -0800</pubDate> <lastBuildDate>Mon, 20 Oct 2008 00:05:49 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>How do I move from PHP to JSP/Spring without a J2EE background?</title>
	<link>http://ask.metafilter.com/104675/How%2Ddo%2DI%2Dmove%2Dfrom%2DPHP%2Dto%2DJSPSpring%2Dwithout%2Da%2DJ2EE%2Dbackground</link>	
	<description>Anyone have experience moving from PHP to Spring/JSP?  What approach made the change easiest for you? I&apos;m comfortable in PHP.  I know Java from a college classroom setting, but I&apos;ve never had to help develop a J2EE app.  I&apos;ve looked at Spring tutorials (done the MVC step by step one), but the toy examples that they give just don&apos;t do it for me, probably because it seems like a lot of extra work for something I can write in PHP in a fraction of the time.  I don&apos;t have a current project to work on, I just don&apos;t want to be caught with my pants down when the time comes when I&apos;m required to use Spring and JSP.  Anyone learn from sample Spring apps that aren&apos;t toys but also not ridiculously complex?  Any other suggestions for the transition?&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.104675</guid>
	<pubDate>Mon, 20 Oct 2008 00:05:49 -0800</pubDate>
	<category>computers</category>
	<category>jsp</category>
	<category>programming</category>
	<category>spring</category>
	<category>webdevelopment</category>
	<dc:creator>secret.osha</dc:creator>
	</item>
	<item>
	<title>How do I pass a PHP session authenticated in IIS across to Jetty or Tomcat?</title>
	<link>http://ask.metafilter.com/100914/How%2Ddo%2DI%2Dpass%2Da%2DPHP%2Dsession%2Dauthenticated%2Din%2DIIS%2Dacross%2Dto%2DJetty%2Dor%2DTomcat</link>	
	<description>I have users logging into XOOPS running on IIS, and have an instance of the Jetty JSP webserver configured to serve up Eclipse&apos;s Infocenter system. How can I set up security so that no users can view the Jetty-served content without being authenticated first in a XOOPS session off of IIS? I&apos;m trying to tie certain web-based applications together here and I&apos;m wondering if there&apos;s an easy way to achieve something.&lt;br&gt;
&lt;br&gt;
At my company, we run IIS, PHP and MySQL which all serves up a XOOPS-driven website. One of our teams has provided the Eclipse Help system (&quot;Infocenter&quot;) containing a stack of product documentation, all packaged up with the Jetty webserver. The way we received it from another team in our company, you run a batch file which installs Jetty as a Windows service, and when you run that service Jetty fires up and starts listening on a port that you can pre-choose in a properties file prior to creating the service. Going to your URL/port in a browser will connect to Jetty, which in turn serves up the Eclipse Infocenter content.&lt;br&gt;
&lt;br&gt;
That&apos;s all well and good if you&apos;re happy to just send your browser to the Jetty/Infocenter URL but there&apos;s another dimension to this. I need to be able to secure access to the Jetty port so that only users who have pre-authenticated to XOOPS, hosted in IIS, will be allowed into the Infocenter/Jetty instance. And therein lies the rub: once authenticated to XOOPS the user has a golden key in the form of an authenticated session, but as soon as the browser is passed to Jetty, how can we set it up so that the user is forbidden from accessing any Jetty-served pages without the XOOPS golden key?&lt;br&gt;
&lt;br&gt;
It&apos;s a convoluted situation here but let&apos;s just say that another non-IT team came up with this Infocenter idea - someone who &quot;did this at his previous job&quot; has suggested the idea, plenty of non-IT but senior-management people bought into it, he wrapped up everything in Jetty and gave it to us, and now he&apos;s on his way out of the company (probably so he can eventually leave a poo in the middle of some &lt;em&gt;other&lt;/em&gt; company&apos;s carpet the size of the Pyramid of Giza for someone else to clean up) and doesn&apos;t have the time to work with us to fulfil the mess of other requirements we now have in taking this technology to the next level.&lt;br&gt;
&lt;br&gt;
We have Tomcat serving other JSP content as well, which is doubly annoying in the scheme of things since, of course, it should be able to replace Jetty as the JSP serving system. Right now we&apos;re taking on a problem another team has created, and investigating how to make a WAR-file version of the Infocenter to be hosted under Tomcat, but our deadline for getting all of this resolved and implemented is the end of this month (9/2008). So, either in Jetty or in Tomcat, is there a way of securing these technologies so that only a user that has a valid PHP session generated within XOOPS and IIS is able to be passed thru to either a Tomcat or Jetty server containing the Eclipse Infocenter system? Our other Tomcat-hosted solution is our own code, provided to us by someone who&apos;s no longer with our company, so we can get our fingers dirty with that to an extent (and that&apos;s not something I&apos;m asking to be solved here), but we think the solution to this Infocenter dilemma lies in some sort of custom thing we need to write which allows Jetty or Tomcat to act as a doorman, checking some sort of passed credential and disallowing browser access to content if that credential is not somehow &quot;present&quot; as the browser comes across. Like the concept of a referrer, but not as easily spoofable/hackable. Make sense? (frustratedly sips coffee)&lt;br&gt;
&lt;br&gt;
None of those in my team are majorly experienced web programmers so we&apos;re running madly around the Internet trying to find solutions. Figured the hive mind could help. (crosses fingers and sips more coffee)&lt;br&gt;
&lt;br&gt;
Oh, and to answer what might be everyone&apos;s next question - we aren&apos;t using Apache to serve XOOPS because IIS was on the machine we originally put it on and we felt there was no reason to since XOOPS runs perfectly fine under IIS.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100914</guid>
	<pubDate>Thu, 04 Sep 2008 13:37:34 -0800</pubDate>
	<category>iis</category>
	<category>jetty</category>
	<category>jsp</category>
	<category>php</category>
	<category>security</category>
	<category>tomcat</category>
	<category>xoops</category>
	<dc:creator>tra</dc:creator>
	</item>
	<item>
	<title>Quoth the server, 404.</title>
	<link>http://ask.metafilter.com/98057/Quoth%2Dthe%2Dserver%2D404</link>	
	<description>Apache and Tomcat strangeness... a page in my app throws a 404... but only when using SSL on a single server. I am having a very strange problem with one of my applications.&lt;br&gt;
&lt;br&gt;
The skinny:&lt;br&gt;
&lt;br&gt;
- The app is a Java JSP servlet web app running on a proprietary framework and tag library. It&apos;s something like a primitive and wonky version of Struts.&lt;br&gt;
&lt;br&gt;
- The problem is that going to a certain page in the app gets a 404 but... ONLY on the test server and ONLY when SSL is used.&lt;br&gt;
&lt;br&gt;
- It works fine on my machine locally, on another windows machine running tomcat, on our staging server which is solaris (just like the test box), and on the test box if I go to the HTTP address instead of HTTPS.&lt;br&gt;
&lt;br&gt;
- Tomcat&apos;s catalina log give nothing strange.&lt;br&gt;
&lt;br&gt;
- Apache&apos;s error log gives entries like the following:&lt;br&gt;
&lt;br&gt;
[Thu Jul 31 10:37:53 2008] [error] [client 10.140.225.162] File does not exist: /usr/local/jakarta-tomcat-4.1.30/webapps/myapp/services, referer: https://mytestserver.ca/myapp/services/services.jsp?selServices=MyServices_f2&lt;br&gt;
&lt;br&gt;
response when trying from Firefox:&lt;br&gt;
&lt;br&gt;
Not Found&lt;br&gt;
&lt;br&gt;
The requested URL /sao/services/changeRequestType was not found on this server.&lt;br&gt;
&lt;br&gt;
Apache/2.0.49 (Unix) mod_jk/1.2.5 mod_ssl/2.0.49 OpenSSL/0.9.7d PHP/5.0.4 Server at mytestserver.ca Port 443&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
It looks to me like it is trying to find a /myapp/services/ folder? This folder of course does not exist. That URL ( /services/*) is mapped in my web.xml and has worked fine until now.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I do not  have direct access to the servers in question, as I am only the developer. My knowledge of apache and tomcat configuration is very limited.&lt;br&gt;
&lt;br&gt;
To my mind, the key question is why does it work on port 80, but not 443? Surely this must be a server config issue?&lt;br&gt;
&lt;br&gt;
Any assistance is greatly appreciated and will save me from wasting more time spinning my wheels on this. I have googled to the best of my fu and have turned up nothing.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.98057</guid>
	<pubDate>Fri, 01 Aug 2008 07:37:22 -0800</pubDate>
	<category>404</category>
	<category>apache</category>
	<category>java</category>
	<category>jsp</category>
	<category>resolved</category>
	<category>ssl</category>
	<category>tomcat</category>
	<dc:creator>utsutsu</dc:creator>
	</item>
	<item>
	<title>Can Javascript recognize a CSS width?</title>
	<link>http://ask.metafilter.com/62348/Can%2DJavascript%2Drecognize%2Da%2DCSS%2Dwidth</link>	
	<description>CSS/JSP/Javascript Filter:  I&apos;m creating a widget which parses RSS via JSP and Javascript.  This widget will allow users to include an RSS feed in their sidebar, but I&apos;d like the widget to appear differently depending on the sidebar size.  Is this possible to create an if statement determinant on the sidebar css class/id without know the class/id names? I have my widget width set to 100%, so it will inherit the width of the class in which it&apos;s placed.  However, if a user has a sidebar smaller than a certain width, I&apos;d like to show an alternate view.  The widget shows an image floating on the left, then headline and short description of a story to the right of the image.  If the width of the sidebar is smaller than my min-width, I&apos;d like the headline and description to move under the photo rather than to the right.  Can I create an if statement which will recognize the inherited width without knowing the class/id name?  Is this possible? &lt;br&gt;
&lt;br&gt;
The feed is parsed via JSP and is displayed via a Javascript include.&lt;br&gt;
&lt;br&gt;
Thanks for any ideas.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.62348</guid>
	<pubDate>Thu, 10 May 2007 12:51:06 -0800</pubDate>
	<category>css</category>
	<category>javascript</category>
	<category>jsp</category>
	<category>sidebar</category>
	<category>widget</category>
	<dc:creator>captaindistracto</dc:creator>
	</item>
	<item>
	<title>PHP/MySQL to IBM WebSphere?</title>
	<link>http://ask.metafilter.com/59248/PHPMySQL%2Dto%2DIBM%2DWebSphere</link>	
	<description>I&apos;m a fairly recent college grad that never really worked with an IBM iSeries computer. Now I&apos;m being asked to maintain an existing project at my job which resides on our iSeries machine. Where should I look for advice? I&apos;ve scoured IBM&apos;s resources, and none of them make very much sense at all. I just want to get this project off of my plate. A little background... I&apos;ve been doing web development for the past 5 years... but it&apos;s all been ColdFusion/XHTML/CSS/PHP/MySQL/SQL Server. &lt;br&gt;
&lt;br&gt;
I went into the existing files (.jsp) and edited a lot of them and used some nominal JSP code (jsp:include, jsp:forward) --- but I have absolutely no idea how to test my changes. I&apos;ve installed a ton of software from IBM (several gigs worth) and I still have no idea where/how to test this app. &lt;br&gt;
&lt;br&gt;
All of the documentation I&apos;ve read doesn&apos;t make any sense... or if it does make sense it is completely unrelated to testing this application. &lt;br&gt;
&lt;br&gt;
Please help! Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.59248</guid>
	<pubDate>Fri, 23 Mar 2007 07:06:07 -0800</pubDate>
	<category>ibm</category>
	<category>jsp</category>
	<category>php</category>
	<category>websphere</category>
	<dc:creator>bofe</dc:creator>
	</item>
	<item>
	<title>How can I randomly display blocks of text in a .jsp file?</title>
	<link>http://ask.metafilter.com/57650/How%2Dcan%2DI%2Drandomly%2Ddisplay%2Dblocks%2Dof%2Dtext%2Din%2Da%2Djsp%2Dfile</link>	
	<description>How do I output random blocks of text in a JSP include? I am not in any way a java/jsp programmer. I have an application that uses JSP includes to display advertising (Google AdSense) to visitors. Currently, the ads are fairly static in size and content...I&apos;d like to mix it up a little, have different sizes displayed, and occasionally have no ads at all.&lt;br&gt;
&lt;br&gt;
Is there a way to do this just inside the .jsp file? Ideally I&apos;d like to be able to specify what percentage of displays each will get (roughly...doesn&apos;t need to be perfect), like one ad block showing up 10% of the time and another 90%. That&apos;s not a requirement for this though.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.57650</guid>
	<pubDate>Sun, 25 Feb 2007 13:44:56 -0800</pubDate>
	<category>ads</category>
	<category>adsense</category>
	<category>advertising</category>
	<category>java</category>
	<category>jsp</category>
	<category>random</category>
	<dc:creator>Kickstart70</dc:creator>
	</item>
	<item>
	<title>Precompiling JSPs in Eclipse</title>
	<link>http://ask.metafilter.com/27917/Precompiling%2DJSPs%2Din%2DEclipse</link>	
	<description>How do I precompile JSP pages in Eclipse? I have tried Googling and search the Eclipse help.  I don&apos;t want to precompile in the server, but rather in the IDE.  And I tried just adding them to the build path, but nothing happened.&lt;br&gt;
(I want to skip the load/request part of testing to hit errors earlier)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.27917</guid>
	<pubDate>Sat, 26 Nov 2005 15:20:59 -0800</pubDate>
	<category>eclipse</category>
	<category>j2ee</category>
	<category>jsp</category>
	<category>precompile</category>
	<dc:creator>andrew cooke</dc:creator>
	</item>
	<item>
	<title>JSP Templates</title>
	<link>http://ask.metafilter.com/25261/JSP%2DTemplates</link>	
	<description>JSP templates as templates - am I reinventing the wheel? I&apos;m using Spring&apos;s MVC with JSP views.  Every JSP page has similar structure - headers, content, footers, perhaps a sidebar, etc.  Looking around for &quot;best practices&quot; people seem to &quot;include&quot; footers and headers, but that means that every JSP page includes these &quot;include&quot; statements, giving a fixed format.  To my eye a better solution would involve nested views, where a base template is extended with information appropriate to the page in question.  One advantage of this approach is that you can have default values assumed in the base template without repeating them elsewhere.  Another advantage is that you can further separate structure and content (&quot;header&quot; and &quot;footer&quot; being structural, and so belonging in the base template) in pages which contain a lot of text (think of help pages - you &lt;em&gt;could&lt;/em&gt; put all that in the database, but why bother, especially since with Spring you can resolve to different views via the locale?).&lt;br&gt;
&lt;br&gt;
There doesn&apos;t seem to be any support for this at the MVC level in Spring, but it could be implemented in JSP using custom tags and, indeed, there&apos;s a rather clunky attempt &lt;a href=&quot;http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb.html&quot;&gt;here&lt;/a&gt; (that might explain what I want better than this question, although I think you could make it less intrusive).&lt;br&gt;
&lt;br&gt;
Anyway, my question is - does this already exist as a (popular/standard) tag library?  I&apos;m happy writing custom tags, but my impression of this stuff (generating web sites) is that there&apos;s a huge range of solutions already out there, with most work going into choosing the correct tools (eg Spring).  Thanks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.25261</guid>
	<pubDate>Mon, 10 Oct 2005 02:24:01 -0800</pubDate>
	<category>development</category>
	<category>jsp</category>
	<category>spring</category>
	<category>template</category>
	<category>web</category>
	<dc:creator>andrew cooke</dc:creator>
	</item>
	<item>
	<title>What is the best web host to (cheaply) serve JSP/MySQL?</title>
	<link>http://ask.metafilter.com/23550/What%2Dis%2Dthe%2Dbest%2Dweb%2Dhost%2Dto%2Dcheaply%2Dserve%2DJSPMySQL</link>	
	<description>What is the best web host to (cheaply) serve JSP/MySQL? I have a basic account with Dreamhost, and they&apos;ve been great so far but they don&apos;t offer JSP support except on dedicated servers.  I&apos;m rather partial to PHP anyway, but since I&apos;ve enrolled in a Java web development class, the professor would like me to use Java (go figure).&lt;br&gt;
&lt;br&gt;
I&apos;ve been doing the Tomcat/Jakarta thing on my home computer so that engine would be the best, but I&apos;m not sure how different the other engines are and would be willing to migrate if the difference in implementation isn&apos;t drastic.&lt;br&gt;
&lt;br&gt;
The site will serve as a sandbox for my group members and I to develop our projects, so there will be virtually no bandwidth and disk space issues.  HTTP servers are a violation of our cable company&apos;s TOS.  My Google results are saturated with crap and I&apos;m wondering if any of your hosts offer a particularly good deal.&lt;br&gt;
&lt;br&gt;
TIA</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.23550</guid>
	<pubDate>Sat, 03 Sep 2005 01:35:18 -0800</pubDate>
	<category>hosting</category>
	<category>jsp</category>
	<dc:creator>moift</dc:creator>
	</item>
	<item>
	<title>Transforming XML with XSL</title>
	<link>http://ask.metafilter.com/16030/Transforming%2DXML%2Dwith%2DXSL</link>	
	<description>I need a new way of transforming XML with XSL. Till date I&apos;ve used PHP&apos;s Sablotron, which I absolutely love and is simple to use, but my host keeps forgetting to enable and include it each time they recompile Apache, so I was wondering if someone here knows of a way to do the same with either Perl or JSP/Tomcat or even PHP as long as it is without Sablotron&apos;s xslt_create(). The PHP code I use is beautifully simple.&lt;br&gt;
&lt;code&gt;&lt;br&gt;
&amp;lt;?php&lt;br&gt;
ob_start(&quot;ob_gzhandler&quot;);&lt;br&gt;
   $tivonp = xslt_create();&lt;br&gt;
   $result = xslt_process($tivonp, &apos;nowplaying.xml&apos;, &apos;nowplaying.xsl&apos;);&lt;br&gt;
   echo $result;&lt;br&gt;
   xslt_free($tivonp);&lt;br&gt;
?&amp;gt;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
I&apos;m hoping there is a similar simple way to transform XML using XSL in other languages.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.16030</guid>
	<pubDate>Mon, 07 Mar 2005 17:01:47 -0800</pubDate>
	<category>jsp</category>
	<category>perl</category>
	<category>php</category>
	<category>sablotron</category>
	<category>web</category>
	<category>webdev</category>
	<category>xml</category>
	<category>xsl</category>
	<dc:creator>riffola</dc:creator>
	</item>
	<item>
	<title>Code Coverage tools for JSP?</title>
	<link>http://ask.metafilter.com/14011/Code%2DCoverage%2Dtools%2Dfor%2DJSP</link>	
	<description>Code Coverage tools for JSP?  Anybody know of any good ones?  Would like to be able to evaluate the JSP code directly and not the java generated by the JSP engine.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.14011</guid>
	<pubDate>Fri, 14 Jan 2005 10:30:58 -0800</pubDate>
	<category>CodeCoverage</category>
	<category>Development</category>
	<category>Java</category>
	<category>JavaServerPages</category>
	<category>JSP</category>
	<category>TestDriven</category>
	<category>UnitTesting</category>
	<dc:creator>evilelf</dc:creator>
	</item>
	<item>
	<title>JSP variables question</title>
	<link>http://ask.metafilter.com/6409/JSP%2Dvariables%2Dquestion</link>	
	<description>I have a JSP Question.  How can you pass form variables to another JSP page without using cookies or sessions? I&apos;m doing my form validation on one JSP page and then I need to do the processing of the form in the other.  I&apos;m guessing I could set some type of variables like php&apos;s $_POST but I&apos;m not sure what to do.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.6409</guid>
	<pubDate>Fri, 09 Apr 2004 06:35:59 -0800</pubDate>
	<category>jsp</category>
	<dc:creator>Stynxno</dc:creator>
	</item>
	
	</channel>
</rss>

