Hi,

I didn't test it myself, but I believe this should do the
trick: action="/h2/console/login.do" (.do instead of .jsp).

Regards,
Thomas


On Wednesday, April 11, 2012, Ryan McKinley wrote:

> I am running embedded H2 within a webapp.  I want to expose the web
> console in a management link.  I can successfully link to the web
> console login screen, but I would like to link directly to a database.
>  Running in jetty, my web.xml includes:
>
>    <servlet>
>      <servlet-name>H2Console</servlet-name>
>      <servlet-class>org.h2.server.web.WebServlet</servlet-class>
>    </servlet>
>    <servlet-mapping>
>      <servlet-name>H2Console</servlet-name>
>      <url-pattern>/h2/console/*</url-pattern>
>    </servlet-mapping>
>
> In my app I have a page with:
>
> <form method="POST" action="/h2/console/login.jsp">
>  <input type="hidden" name="user" value="sa" />
>  <input type="hidden" name="password" value="" />
>  <input type="hidden" name="driver" value="org.h2.Driver" />
>  <input type="hidden" name="language" value="en" />
>  <input type="hidden" name="setting" value="Generic H2 (Embedded)" />
>  <input type="hidden" name="name" value="Generic H2 (Embedded)" />
>  <input type="hidden" name="url" value="jdbc:h2:C:\path\to\my\h2\db" />
>  <input type="submit" value="H2"/>
> </form>
>
> everything I try keeps pointing to the initial login screen.
>
> Any suggestions on how to link to an open DB?
>
> Thanks
> ryan
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To post to this group, send email to 
> [email protected]<javascript:;>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:;>.
> For more options, visit this group at
> http://groups.google.com/group/h2-database?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to