Ramya Thyagarajan

Greenhorn
+ Follow
since Jun 27, 2005
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 Ramya Thyagarajan

Hi,

I have a JSP application which displays a set of multi boxes. Iam using struts DynaValidatorForm . If a value is checked and the form is submitted the multibox values are submitted correctly and the page refreshes and displays the checked multibox. But if a previously checked multibox is unchecked and saved, the value is not submitted to the form, the page refreshes and shows the checked box again.
Is there a way to override the reset method while using dynaValidatorForm??

Struts config entries
<form-property name="values" type="java.lang.String[]"/>

Jsp entries
<c:forEach var="dataValues" items="${dataValues}">
<html-el:multiboxproperty="values"value="${dataValues.id}"/>
<c ut value="${cardtype.id}" /></forEach>


please help..!!!

thanks
14 years ago
Hi,

Iam using WSAD built in server as an application server, while configuring the DataSource for JDBC Iam getting an servlet exception when I go to the Data Sources pages in the administrative console
Exception :
[ServletException in:/secure/layouts/dynamicSelectionLayout.jsp] null' References authentication data for component-managed signon to the resource.

[ServletException in:/secure/layouts/dynamicSelectionLayout.jsp] null' References authentication data for container-managed signon to the resource.

[ServletException in:/secure/layouts/dynamicSelectionLayout.jsp] null'

and this prevents me from entering the References authentication data.(these fields don't appear in the page).

please help..!

thanks
14 years ago
Hi,

I have an application working on struts and we use tiles for validation. The validations are handled through validation.xml. I have a property file to store the error text.

In my UI screen I have 5 panels(open and collapsable). and when the UI form is submitted data in all the panels are submitted through the same form. If there are errors the error messages are printed in the page .(I use
<logic-el:messagesPresent>
<html-el:messages id="error" header="errors.header"footer="errors.footer">
<li><bean:write name="error" /></li>
</html-el:messages>
</logic-el:messagesPresent>

to display the error messages)

Everything works fine but , I have to categorise these error messages by the panels they belong to. I have the panel numbers in the error text. Is there a way to iterate through these error messages and read the text?

Current Display:
Errors.
Panel#1 error1
Panel#2 error2
Panel#3 error3
<Panel1 UI>
<Panel2 UI>
<Panel3 UI>
<Panel4 UI>
....


Desired Display :

Errors.
Panel#1 error1
Panel#2 error2
Panel#3 error3
<Panel1 UI>
Panel#1 error1
.....
<Panel2 UI>
Panel#2 error2
....
<Panel3 UI>
Panel#3 error3
....
<Panel4 UI>

Please Help.

Thanks
14 years ago
Hi,

Thank you for the suggestions. I downloaded th dwr.jar and added to the classpath, also updated dwr.xml for the class to be used. And updated web.xml for dwr mappings.
Also in my JSP included the script and invoked the method.

When I execute my program I get the following exception :

java.lang.UnsupportedClassVersionError: org/directwebremoting/annotations/AnnotationsConfigurator (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at org.directwebremoting.util.LocalUtil.classForName(LocalUtil.java:631)
at org.directwebremoting.impl.ContainerUtil.configureFromAnnotations(ContainerUtil.java:307)
at org.directwebremoting.impl.ContainerUtil.configureContainerFully(ContainerUtil.java:405)
at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:77)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:262)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1319)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:745)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:493)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:379)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:1678)
at com.ibm.ws.runtime.component.ComponentImpl$_AsynchInitializer.run(ComponentImpl.java:304)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)


Am I getting this due to some version conflict..?
Please help.

Thanks
14 years ago
Hi ,

Iam working on an application with struts architecture and I have JSPs(JSTL) to generate the UI Screens. I have a select option box which retrieves data during "onchange" event. During this the entire page is refreshed. I would Like to implement this request through AJAX/DWR.
Can anyone help me in configuring them with struts.

Thanks.
14 years ago
Hi,

I have an application which requires to read data from files. The file sizes can be >100MB also. I used BufferedReader to read the data from the file , I get the "out of memory " exception when large files are being read. My development enivironment is windows, though actually I would be deploying it in Unix.

Is this exception platform specific?
I tried splitting the file into smaller chunks of bytes , but during the process , the data format in the file was lost.So , Is there any way to read large files without splitting them into smaller chunks of data?

Thanks in advance.
15 years ago
Hi,

Is it possible to execute the execCommand in netscape?

thanks
Hi,

Thanks a ton, that solves my issue. As we execute our application only through IE, I feel the solution provided would suffice.

Thank you.
Hi,

I have a HTML page which has a 'Save' button. I need to invoke the 'Save As' windows dialog , on click of the button (through java script/jsp). As a JSP file is invoking this HTML page , the JFileChooser component does not work out. Can you please help me with this.

Thanks.
Hi,

Thanks for the response. I used the RTFEditorKit to read the rtf document from an input file and wrote the contents of the document into the output rtf file. The content of the files are appended but the formatting (The contents were tabulated as rows-columns in a grid) is lost. Is there an option to keep the formatting as is?

Thanks.
16 years ago
Hi,

I have two .rtf files generated as part of my application.

I require to append these two files and generate as one single .rtf document

The normal method of appending files in java does not seem to be working.

The Outputfile does not write the contents of the second file. Kindlly help me resolve the issue.
16 years ago
I have a Frameset(Name = "top") with two frames, topFrame and bottomFrame.
The topFrame has a "Print" button and the bottomFrame has the contents(text).
I require , the bottomFrame contents to be sent to the printer when I click on the "print" button in the topFrame.

Though in the onClick event of the Print Button I have included the code
top.bottomFrame.print();

(or) top.frames[1].print();

The topFrame contents is printed out instead of the bottomframe contents.

kindly let me know how to print contents of one frame by invoking the print option from another frame in a frameset.
Hi,

I have a .txt file generated by my program but I require the contents of the file generated to be displayed in a HTML window.

Is it possible to move the contents of a .txt file into a .html file without hampering the format?
16 years ago
The garbage collector is a low priority thread that runs
periodically, releasing memory used by objects that are not needed anymore.
The garbage collection (GC) algorithm varies from one JVM to another. There are different
algorithms being used, like reference counting or the mark and sweep algorithm.

While you can request that the garbage collector run, it is important to note that you can
never force this action.

hope this info helps..!
16 years ago
Try starting with the book MasteringEJB3rdEd by Gerald brose