Problem solved by putting this scriptlet in my JSP.
<%
Cookie[] cookies = request.getCookies();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
if...
Type: Posts; User: FHSerkland; Keyword(s):
Problem solved by putting this scriptlet in my JSP.
<%
Cookie[] cookies = request.getCookies();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
if...
I have the following in a JSP. What I'm trying to do is show different content depending on the presence of a cookie, which is being sent from my custom tag, according to Firebug. That cookie is...
Problem solved. It was actually another silly little mistake. I had a leading slash in the action of the form. Once I removed it, the problem was gone, and the method worked as intended. Thanks...
I have removed the id from both @RequestMappings and added the button value to both @RequestParams. According to Firebug, here is what is being sent for the parameters upon clicking the Approve...
I have changed %{id} to ${bulletin.id}. It's amazing what silly mistakes people make when they're not careful. However, I am still getting a 404 error. Here are my current controller methods.
...
My intention is for id to be a parameter. I've been making changes and have removed id from the @RequestMapping, leaving it only in the method signature as a @RequestParam. I do notice in Firebug,...
I just put in your suggested changes, Marten, but it didn't work. I am running Firebug and notice that both the id and the button are being sent, but I still get a 404 error. Here is what is...
Problem solved. I had a mapping on the controller as a whole. Once I removed it, the problem went away.
I have a Spring form that's giving me a 404 error. Here is the error in my console.
WARNING: No mapping found for HTTP request with URI [/ghs1986/poll1] in DispatcherServlet with name 'ghs1986'...
I have a Spring 3 MVC form with 2 parameters I'm trying to send to my controller method, and I'm getting a 404 error. The twist on this problem is that the form has 2 submit buttons, and the submit...
I think I ended up putting error messages in my Model object and accessing them in my JSP. This may not be the best way to do it, but I was able to make it work.
I implemented a workaround for this, so problem solved.
I am trying to run a validator class for my Spring form, but when I enter blank fields my errors are not showing up on my page. I'm a newbie when it comes to Spring validation, so there are...
I am getting a 404 error calling my controller method. Here is my form.
<form:form commandName="bulletin" method="post" action="/processBulletin">
<table>
<tr>
<td>Name:</td>...
Problem solved. It would appear BeanRowPropertyMapper doesn't work too well with java.sql.Date, so I am using a work-around.
I am trying to read a record from a Mysql database. One column is a date, but my object's java.sql.Date object isn't being populated. It still has null, even though all rows in the table have values...
Problem solved. Here is my URL.
<a href="<c:url value="/bulletin/${bulletin.id}" />" >${bulletin.name} -- ${bulletin.subject}</a>
Here is my controller method.
@RequestMapping(value =...
I have modified my code accordingly, but it didn't work. I'm still getting the same error. Here is what I have now. This is my link.
<a href="/bulletin/${bulletin.id}" >${bulletin.name} --...
I am getting a 404 error from the following link.
<a href="<c:url value="/getSingleBulletin/${bulletin.id}" />">${bulletin.name} -- ${bulletin.subject}</a>
This is the method I'm trying to...
Problem solved. I put the List<Bulletin> in the session object and put an instance of Bulletin in the command object. The code looks like this.
List<Bulletin> bulletins =...
This didn't work. I got basically the same error message. This is what's in the browser.
org.apache.jasper.JasperException: An exception occurred processing JSP page...
I'm getting the following error message:
SEVERE: Servlet.service() for servlet in context with path threw exception [org.springframework.beans.NotReadablePropertyException: Invalid property...
I added the following code to getApprovedBulletins(), which solved this particular issue.
mav.addObject("command", bulletins);
I am getting the following error:
org.springframework.web.HttpSessionRequiredException: Expected session attribute 'bulletin'
at...
Can anyone help me with my code? I have the following error message.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception...