This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Simplest Problem  RSS feed

 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
Am a newbie when it comes to Struts. Am just wondering what the following tag wud look like in struts.

My bean(say Hello) has a field phone_number.

in common jsp language i wud say jsp:useBean name="Hello"

<%
if( Hello.getPhone_number().toString().length() == 10)
{
<%=Hello.getPhone_number().subString(0,3)%>
-
<%=Hello.getPhone_number().subString(4,5)%>
-
<%=Hello.getPhone_number().subString(6,9)%>
}
%>

Want a quick solution.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before you get your quick solution, would you mind changing your display name so that it complies with our naming policy?

Thank you.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll wait until you meet Lasse's request.
 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now This is not done mate. ((((( We all know software engineers are a fancy lot. So what if i am named as a stylish hunk on this site ? (
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!