Gayathri Gayu

Ranch Hand
+ Follow
since Feb 25, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
14
Given in last 30 days
10
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(Response.java:583)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:211)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:118)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:111)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:120)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:156)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

  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
JSP
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
JSP