Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8691473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:07:43+00:00 2026-06-13T00:07:43+00:00

I have a class that manages my uploaders. It makes use of the plugin

  • 0

I have a class that manages my uploaders. It makes use of the plugin file-uploader ‘and complements other information and rules of my application.

I’m trying to create a service that manages some behaviors of the application and notice that the ‘Services’ does not recognize some methods used in the controllers. Method ‘redirect’ for example works only on Controllers and are not recognized in Services.

In one of my services I do I forward a file of type ‘File’ as parameter to the service but attributes this ‘File’ as ‘OriginalFilename’, size, etc are not recognized in the ‘Service’. Someone could tell me how do I get these attributes from ‘File’ and these methods as ‘redirect’ are recognized in the ‘Service’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:07:44+00:00Added an answer on June 13, 2026 at 12:07 am

    It sounds like you may be a bit confused about the roles of Controllers vs. Services in Grails.

    The usual pattern is for a Controller to get information sent by the user’s browser (binding), validate it, and then if necessary, invoke a Service method to do something with that data. Once the service method returns, the Controller then either renders a view, forwards, or redirects.

    So, your service should not be trying to do a redirect. That is the job of a controller, and that is why that functionality is not available to your service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing application in C++ with a custom ArrayBase class that manages
I have a special class that manages gestures and other things. It is strongly
I have an interface IRenderable and a class that manages rendering all instances of
Im making a program for class that manages a Hotel. I have a function
I have a GUI tool that manages state sequences. One component is a class
Suppose we have a class called AccountService that manages the state of accounts. AccountService
I have a class TileManager that manages the lifetime of objects and therefore holds
I have a class that manages the creation of RTF documents and a method
In my C#/XNA project, I have a static class that manages the input. It
I have the following code in a class that manages refreshing some object automatically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.