Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Sudarshan Reddy

Greenhorn
+ Follow
since Aug 23, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sudarshan Reddy

Hi

can any one tell me how to restrict URL in struts form validation

i want to restrict http/https or script tags in struts validations

any one help me one this..?
11 years ago
Hi All,

i am opening new window with window.open, and i need to restrict my parent window means i dont want to enter any values in parent window until if i close the child window.

and also i dont want to open mutiple popups with same name ?

any one help me one this?
Hi
we are involved in developing a web application its need java script enabled who ever accessing this application

for this i need to check in the login page only

if java script enabled then proceed other wise i need to inform to the user please enable java script in order to access this application

with out JavaScript enabling we dont want to access the users to access web application.

can any one help me on this please how to achieve this?
Hi

we are developing the web application in struts and we are getting this error message when we deployed in the stage server.

java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING

at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:941)

at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:537)

at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:384)

at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)

at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)

at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)

at java.io.Writer.write(Writer.java:126)

at org.apache.log4j.helpers.QuietWriter.write(QuietWriter.java:47)

at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)

at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:358)

at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)

at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)

at org.apache.log4j.Category.callAppenders(Category.java:203)

at org.apache.log4j.Category.forcedLog(Category.java:388)

at org.apache.log4j.Category.log(Category.java:853)

at org.apache.commons.logging.impl.Log4JLogger.warn(Log4JLogger.java:157)

at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(Unknown Source)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)


after googling lot we came to know that problem with the JDK version and we deployed the war file by compiling the code in the server version of the JDK but we are getting the same error in stage server but in the local host same war file working fine.

any one help me out on this...?

thanks in advnace....
11 years ago
i am not able to do this in internet Explorer where as it is not working file in Mozilla when i am accessing the application in different browsers

can you tell me the reason and help me

this is the code that i am using in my jsp

response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
response.setIntHeader("max-age", 0);
response.setHeader("Cache-Control","no-cache");
response.addHeader("Cache-Control","no-store");
response.setHeader("Pragma", "no-cache");
response.setIntHeader ("Expires", -1);
response.addHeader("cache-Control", "private");
11 years ago
JSP
Hi
i want to remove cache and not to allow the user to to go back when the user click on the back button in the browser

how can i achieve this from java code?
11 years ago
JSP
how can get the number of days in a year ?

ex: i need to calculate the number of days in a year day 2009 ?

please tell me
11 years ago
i am using the mysql DB

datediff function getting difference in dates but i need in months between two dates..?
i am able to upload the image into server..

Example: i am able to upload the image let think of the size passport into thumb folder and i want to resize the same image to stamp size and want to save into another folder ..

can you have any idea about this ?
11 years ago
Hi
can any one tell how to calculate difference between two dates in months?
Hi
Any one tell how to re size the image while uploading into the server
11 years ago
i have the data in xls format...
that contains database rows order ..i need to upload that data into the mysql table in java
Hi

Any one tell how to export data from excel to mysql using struts...?
The following code that i am using

<html:button property="Upload" styleId="Upload" value="Upload" style="Upload" onclick="javascript:getsize()" />


Its working fine in IE but its not working in Mozilla?

any one help me on this..?

Thanks in advance
11 years ago
<html:button property="Upload" styleId="Upload" value="Upload" style="Upload" onclick="javascript:getsize()" />

this is the code that i am using

its working file in IE but not in FireFox?
11 years ago