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

seshagiri veerla

Greenhorn
+ Follow
since Mar 15, 2008
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 seshagiri veerla

Hi,
<s:radio name="popDTO.isPublished" list="#{'true':'Yes','false':'No'}" value="%{popDTO.isPublished}" />

i am implementation above radio tag in struts 2.x. it is getting woring symble at list attribute . i.e el experstion

Pl reply with solution.

Thanks
Seshagiri
11 years ago
How to validation with text area in validater.xml in struts2.x
12 years ago
http://localhost:8080/MiniHR/SwitchLocale.do?
country=MX&language=es
I pass two parameters with url and setters and getters in action class but I am getting first parameter and value with URL.
Means getting http://localhost:8080/MiniHR/SwitchLocale.do?
country=MX only in struts2.x
follows html code in one action class:
String yesURL = �http://localhost:8080/MiniHR/SwitchLocale.do?
country=MX&language=es�;

Follows getting URL in other action class:


public class ViewConfirmAction extends AbstractPoPBaseAction
{

private static final long serialVersionUID = 2767159027474649292L;
private String yesURL;
@Override
protected String executeAction () throws Exception {
if (yesURL != null) {
return SUCCESS;
}
else {
addSessionError(getText(PoPConstants.GMK_P_REMOVE_POP_NULL));
return ERROR;
}
}

/**
* @return the yesURL
*/
public String getYesURL () {
return yesURL;
}

/**
* @param yesURL
* the yesURL to set
*/
public void setYesURL (String yesURL) {
this.yesURL = yesURL;
}

}

Please send me solution how to get more than one parameter with URL in in struts2.x
In my application required pass two parameters along with URL
12 years ago
I have implemented abstraction layer.
@Entity
@Table(name = "teamwikis")
public class TeamWiki implements Serializable {
/** The text of the TeamWiki */
private String wikiText;
/**
* @return the wikiText
*/
@NotNull
@Length
@Max
public String getWikiText() {
return wikiText;
}

/**
* @param wikiText
* the wikiText to set
*/
public void setWikiText(String wikiText) {
this.wikiText = wikiText;
}
}


see above code.
i want to increasing field size max 2000 for text. but can not increasing max size even using @Length or @Max also.it is access upto 255 char only(it is String).

Please give me solution how to increasing size for text field.

Thanks
Seshagiri
i am using code as
<!--
index.jsp is the first page the user will see when going to mypopproject.com


Modification log (MM/DD/YYYY [Author] Change)
05/29/2008 [Seshagiri Veerla] Base Version.

-->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title><s:text name="p_teaWiki_title" /></title>
</head>
<body>
<div id="calcontainer"></div>
<s iv id="fields">
<s:actionmessage />
<s:actionerror />
<s:hidden name="teamWikiDTO.teamPoP.popid"
value="%{teamWikiDTO.teamPoP.popid}" />
<table border=0;>
<tr>
<td><B><span id="popName" class="editable">${teamWikiDTO.teamPoP.name}</span></B></td>
</tr>
<tr>
<td><s:text name="%{getText('pop_objective')}" /></td>
<td><span id="popObjective" class="editable">${teamWikiDTO.teamPoP.objective}</span></td>
</tr>
<tr>
<td><s:text name="%{getText('pop_owner')}" /></td>
<td><span id="popOwner" class="editable">${teamWikiDTO.teamPoP.owner.emailId}</span></td>
</tr>
</table>
</s iv>
<div><s:text name="p_teamWiki_name" />  (<s:iterator
value="teamWikiAsHTML">
<s roperty escape="false" />
</s:iterator> </div>
<p class="banana"><span id="teamWikiText" class="editable">split(${teamWikiDTO.wikiText},.)</span></p>
</body>
</html>

i want to split text but i can not do it. i am getting text as '${teamWikiDTO.wikiText}' this objective. Please ready above code and give me solution it.
Thanks
Seshagiri
12 years ago
I implementing project with struts 2.x. In this project not used global forward.So i could not do confirmation page. Please give with properly solution with code. actually what is necessary confirmation page


Please reply with code also.

Thanks
Seshagiri
12 years ago
sorry , i want to with out javascript ,

i want to confirmation page in struts2.x and also with out javascript.

please reply with code
I am new to Struts and I am struggling on what would
be the best way to do the following:

on several pages, the user can perform actions which
need to be confirmed before being actually performed
(e.g., exiting the application or logging off). The
confirmation page is the same regardless of the calling
point, but if the user cancels, I need to go back to
the previous page. I am not sure how to pass the return
url to the confirmation page, and how to make this
page generic (template tag, read value from session)...
or
I have a form (in request scope) with submit and cancel
buttons and after pushing either of them I should display
a confirmation dialog ("Are you sure?") and depending on user's
choice I have to perform the actual action 'submit' or 'cancel'
if user clicks 'yes' and have to return to the same page with
form if user clicks 'no'. The need of this confirmation routine
is questionable but this is not the point in this case, the point
is how to preserve everything you have in your request while
making this trip.

would anyone have an idea?

Thanks for your help,

Seshagiri
12 years ago
Hello everyone,

I have a form (in request scope) with submit and cancel
buttons and after pushing either of them I should display
a confirmation dialog ("Are you sure?") and depending on user's
choice I have to perform the actual action 'submit' or 'cancel'
if user clicks 'yes' and have to return to the same page with
form if user clicks 'no'. The need of this confirmation routine
is questionable but this is not the point in this case, the point
is how to preserve everything you have in your request while
making this trip.

I tried to do this in my action which calls confirmation
page and confirmation page itself (as scriplet):

java.util.Enumeration enum = request.getAttributeNames();

while (enum.hasMoreElements()) {
String atName = (String) enum.nextElement();
request.setAttribute(atName, request.getAttribute(atName));
}

But this didn't help because if I click 'no' button (a link
technically speaking, which leads me to the jsp page with form)
I get an error 'No bean found under attribute key userForm'

