This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

Daniel Prene

Ranch Hand
+ Follow
since Jul 15, 2005
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 Daniel Prene

Hello,

There are a few 3 to 5 year old threads I started that I wish to delete. Is it possible to?

Thank you,
Daniel
8 years ago
I'm getting a "MySQLSyntaxErrorException: Access denied" although I have repeatidly varified that my username/password combination are in fact correct. I'm trying to use Hibernate+MySQL+Tomcat. I've tried both MySQL5Dialect and MySQLDialect. The following is my log:



The configuration:

Any and all help will be greatly appreciated! Thank you for at least reading this :-)
[ November 03, 2007: Message edited by: Daniel Prene ]
Unfortunately, that's a precise interpretation. Imagine a 2000+ line jsp page that is primarily scriptlets and javascript.
11 years ago
JSP
That's not how we generally do things... Although I may misunderstand you. What would it entail?
11 years ago
JSP
Uh, could I use c:import?
11 years ago
JSP
I need a map of lists generated and available to the jsp (but do not want to resort to using scriptlets). If the jsp:include is just returning the code resulting from a separate request, then why should anything else matter? Isn't it just like I visited the uri in my browser and copy and pasted the resulting code?
11 years ago
JSP
Let me jump back a few weeks...
Problem: I need to include, in several pages, several lines of jsp code
Solution: use a jsp:include within the jsp
Problem: I need to have a map with some goodies set as an attribute in the request
Solution: Since we're using a CommandFactory/FrontController like pattern, write a command to complement the included page and change the jsp:include to be a request to the fc for it. (fc?obj=cons&cmd=doNav...)
Problem: ... All of this junk about streams closing.
Solution: Write a test.jsp, the only jsp accessed directly, start debugging... run to javaranch.com with my tail between my legs... continue debugging.
[ June 27, 2007: Message edited by: Daniel Prene ]
11 years ago
JSP
I'm not using a jsp as a FC, I'm using a servlet which then invokes commands that then return the name of the jsp that the servlet then forwards. How can I check if the stream is open or closed at a point? I need to know what to be searching for
11 years ago
JSP
Right now I'm simply requesting "test.jsp" directly. The FC isn't taking over until the jsp include comes about. I simplified the FC further such that all that's happening is



Same issue. Loads the page, but with thee above exception.
11 years ago
JSP
Any luck? Having a similar problem.
[ June 27, 2007: Message edited by: Daniel Prene ]
11 years ago
As a side note, when I flush="false" the page actually gets included. Here's the full output from the logs

11 years ago
JSP
I turned flushing off, and now I get a "java.io.IOException: Stream closed"

I've done some heavy debugging and isolating and now all that is being executed after the jsp:include is:

Front controller:


flush="true"


flush="false"

Jsp now looks like:
11 years ago
JSP
New developments! Now the jsp:include doesn't load anything and I get "java.lang.IllegalStateException: Cannot forward after response has been committed" when I try to forward the request. How can I track down where the response has been committed?
11 years ago
JSP
hmm... I've been looking through the controller and, well, no content seems to be emitted before the forward. Just some attributes set here and there.
11 years ago
JSP
As far as the scripting tags go, I thought I had to do it that way. What would be the alternative? Just have it embeded? And I can re-think the architecture all day long, but I'll never get it changed. This is a very small piece of a gigantic web app. Are there any work arounds that would allow me to call commands with an include? Or do I just need to stick the java in the command of the page I'm including from and include the jsp directly?
11 years ago
JSP