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

  • Home
  • SEARCH
  • 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 6785939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:11:13+00:00 2026-05-26T17:11:13+00:00

I’m glad stackoverflow exists at least there is traffic. Sorry for asking these here

  • 0

I’m glad stackoverflow exists at least there is traffic. Sorry for asking these here but posting a question in caucho forums takes weeks to appear apparently.

I was fallowing a guide to have a custom login form for my service, but the guide was written for Resin version 1 I guess, and I’m working on version 4 and there are some custom tags that I don’t fully understand and even the documentation for Resin 4 has some errors.

The tags are the next ones:

<login-config> <auth-method>FORM</auth-method> <form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page> </form-login-config>
<authenticator id='MyAuthenticator'/>
</login-config>

Version 4 tags where changed but I don’t quite understand the “foo bar” analogy. I did watch Rescuing Soldier Ryan movie so Foobar sounds a little unprofessional and misleading.

<foo:MyAuthenticator>
    <foo:foo>bar</foo:foo>
  </foo:MyAuthenticator>

<resin:FormLogin form-login-page="/" form-error-page="/" />

I’m not totally sure but he getUser() method doesn’t exists in the com.caucho.security.AbstractAuthenticator documentation. The method is called getPassworduser(). I know, people make mistakes, at least I have, and a lot.

package com.foo;

    import com.caucho.security.AbstractAuthenticator;
    import com.caucho.security.PasswordUser;

    public class MyAuthenticator extends AbstractAuthenticator {
      private PasswordUser _user;

      public MyAuthenticator()
      {
        _user = new PasswordUser("harry", "quidditch",
                                 new String[] { "user" });
      }

      public PasswordUser getUser(String userName)
      {
        if (userName.equals(_user.getName()))
          return _user;
        else
          return null;
      }
    }

So, can someone be so kind to explain me a little bit the new tag syntax?
What if my package is called com.subpackage1.subpackage2?
what represents the “bar” element?
What comes first? <resin:FormLogin ...> or <foo:MyAuthenticator>...</foo:MyAuthenticator>
How can I link my form to the authenticator considering that they are both separate tags?

  • 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-05-26T17:11:13+00:00Added an answer on May 26, 2026 at 5:11 pm

    Ok, thank you to those who read it and maybe try to answer. I just found a very useful document on the resin 4 migration. The link is here. Basically I have to set my own path in the web-app tag like these:

    <web-app xmlns="http://caucho.com/ns/resin" xmlns:mycustomtag="urn:java:com.my.package">
    

    then I just use the tag like these:

    <mycustomtag:MyClass>
      <mycustomtag:customAttribute>someAtributte
      </mycustomtag:customAttribute>
    </mycustomtag:MyClass>
    

    I hope this is useful for someone, please show your love and give me a thumbs up by voting my answer.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to construct a data frame in an Rcpp function, but when I
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.