Gayathri Gayu

Ranch Hand
+ Follow
since Feb 25, 2019
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gayathri Gayu

Tim Moores wrote:

Tim Moores wrote:what access does user phpmyadmin have for connections from "localhost"?

From a permissions perspective, logging in via the CLI tool is not the same as logging in programmatically from localhost.

When i can able to create db and tables through terminal i should able to access the db from my jsp code right? Even then when i tried the following code to connect the database it gives me the error.

java.sql.SQLException: null,  message from server: "Host 'Hostname' is not allowed to connect to this MariaDB server"

Yes the user phpmyadmin exist. When installing phpmyadmin i created user and password. When login through terminal I can able to access the database with same username and password but not  in the browser.
am accessing database remotely. I can able to access database through terminal with user name and password but in browser it gives the following error message.  

The following code works fine. But the problem is when i am deselecting the button the button doesn't change back to its original and also its erasing all elements present in text area.

I got it. I just added and
Now it works in browser also. Thanks for the help.
The code works fine separately. But the issue is, I have created a login page and when user click submit it will display the keyboard.html file. AT this place i am not able to select elements.

Sep 06, 2019 11:00:24 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/LoginDetails] threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response] with root cause
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(
at org.apache.catalina.connector.ResponseFacade.getWriter(
at org.apache.jasper.runtime.JspWriterImpl.initOut(
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(
at org.apache.jasper.runtime.PageContextImpl.release(
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(
at org.apache.jsp.login_jsp._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.tomcat.websocket.server.WsFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.service(
at org.apache.coyote.AbstractProcessorLight.process(
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$

  This error is what i am getting.
Thanks for the reply.

When i run my code in eclipse the keyboard works fine. But when i try to run the webpage in firefox i couldn't select the keyboard elements. Please tell me What might be the issue?
One  more help. Is it possible to highlight the selected buttons from the keyboard? Like if I am selection H and He the buttons should get highlighted with different color something like this.

Swastik Dey wrote:Your code is changing it to uppercase.  You don't need that because the buttons are already having the case that you want.  Take out the upper case conversion, I hope you will be fine.

Thanks for the advice. I just modified the line from this to

Now its printing like the way i want HHeLi.
While clicking the buttons in the text area it is entering in uppercase.

If i remove the style both the characters are entering in lower case. Also if i change From uppercase to lower case its just like Hheli like this.  Or is it possible to append a spce between each input? I want to get the input like HHeLi or H-He-Li
I tried the above code. Its not changing the second letter of He to lower case.HE both are in capital letters only. One  more help. Is it possible to highlight the selected buttons? Like if I am selection H and He the buttons should get highlighted with different color something like this.
Thanks I will go through the tutorial.
3 weeks ago
Please suggest me a sample code I am searching for hours to learn and gothrough about. But till now i didn't get not even a tutorial abot this for creating a simple login page with few details.
3 weeks ago