I would appreciate any suggestion related to this problem.

Thank you for your time.
Seshagiri
12 years ago
How to send error message from action to action struts2.

I am sending action and result got error then call redirect action class.but priveous error not show on current action.

please reply with solution
12 years ago
We have a basic HTML page which links in the prototype.js file and our own editinplace.js.
i want to a strut2' jsp page which links in the prototype .js and our own editinplace.js
Please forward me if any examples there.
follows code base HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">;
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Edit-in-Place with Ajax</title>
<link href="editinplace.css" rel="Stylesheet" type="text/css" />
<script src="prototype.js" type="text/javascript"></script>
<script src="editinplace.js" type="text/javascript"></script>
</head>
<body>
<h1>Edit-in-place</h1>
<p id="desc">Dashing through the snow on a one horse open sleigh.</p>
</body>
</html>
My code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Create New PoP</title>
<!-- Prototype -->
<link href="/WEB-INF/js/editinplace.css" rel="Stylesheet" type="text/css" />
<script src="/WEB-INF/js/prototype-1.6.0.2.js" type="text/javascript"></script>
<script src="/WEB-INF/js/editinplace.js" type="text/javascript"></script>
</head>
<body>
<s:actionerror />
<s:form action="createPoP">
<p id="desc">Edit</p>
<p><strong>Note:</strong> This example uses an inert client-side
script.</p>

</s:form>
</body>
</html>

How to edit with strut2' jsp code in editinplace.js

I don't struture of prototype framework

please forward me as soon as possible

Regards
Seshagiri
I will go to using prototype framework with ajax in struts 2 with jsp.
i developed jsp pages follows structure.
\mypopprojectWAR\webapp\WEB-INF\pages.
but i am keeping js folder in
\mypopprojectWAR\webapp\WEB-INF\js\
jsp file:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Create New PoP</title>
<!-- Prototype -->
<link href="/WEB-INF/js/editinplace.css" rel="Stylesheet" type="text/css" />
<script src="/WEB-INF/js/prototype-1.6.0.2.js" type="text/javascript"></script>
<script src="/WEB-INF/js/editinplace.js" type="text/javascript"></script>
</head>
<body>
<s:actionerror />
<s:form action="createPoP">
<p id="desc">Edit</p>
<p><strong>Note:</strong> This example uses an inert client-side
script.</p>

</s:form>
</body>
</html>

But is not working of prototype and ajax in jsp

please give solution with code

please give the suggestion how to implement above frameworks

Regards
Seshagiri
12 years ago
JSP
Hi,
i don't have much knowledge abt auto testing. some given suggestion about testNG. But how to installation, configuration,testing.
Please forward above test toll .
as soon as possible with answer

regards
Seshagiri
i don't know about testNG. please send teps how to installation and how to configuration and how to test for entity beans.



please forward the details

Regards
Seshagiri
12 years ago
Hi all,

we will implement new project. we are using ejb3.0 with annotation this intracted with mysql databas. i am confusion of testing. I know two tools that is unit testing and ejb3unit. Please give me suggestion which one is best either unit testing or ejb3unit for entity bean test.
please reply with best testing tool


Regards
Seshagiri
veerla.sesha@gmail.com