Search:

Type: Posts; User: FHSerkland; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    104

    Problem solved by putting this scriptlet in my...

    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...
  2. Replies
    1
    Views
    104

    Getting a JSP to recognize a cookie

    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...
  3. Problem solved. It was actually another silly...

    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...
  4. I have removed the id from both @RequestMappings...

    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...
  5. I have changed %{id} to ${bulletin.id}. It's...

    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.

    ...
  6. My intention is for id to be a parameter. I've...

    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,...
  7. I just put in your suggested changes, Marten, but...

    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...
  8. Problem solved. I had a mapping on the...

    Problem solved. I had a mapping on the controller as a whole. Once I removed it, the problem went away.
  9. Spring 3 — No mapping found for HTTP request

    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'...
  10. Spring 3 — form with 2 buttons, sending 2 parameters to controller method

    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...
  11. Replies
    4
    Views
    239

    I think I ended up putting error messages in my...

    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.
  12. Replies
    4
    Views
    239

    I implemented a workaround for this, so problem...

    I implemented a workaround for this, so problem solved.
  13. Replies
    4
    Views
    239

    Validation errors not being returned

    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...
  14. Replies
    0
    Views
    194

    404 error calling controller method

    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>...
  15. Replies
    2
    Views
    204

    Problem solved. It would appear...

    Problem solved. It would appear BeanRowPropertyMapper doesn't work too well with java.sql.Date, so I am using a work-around.
  16. Replies
    2
    Views
    204

    Reading a date from a Mysql database

    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...
  17. Problem solved. Here is my URL.

    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 =...
  18. I have modified my code accordingly, but it...

    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} --...
  19. Accessing a controller method from a link in a JSP

    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...
  20. Problem solved. I put the List in the...

    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 =...
  21. This didn't work. I got basically the same error...

    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...
  22. org.springframework.beans.NotReadablePropertyExcep tion

    I'm getting the following error message:


    SEVERE: Servlet.service() for servlet in context with path threw exception [org.springframework.beans.NotReadablePropertyException: Invalid property...
  23. I added the following code to...

    I added the following code to getApprovedBulletins(), which solved this particular issue.

    mav.addObject("command", bulletins);
  24. org.springframework.web.HttpSessionRequiredExcepti on: Expected session attribute

    I am getting the following error:

    org.springframework.web.HttpSessionRequiredException: Expected session attribute 'bulletin'
    at...
  25. Spring MVC -- Neither BindingResult nor plain target object for bean name available

    Can anyone help me with my code? I have the following error message.

    HTTP Status 500 -

    --------------------------------------------------------------------------------

    type Exception...
Results 1 to 25 of 27
Page 1 of 2 1 2