Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Nisha Kala

Greenhorn
+ Follow
since Nov 17, 2010
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 Nisha Kala

Hi

Its working if i give
appletviewer -J-Djava.security.policy=WriteFile.policy file:///home/pearlin/applet/SignedApplet.html

What should i do if i want it to run in localhost

10 years ago
This is my html code
<applet code="SignedAppletDemo.class"
archive="SSignedApplet.jar"
width=400 height=400>
<param name=file value="/etc/inet/hosts">
</applet>

I closed with </applet> only
10 years ago
Can any one please tell me how to run applet in browser.

I followed the steps from http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

When i run appletviewer -J-Djava.security.policy=Write.jp http://aURL.com/SignedApplet.html
it showed error - I/O exception while reading: Server returned HTTP response code: 403 for URL: http://aURL.com/SignedApplet.html.

So i gave -J-Djava.security.policy=Write.jp http://localhost:8080/SignedApplet.html and it showed error I/O exception while reading: http://localhost:8080/SignedApplet.html

Can anyone help me out to solve this?
10 years ago
Hi <br/>
I am using struts with java.<br/>
I have a string List that contains<br/>
List<String> nameList = new ArrayList<String>();<br/>
nameList = name1, temp, avg1, avg2

my select box(avg) contains values avg1, avg2, avg3, avg4.

Using iterator i had separated the values as<br/>
<s:iterator value="nameList" status="sta1" var="totlis"> <br/>
<s:if test="#sta1.count == 1"><br/>
<s:set var="name" value="%{nameList.get(#sta1.index)}"/><br/>
<s:set var="desc" value="%{nameList.get(#sta1.index+1)}"/><br/>
<s:set var="avgval" value="%{nameList.get(#sta1.index+2)}"/><br/>
</s:if><br/>
</s:iterator><br/>

<s:select value="%{#avgval}" list="#populate.avg" multiple="true" size="3" />

How can i do multi select.


11 years ago
Hi all
I had created a session for user login and set session timeout for 1 min

<session-config>
<session-timeout>1</session-timeout>
</session-config>

but after timeout my session gets retained.
11 years ago
Hi
I got a List of type string with values say for example List<String> str = {"start", "hi", "hello", "start", "hello", "hi"}
If value is start i want to print the next iterator value.

Can anyone help me
11 years ago
I had included two files
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
Only my s: tags are working but not sj: tags
11 years ago
Its a web application and I found many problems - json types of select box is not working and also datepicker, even links are not working.

11 years ago
Hi
I had created a web application using struts2 and it works fine in fire fox 3.6 but not in 3.5
Library files used
Struts 2 core - commons-io-1.3.2.jar
Struts 2 core - commons-logging-1.1.jar
Struts 2 core - commons-fileupload-1.2.1.jar
Struts 2 core - freemarker-2.3.13.jar
Struts 2 core - sturts2-core-2.1.6.jar
Struts 2 core - ognl-2.6.11.jar
Struts 2 core - xwork-2.1.2.jar
Struts 2 core - log4j-1.2.9.jar
xwork-core-2.1.6.jar
struts2-jquery-plugin-2.3.0.jar
struts2-json-plugin-2.1.8.1.jar

Server used - Glassfish V3

Also i had used jquery javascript library v1.4.2

Can anyone please help me to find why its not working and what should i do to make it work in FF3.5?
11 years ago
Hi
I am using struts2 jquery 2.3.0. I used date picker onChangeTopcis to load a paticular div and i get error saying this.publish is not a function

<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<html>
<head>
<sj:head compressed="false"/>
<title><s:text name="application.title"/></title>

</head>
<body>
Date: <sj:datepicker id="datepicker1" displayFormat="MM/dd/yyyy"
imageTooltip="Select Your Birthdate" showButton="true" onChangeTopics="datepickerSelectedDate"/>
<sj:div src="dateEvents.action" reloadTopics="datepickerSelectedDate"/>
</body>
</html>
11 years ago
I have website that uses Struts 2.0 with AJAX tags..the website is
displaying/working fine in Mozilla Firefox but when i tried to view it in
Internet Explorer it is not working for certain tags and also not supporting json..
I don't know how to solve it..I need to make my application browser independent..is there difference in
coding with Struts 2 in IE and Mozilla? How can I solve this problem?

Thanks in advance for your help.
11 years ago
Hi,
Am using mysql with struts with mysql. Am having 8 tables.Am using struts2 jquery select tag for a paticular select tag i get error saying

WARNING: StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2894)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:117)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:407)
at java.lang.StringBuilder.append(StringBuilder.java:136)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:504)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:328)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:228)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.array(JSONWriter.java:418)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:155)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:329)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:228)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.array(JSONWriter.java:418)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:155)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:329)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:228)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:329)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:228)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:165)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.array(JSONWriter.java:418)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:155)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:131)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:329)

Can anyone tell me whether this error is in my database.
Please am new to this so kindly help me to sort this problem
hi all,
can anyone tell how to convert string as-> Tue Nov 02 00:00:00 IST 2010 to date format of same type or to get date in ist format in java
11 years ago